CN115827809A - Method and device for generating Geographic Information System (GIS) application - Google Patents

Method and device for generating Geographic Information System (GIS) application Download PDF

Info

Publication number
CN115827809A
CN115827809A CN202211558000.4A CN202211558000A CN115827809A CN 115827809 A CN115827809 A CN 115827809A CN 202211558000 A CN202211558000 A CN 202211558000A CN 115827809 A CN115827809 A CN 115827809A
Authority
CN
China
Prior art keywords
interface
map
parameters
application
gis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211558000.4A
Other languages
Chinese (zh)
Inventor
夏梦
彭功超
张宇飞
段能雨
徐梓舰
秦龙
杜玉相
王军陈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shuhui System Technology Co ltd
Original Assignee
Shanghai Shuhui System Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shuhui System Technology Co ltd filed Critical Shanghai Shuhui System Technology Co ltd
Priority to CN202211558000.4A priority Critical patent/CN115827809A/en
Publication of CN115827809A publication Critical patent/CN115827809A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for generating Geographic Information System (GIS) application, wherein the method for generating the GIS application comprises the following steps: configuring parameters of a plurality of map services in a visual interface, and analyzing the parameters of the plurality of map services through a unified map interface so as to read map data of the plurality of map services; configuring parameters of a plurality of functional components in a visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components; configuring an interface style on a visual interface according to a plurality of functional components; generating a GIS application according to the map data, the plurality of functional components and the interface style of the plurality of map services. Therefore, the GIS application is configured through the visual interface.

Description

Method and device for generating Geographic Information System (GIS) application
Technical Field
The application relates to the field of GIS application, in particular to a method and a device for generating GIS application of a geographic information system.
Background
The Geographic Information System (GIS) is a generic term of art, science, engineering and technology for answering questions that have material attributes and spatial coordinates and are associated with time, is a software system and development tool for collecting, storing, managing and analyzing geographic data and attribute data thereof related to regional spatial distribution, and is a system perfectly combining graphics and data. At present, GIS application scenes in the industry are various, such as Baidu maps, gaude maps, hypergraphs, heaven maps, ARCGIS and the like, and the configuration needs to be continuously modified in the face of different application scenes, and the configuration cannot be carried out through a visual interface in the configuration process.
Therefore, how to configure the GIS application through the visualization interface is an urgent problem to be solved.
Disclosure of Invention
In view of the above, a main object of the present application is to provide a method and an apparatus for generating a GIS application of a geographic information system, so as to implement configuration of the GIS application through a visual interface.
The first aspect of the application provides a method for generating Geographic Information System (GIS) application, which comprises the following steps:
configuring parameters of a plurality of map services in a visual interface, and analyzing the parameters of the plurality of map services through a unified map interface so as to read map data of the plurality of map services;
configuring parameters of a plurality of functional components in a visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components;
configuring an interface style on a visual interface according to a plurality of functional components;
generating a GIS application according to the map data, the plurality of functional components and the interface style of the plurality of map services.
In some implementations of the first aspect of the application, the method may further include:
acquiring parameters of each map service in a plurality of map services according to a uniform map interface, wherein the parameters of each map service comprise a map service provider and a map service type;
and reading the sub-hierarchy information of the plurality of map services according to the parameters, and automatically filling the sub-hierarchy information into a database form.
In some implementations of the first aspect of the present application, configuring an interface style on a visual interface according to a plurality of functional components specifically includes:
configuring parameters corresponding to a plurality of interface components on a visual interface, wherein the parameters corresponding to the plurality of interface components comprise at least one of the following parameters: the method comprises the following steps of (1) setting position parameters, width parameters, height parameters, frame parameters and color parameters of a plurality of interface components;
configuring a plurality of interface components corresponding to a plurality of function components according to parameters corresponding to the plurality of interface components;
an interface style is generated from the plurality of interface components.
In some implementations of the first aspect of the present application, generating an interface style according to a plurality of interface components specifically includes:
generating a newly-built interface rule model according to the interface rules of the plurality of interface components, and adding the newly-built interface rule model into the basic interface rule model;
and configuring the interface style according to the newly-established interface rule model.
In some implementations of the first aspect of the application, the method further comprises:
acquiring an application code, an application name, an initial map range and a coordinate system of a first GIS application to be configured;
selecting a functional component of a first GIS application to be configured according to a database list;
selecting an interface style of a first GIS application to be configured according to the newly-built interface rule model;
and generating a first GIS application according to the functional component of the first GIS application to be configured and the interface style of the first GIS application to be configured.
In some implementations of the first aspect of the application, the method further comprises:
loading a plurality of map services of the first GIS application on a visual interface according to the application code of the first GIS application;
acquiring an interface component of the first GIS application according to the newly-built interface rule model;
and calling a dynamic renderer according to the interface component of the first GIS application, and rendering the interface style of the first GIS application through the dynamic renderer.
In some implementations of the first aspect of the present application, the method further comprises:
acquiring the logic sequence of the plurality of functional components according to the function identifiers of the plurality of functional components;
and loading the plurality of functional components on the visual interface according to the logic sequence of the plurality of functional components.
In some implementations of the first aspect of the present application, the method further comprises:
judging whether necessary parameters of a first map service in a plurality of map services are empty fields;
and if the necessary parameters of the first map service in the map services are empty fields, sending a reminding message, wherein the reminding message is used for reminding the user of modifying the necessary parameters of the first map service.
A second aspect of the present application provides a device for generating a geographic information system, GIS, application, the device comprising: the map service system comprises a map service configuration unit, a function construction unit, an interface configuration unit and an application generation unit;
the map service configuration unit is used for configuring parameters of a plurality of map services in a visual interface and analyzing the parameters of the plurality of map services through a unified map interface so as to read map data of the plurality of map services;
the function building unit is used for configuring parameters of a plurality of functional components in the visual interface, storing the parameters of the functional components into a database form and building a new functional component on the visual interface according to the functional components;
the interface configuration unit is used for configuring an interface style on the visual interface according to the plurality of functional components;
and the application generating unit is used for generating the GIS application according to the map data, the functional components and the interface styles of the map services.
In some implementations of the second aspect of the present application, the apparatus may further include:
the map service management system comprises an acquisition unit, a processing unit and a management unit, wherein the acquisition unit is used for acquiring parameters of each map service in a plurality of map services according to a uniform map interface, and the parameters of each map service comprise a map service provider and a map service type;
in some implementations, the obtaining unit can be further configured to read sub-hierarchy information of a plurality of map services according to the parameter, and automatically populate the sub-hierarchy information into the database form.
In some implementations of the second aspect of the present application, the interface configuration unit may be further configured to:
configuring parameters corresponding to a plurality of interface components on a visual interface, wherein the parameters corresponding to the plurality of interface components comprise at least one of the following parameters: the placement position parameters, the width parameters, the height parameters, the frame parameters and the color parameters of the plurality of interface components;
configuring a plurality of interface components corresponding to a plurality of functional components according to parameters corresponding to the plurality of interface components;
an interface style is generated from the plurality of interface components.
In some implementations of the second aspect of the present application, the apparatus may further include:
the adding unit is used for generating a newly-built interface rule model according to the interface rules of the plurality of interface components and adding the newly-built interface rule model into the basic interface rule model;
and configuring an interface style according to the newly-established interface rule model.
In some implementations of the second aspect of the present application, the application generation unit may be further configured to obtain an application code, an application name, an initial range of a map, and a coordinate system of a first GIS application to be configured;
selecting a functional component of a first GIS application to be configured according to a database list;
selecting an interface style of a first GIS application to be configured according to the newly-built interface rule model;
and generating a first GIS application according to the functional component of the first GIS application to be configured and the interface style of the first GIS application to be configured.
In some implementations of the second aspect of the present application, the apparatus may further include:
the loading unit is used for loading a plurality of map services of the first GIS application on the visual interface according to the application code of the first GIS application;
in some implementation manners, the loading unit may further obtain an interface component of the first GIS application according to the newly-built interface rule model;
in some implementations of the second aspect of the present application, the apparatus may further include:
and the calling unit is used for calling the dynamic renderer according to the interface component of the first GIS application and rendering the interface style of the first GIS application through the dynamic renderer.
In some implementations of the second aspect of the present application, the loading unit may be further configured to:
acquiring the logic sequence of the plurality of functional components according to the function identifiers of the plurality of functional components;
and loading the plurality of functional components on the visual interface according to the logic sequence of the plurality of functional components.
In some implementations of the second aspect of the present application, the apparatus may further include a determining unit:
the judging unit is used for judging whether necessary parameters of a first map service in the plurality of map services are empty fields;
and if the necessary parameters of the first map service in the map services are empty fields, sending a reminding message, wherein the reminding message is used for reminding a user of modifying the necessary parameters of the first map service.
A third aspect of the present application provides a computer device, characterized in that the device comprises a memory and a processor for executing a program stored in the memory to perform the method according to any of the first aspect described above.
Compared with the prior art, the technical scheme provided by the application has the following beneficial effects:
the map data of the map services are read by configuring the map services in the visual interface and analyzing the parameters of the map services through the unified map interface; configuring parameters of a plurality of functional components in a visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components; configuring an interface style according to a plurality of functional components on a visual interface; generating a GIS application according to the map data, the plurality of functional components and the interface style of the plurality of map services. The configuration data is arranged in a database form, the configuration data of each component is arranged in a visual interface, and GIS application is generated according to each component, so that the GIS application is configured through the visual interface.
Besides the advantages, the data can be reconfigured more visually when different application scenes are faced by adopting the visual interface configuration data, and compared with the prior art that the configuration is not carried out based on the visual interface, the GIS application system meeting the requirements of different scenes can be generated more quickly.
Drawings
Fig. 1 is a schematic flowchart of a method for generating a geographic information system GIS application according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for generating a GIS application of a geographic information system according to an embodiment of the present disclosure;
fig. 3 is a schematic composition diagram of a geographic information system GIS application generation apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic composition diagram of another geographic information system GIS application generation apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the preceding drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, if a user changes a support GIS platform, even if the functional requirements of the user do not change, a code frame needs to be changed, and codes are rewritten to adapt to the corresponding GIS platform. For GIS projects, the idea of users for GIS application interface styles is constantly changing, and needs to be continuously developed and written with codes to modify the overall layout and style to meet the requirements of users.
Therefore, a uniform map service interface is provided in the application, and the map service interface can be conveniently adapted to the mainstream GIS platforms (ArcGIS, superMap and OpenLayers) on the market. And provide abundant basic GIS function library, satisfy simple business scene, secondly provide the function and construct the engine, can assemble a plurality of basic GIS functions through visual interface thereby to construct new function, can satisfy complicated business scene betterly.
Referring to fig. 1, an embodiment of the present application provides a method for generating a geographic information system GIS application, including the following steps:
s101: configuring parameters of a plurality of map services in a visual interface, and analyzing the parameters of the plurality of map services through a unified map interface so as to read map data of the plurality of map services;
it should be noted that the parameters of the plurality of map services may be information such as a map service address, a map service providing platform, and a map service type. The unified map service interface can be well adapted to GIS platforms in the market, such as ArcGIS, superMap, openLayers and the like.
In some implementations, parsing can also be performed according to parameters of multiple map services to read sub-hierarchy information, and the sub-hierarchy information is automatically populated into a database form. The sub-hierarchy information may include one or more sub-hierarchies, for example, in a map service, where the map service is similar to a folder and the sub-hierarchies inside the map service are similar to files in the folder.
GIS platforms on the market are various, each platform has a map service type corresponding to the GIS platform, and firstly, the access logic of each map type is written in a core code; secondly, judging the map is accessed in which way through the map service type configured by the user and a map provider; and finally, matching different map service types into different map type implementation methods to realize the analysis of different map services. It should be noted that the service type may be, for example, a component service, a dynamic service, or the like, and the map provider may be, for example, arcgis, supermap, or the like. For example, if the map service configured by the user is mapserver service provided by an arcgis platform, the system matches a corresponding map access method according to the configured parameter, and the map access method is provided by the respective GIS platform.
Specifically, a map service is added in a visual interface, information such as a map service address, a map service providing platform (arcgis, supermap, geoScene, internet and the like), a map service type (grid slice, dynamic service, element service, vector slice and the like) and the like is configured into a generating device of the GIS application, and the generating device of the GIS application can judge corresponding parameters required by various map services according to a unified map interface, so that automatic filling and reading of sub-hierarchy information of the map service are realized, and all configurations are stored in a database form. In particular, the corresponding parameters may be a map service provider and a map service type.
S102: configuring parameters of a plurality of functional components in a visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components;
it should be noted that when a part of the functional components are operated in the application, the map service data may be needed, for example, the function of querying the project needs the map service data of the project to query the project. However, in some implementations of the present application, configuration data for a plurality of functional components may not be generated from map data for a plurality of map services. For example, survey ranging, which functions without the need for map data for map services.
The configuration of the functional components may also be obtained without the configuration map service data, and generally includes: component name, component path, extended configuration, etc. When the functional component runs in the application, the function which is realized in the system is found through the component path in the parameter, that is, the function can be run, and if the functional component needs a certain map service, the function can be configured in the extended configuration.
The explanation for the function building engine is as follows:
firstly, a basic function library (for example, the basic function library includes functions of map service inquiry, graph drawing and the like) is provided, the basic function library can meet the basic application scene, a part of basic functions can be configured in advance in the basic function library, the functions are already implemented in codes, and the following parameters are configured to be directly used.
Specifically, the complex function may be further constructed by the basic function in the component basic function library, which may include the following steps:
1. a base function is selected from a base function library.
2. Selecting map service data required by the function, and configuring input and output of each function.
Wherein the input and output of each function is to connect each basic function.
It should be noted that, in some implementation manners of the present application, the map service data may not be adopted, and the implementation of the embodiment of the present application is not affected.
Taking the number of cells in a certain drawn area as an example:
1. selecting a basic function-drawing surface;
2. configuring parameters of the drawing surface: map data, input data: none, output data: a drawn graph;
3. selecting a basic function-query map service;
4. configuring parameters of a map query service, and inputting data: the output parameters of the plot service plus the previous function drawing surface are as follows: and drawing cell data in the range.
Selecting a certain functional component in the basic GIS functional library, setting input and output parameters of the functional component, selecting map data required by the functional component from the map service configured in S101, completing the configuration of the first function, and further configuring other required basic GIS functions according to the step. The logic flow order of each basic GIS function may also be adjusted after the configuration of the functional components and all configuration data is saved in the database table.
It should be noted that the generated multiple functional components may be added to the basic GIS functional library for later reuse.
For example, a peripheral analysis function is required, which is used to analyze how many cells are around a supermarket, and the peripheral analysis function can be configured with a buffer area generation function to obtain a range area of 1km around the supermarket, and then a space query function can be configured to perform space query through the obtained range area and a cell point diagram layer to query out cells within the range.
For example, two attribute query functions need to be configured, and first, the attribute query function can be configured to query a lake layer to query a lake with a first name; and secondly, an attribute query function can be configured, the lake layer is queried by taking the lake to be queried as a query condition, and the constructed new function can be normally used if the query result is the same lake named as the first lake.
A function construction engine is provided, a plurality of basic GIS functions can be assembled through a visual interface, so that a new function is constructed, and a complex service scene is met.
S103: configuring an interface style on a visual interface according to a plurality of functional components;
specifically, a plurality of basic interface rule models can be built in the GIS application generation device for selection, and if the theme color of the basic interface rule models does not meet the requirements, the theme color band can be modified.
Further, an interface rule model can be newly established. For example, an interface rule model is newly established in the visual interface, wherein interface components such as a drag text, a radio box, a check box and the like can be used, corresponding parameters of each interface component are configured, a function component corresponding to the interface component is selected from a basic GIS function library configured in S102, the function corresponds to an interface style, all configuration data are stored in a database form after the function is completed, and the newly established interface rule model is added to the basic interface rule model for later reuse. It should be noted that the corresponding parameter of the interface component may be a placement position parameter, a width height parameter, a border color parameter, and the like.
The visual configuration interface providing the customizable interface style rule can quickly respond to the personalized requirements of the user on the interface style.
S104: generating a GIS application according to the map data, the plurality of functional components and the interface style of the plurality of map services.
The method specifically comprises the following steps:
the method comprises the following steps: acquiring an application code, an application name, an initial map range and a coordinate system of a first GIS application to be configured;
step two: selecting a functional component of a first GIS application to be configured according to a database list;
step three: selecting an interface style of a first GIS application to be configured according to the newly-built interface rule model;
step four: and generating a first GIS application according to the functional component of the first GIS application to be configured and the interface style of the first GIS application to be configured.
The method for generating the GIS application can adopt an application building algorithm to respectively build the functional components, the interface components and the interface styles into corresponding models so as to directly carry out visual configuration on the GIS application according to each model in the following process. Wherein each model can be understood as a visualization of each configuration parameter. Can be prepared by
For example, an application is newly built in the visual interface, information such as an application code, an application name, a map initial range, a coordinate system and the like is configured, in the functional model, a required functional component is selected from the basic GIS functional library built in S102, and in the interface model, an interface rule is selected from the interface rule model built in S103.
It should be noted that after generating the GIS application, the integrity of the GIS application configuration may be checked, wherein the integrity may include, but is not limited to, uniqueness, consistency, integrity, and connectivity. For example, for the configuration of the map service, whether necessary parameters in the map service are null or not can be judged, for example, if a service address is null, the user is reminded of the configuration problem in a red color, and if the configuration is used, the application cannot run; it may also be determined whether the map service address is accessible. For the functional component, whether the input and output parameters are null or not can be judged; for the interface model, whether the configured interface component lacks necessary parameters or not can be judged, and the wrong configuration information is listed for the judgment of the user.
The process shown in fig. 1 is to configure a plurality of map services in a visualization interface, and analyze parameters of the plurality of map services through a unified map interface, so as to read map data of the plurality of map services; configuring parameters of a plurality of functional components in a visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components; configuring an interface style according to a plurality of functional components on a visual interface; generating a GIS application from the map data, the plurality of functional components, and the interface style of the plurality of map services. The configuration data is arranged in a database form, the configuration data of each component is arranged in a visual interface, and GIS application is generated according to each component, so that the GIS application is configured through the visual interface.
Referring to fig. 2, the present application further provides another method for generating GIS applications of a geographic information system, and because multiple sets of application systems need to be deployed when different GIS application systems are used in the prior art, reusability and convenience are lacking. Therefore, the embodiment of the present application may add a loading step on the basis of fig. 1, and specifically includes the following steps:
s201: loading different types of map services;
and loading a plurality of map services of the first GIS application on the visual interface according to the application code of the first GIS application. Specifically, the map service configuration information corresponding to the application code can be read from the database form according to the application code, a map service loading method which is built in the system and packaged is called, and the map service loading is realized by judging the type of the map service and calling the corresponding map service loading method. The map service configuration information may include a service address, a service provider, a service type, an authentication method, and the like.
It should be noted that different types of map service loading methods for different GIS applications are different, and each GIS application provides different jsapi for loading different map services, and the loading is implemented by writing codes.
For example, arcgis 'jsapi is used for map services, arcgis' jsapi method is used for mapserver loading, arc gisdynamicapservicelayer method is used for fatureserver loading, and FeatureLayer method is used for FeatureLayer loading. The map service of Supermap uses jsapi provided by Supermap, and the loading of the slice map uses tiledMapLayer method.
S202: loading a plurality of configured functional components;
the method specifically comprises the following steps:
the method comprises the following steps: acquiring the logic sequence of the plurality of functional components according to the function identifiers of the plurality of functional components;
step two: and loading the plurality of functional components on the visual interface according to the logic sequence of the plurality of functional components.
For example, the configuration information of the functional component corresponding to the application code may be read from the database form according to the application code. For basic GIS functions, according to the unique identification of the functional component, calling a packaged basic GIS function library built in the system, and loading corresponding function building; for the constructed new functions, acquiring function identifiers and input/output parameters of all basic functions in the new functions and logic sequences of all basic functions through function identifiers of the new functions, acquiring basic GIS functions built in a system through the function identifiers, determining operation sequences of the new functions according to the logic sequences of the basic functions, connecting all modules through the input/output parameters, wherein the output result of the last basic function is the input parameter of the next basic function, and the output parameter of the last function is the result data of the operation of the new functions.
In particular, the logical order may refer to, for example, the new function built, with three basic functions configured under the "operation" node: inquiring an item red line, creating a buffer area and performing superposition analysis, wherein when a new function is loaded, the steps are as follows from top to bottom according to the configuration sequence: query term red line-create buffer-overlay analysis. The configuration sequence may include, but is not limited to, from top to bottom, and other configuration sequences may also be adopted.
Specifically, the connection may be, for example, that the first basic function is "query item red line", a certain item range plane is queried, the range plane of a certain item is an output result of the first basic function, and then a range line of 1km around the certain item range plane can be created according to the output result of the first basic function as an input parameter of the second basic function "create buffer".
S203: and loading the configured interface style.
The method specifically comprises the following steps:
the method comprises the following steps: loading a plurality of map services of the first GIS application on a visual interface according to the application code of the first GIS application;
step two: acquiring an interface component of the first GIS application according to the newly-built interface rule model;
step three: and calling a dynamic renderer according to the interface component of the first GIS application, and rendering the interface style of the first GIS application through the dynamic renderer.
For example, the configuration information of the interface rule corresponding to the application code can be read from the database form according to the application code, the interface rule of each functional component is obtained, the corresponding interface component built in the system is called according to the type of the interface rule, and the dynamic renderer built in the browser is called according to the configuration parameters of the configured interface rule to render the interface style of the system.
It should be noted that, if the function component is a button, the button component built in the system is called, and according to the style rule of the interface rule: button border style, button background color, height width of the button, etc. The style of the function button is rendered.
For example, the buttons store the configuration information into the database form according to the background color, height width and the like of the configured buttons, when the application runs, the style configuration of the buttons stored in the database form is read, and the style of the buttons is rendered through the codes by adopting the style configuration.
It should be noted that the execution sequence of S201 to S203 may be performed sequentially or simultaneously.
In the embodiment of the present application shown in fig. 2, in order to avoid the need of re-modifying the access of new types of devices, it is proposed to generate models of different types of auxiliary devices through one model, thereby implementing unified modeling of control systems of multiple devices, and performing configuration and management on a unified scale, using one system for management.
As shown in fig. 3, an embodiment of the present application further provides a device for generating a geographic information system GIS application, where the device specifically includes:
the map service configuration unit 301: the map data acquisition system is used for configuring parameters of a plurality of map services in a visual interface and analyzing the parameters of the plurality of map services through a unified map interface so as to read map data of the plurality of map services;
the function building unit 302 is configured to configure parameters of a plurality of functional components in the visual interface, store the parameters of the plurality of functional components in a database form, and build a new functional component on the visual interface according to the plurality of functional components;
the interface configuration unit 303 is configured to configure an interface style on the visual interface according to the plurality of functional components;
an application generating unit 304 for generating a GIS application from the map data of the plurality of map services, the plurality of functional components, and the interface style.
In some implementations of this embodiment, the apparatus may further include:
the map service management system comprises an acquisition unit, a processing unit and a management unit, wherein the acquisition unit is used for acquiring parameters corresponding to each map service in a plurality of map services according to a uniform map interface, and the parameters corresponding to each map service comprise a map service provider and a map service type;
the acquisition unit can also be used for reading the sub-graph layer information of a plurality of map services according to the parameters and automatically filling the sub-graph layer information into the database form.
In some implementations, the interface configuration unit may be further to:
configuring parameters corresponding to a plurality of interface components on a visual interface, wherein the parameters corresponding to the plurality of interface components comprise at least one of the following parameters: the method comprises the following steps of (1) setting position parameters, width parameters, height parameters, frame parameters and color parameters of a plurality of interface components;
configuring a plurality of interface components corresponding to a plurality of functional components according to parameters corresponding to the plurality of interface components;
an interface style is generated from the plurality of interface components.
In some implementations, the apparatus may further include:
the adding unit is used for generating a newly-built interface rule model according to the interface rules of the plurality of interface components and adding the newly-built interface rule model into the basic interface rule model;
and configuring an interface style according to the newly-established interface rule model.
In some implementations, the application generation unit may be further configured to obtain an application code, an application name, an initial range of a map, and a coordinate system of a first GIS application to be configured;
selecting a functional component of a first GIS application to be configured according to a database list;
selecting an interface style of a first GIS application to be configured according to the newly-built interface rule model;
and generating a first GIS application according to the functional component of the first GIS application to be configured and the interface style of the first GIS application to be configured.
In some implementations, the apparatus may further include:
the loading unit is used for loading a plurality of map services of the first GIS application on the visual interface according to the application code of the first GIS application;
in some implementation manners, the loading unit may further obtain an interface component of the first GIS application according to the newly-built interface rule model;
in some implementations, the apparatus may further include:
and the calling unit is used for calling the dynamic renderer according to the interface component of the first GIS application and rendering the interface style of the first GIS application through the dynamic renderer.
In some implementations, the loading unit may be further operable to:
acquiring the logic sequence of the plurality of functional components according to the function identifiers of the plurality of functional components;
and loading the plurality of functional components on the visual interface according to the logic sequence of the plurality of functional components.
In some implementations, the apparatus may further include a determination unit:
the judging unit is used for judging whether necessary parameters of a first map service in the plurality of map services are empty fields;
and if the necessary parameters of the first map service in the map services are empty fields, sending a reminding message, wherein the reminding message is used for reminding the user of modifying the necessary parameters of the first map service.
It is to be understood that the illustrated construction of the present embodiment does not constitute a specific limitation of the apparatus. In other embodiments, the apparatus may include more or fewer components than shown, or combine other components, or split other components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Referring to fig. 4, in the specific application scenario, the generating device in the practical application scenario specifically includes: the system comprises an interface rule model, a function building engine and a unified map interface.
Specifically, the interface rule model may include a diversified basic interface module, a custom interface theme color, a custom basic interface template tool, and may also include configuration condition frames of other interfaces.
Specifically, the function building engine may include basic function components from which diverse combined functions are built. It should be noted that the basic GIS function library may be formed by a plurality of basic function components, where the basic function components may include, but are not limited to, spatial data query, spatial data display, spatial data editing, GIS file parsing, map printing, thematic mapping, map scene saving, map legend, split screen display, and the like.
Specifically, the unified map interface may be divided into two parts, namely a map and a kernel, and may also include other components. The map may include a dynamic map, a grid slice, a vector slice, a three-dimensional model, etc., and may also include other information sources.
The method provides a unified map interface, a function construction engine, an interface rule model and an application construction algorithm, and realizes the rapid and convenient assembly of the comprehensive GIS application system meeting diversified requirements in a visual interface.
The unified map interface can be compatible with multiple types of map services of multiple GIS platforms; through the function construction engine, a plurality of basic GIS functions can be combined to construct a new GIS function; the interface style rule customized by the interface rule model can dynamically render the interfaces of the diversified GIS application systems. Kernels may include, but are not limited to, sources such as arcgis, supermap, geoScene, internet, and the like.
It should be noted that the generated GIS application may be a two-dimensional map application, a three-dimensional map application, or an application in other display modes, which do not affect the implementation of the embodiment of the present application.
By the device shown in fig. 4, various comprehensive GIS application systems can be freely combined by the configured map data, functional components and interface rules and the application construction algorithm, so that service scenes with different requirements can be met.
As shown in fig. 5, an embodiment of the present application further provides a computer device, including: a memory 501, a processor 502;
the memory 501 is used for storing programs;
the processor 502 is used to execute the program in the memory to implement the above-described generation method of the geographic information system GIS application as described in fig. 1 to 2.
Finally, it should be further noted that, in the embodiments of the present application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for generating Geographic Information System (GIS) application is characterized by comprising the following steps:
configuring parameters of a plurality of map services in a visual interface, and analyzing the parameters of the plurality of map services through a uniform map interface so as to read map data of the plurality of map services;
configuring parameters of a plurality of functional components in the visual interface, storing the parameters of the functional components in a database form, and constructing a new functional component on the visual interface according to the functional components;
configuring an interface style on the visual interface according to the plurality of functional components;
generating a GIS application according to the map data of the plurality of map services, the plurality of functional components and the interface style.
2. The method of claim 1, further comprising:
acquiring parameters of each map service in the plurality of map services according to the uniform map interface, wherein the parameters of each map service comprise a map service provider and a map service type;
and reading the sub-layer information of the plurality of map services according to the parameters, and automatically filling the sub-layer information into the database form.
3. The method of claim 1, wherein configuring an interface style on the visual interface according to the plurality of functional components comprises:
configuring parameters corresponding to a plurality of interface components on the visual interface, wherein the parameters corresponding to the plurality of interface components comprise at least one of the following parameters: the placement position parameters, the width parameters, the height parameters, the frame parameters and the color parameters of the plurality of interface components;
configuring a plurality of interface components corresponding to the plurality of functional components according to the parameters corresponding to the plurality of interface components;
generating the interface style according to the plurality of interface components.
4. The method of claim 3, wherein the generating the interface style from the plurality of interface components comprises:
generating a newly-built interface rule model according to the interface rules of the plurality of interface components, and adding the newly-built interface rule model into a basic interface rule model;
and configuring the interface style according to the newly-established interface rule model.
5. The method of claim 4, further comprising:
acquiring an application code, an application name, an initial map range and a coordinate system of a first GIS application to be configured;
selecting a functional component of the first GIS application to be configured according to the database list;
selecting an interface style of the first GIS application to be configured according to the newly-built interface rule model;
and generating the first GIS application according to the functional component of the first GIS application to be configured and the interface style of the first GIS application to be configured.
6. The method of claim 5, further comprising:
loading a plurality of map services of the first GIS application on the visual interface according to the application code of the first GIS application;
acquiring an interface component of the first GIS application according to the newly-built interface rule model;
and calling a dynamic renderer according to the interface component of the first GIS application, and rendering the interface style of the first GIS application through the dynamic renderer.
7. The method according to any one of claims 1 to 6, further comprising:
acquiring the logic sequence of the plurality of functional components according to the function identifiers of the plurality of functional components;
and loading the plurality of functional components on the visual interface according to the logic sequence of the plurality of functional components.
8. The method according to any one of claims 1 to 6, further comprising:
determining whether a necessary parameter of a first map service of the plurality of map services is an empty field;
and if the necessary parameters of the first map service in the plurality of map services are empty fields, sending a reminding message, wherein the reminding message is used for reminding a user to modify the necessary parameters of the first map service.
9. An apparatus for generating a Geographic Information System (GIS) application, the apparatus comprising: the map service system comprises a map service configuration unit, a function construction unit, an interface configuration unit and an application generation unit;
the map service configuration unit is used for configuring parameters of a plurality of map services in a visual interface and analyzing the parameters of the plurality of map services through a uniform map interface so as to read map data of the plurality of map services;
the function building unit is used for configuring parameters of a plurality of functional components in the visual interface, storing the parameters of the functional components into a database form, and building a new functional component on the visual interface according to the functional components;
the interface configuration unit is used for configuring an interface style on the visual interface according to the plurality of functional components;
the application generating unit is used for generating the GIS application according to the map data of the map services, the functional components and the interface style.
10. A computer device, characterized in that the device comprises a memory and a processor for executing a program stored in the memory, for performing the method according to any of claims 1-8.
CN202211558000.4A 2022-12-06 2022-12-06 Method and device for generating Geographic Information System (GIS) application Pending CN115827809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211558000.4A CN115827809A (en) 2022-12-06 2022-12-06 Method and device for generating Geographic Information System (GIS) application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211558000.4A CN115827809A (en) 2022-12-06 2022-12-06 Method and device for generating Geographic Information System (GIS) application

Publications (1)

Publication Number Publication Date
CN115827809A true CN115827809A (en) 2023-03-21

Family

ID=85545266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211558000.4A Pending CN115827809A (en) 2022-12-06 2022-12-06 Method and device for generating Geographic Information System (GIS) application

Country Status (1)

Country Link
CN (1) CN115827809A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117193758A (en) * 2023-09-07 2023-12-08 上海数慧系统技术有限公司 GIS software development system and GIS software development method and device
CN117193758B (en) * 2023-09-07 2024-05-28 上海数慧系统技术有限公司 GIS software development system and GIS software development method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117193758A (en) * 2023-09-07 2023-12-08 上海数慧系统技术有限公司 GIS software development system and GIS software development method and device
CN117193758B (en) * 2023-09-07 2024-05-28 上海数慧系统技术有限公司 GIS software development system and GIS software development method and device

Similar Documents

Publication Publication Date Title
US10222951B2 (en) Modeling system for graphic user interface
CN105511873B (en) User interface control display method and device
US7661071B2 (en) Creation of three-dimensional user interface
CN107992304B (en) Method and device for generating display interface
US7703027B2 (en) Merging graphical programs
CN109358851A (en) Creation method, device and the computer readable storage medium of chart components
CN104346149A (en) Descriptive framework used for data visualization
CN102902545B (en) Markup language element is decomposed for animation
CN111881662A (en) Form generation method, device, processing equipment and storage medium
JP7264989B2 (en) Visualization method, device and recording medium for multi-source earth observation image processing
US11733973B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN111857718A (en) List editing method, device, equipment and storage medium
CN108108194A (en) User interface edit methods and user interface editing machine
CN108846893A (en) Trivector ground drawing generating method and device
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN114841126A (en) Form generation method, device, equipment, storage medium and program product
CN104778323A (en) Method for simulating complex equipment operation process integrating multisource performance analysis data
CN109783596B (en) ArcGIS map configuration preview method based on Angular component
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
CN115810064A (en) Map making and publishing platform construction method based on open source GIS technology
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN112966041A (en) Data processing method, device, equipment and storage medium
CN104462467A (en) Coordinate point processing method and device used for electronic map interface
CN111797125A (en) Report creating method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination