CN109977183A - The drafting method with natural resources business attached drawing is planned under WebGIS environment - Google Patents

The drafting method with natural resources business attached drawing is planned under WebGIS environment Download PDF

Info

Publication number
CN109977183A
CN109977183A CN201910201433.6A CN201910201433A CN109977183A CN 109977183 A CN109977183 A CN 109977183A CN 201910201433 A CN201910201433 A CN 201910201433A CN 109977183 A CN109977183 A CN 109977183A
Authority
CN
China
Prior art keywords
handed watch
width
ornamenting
frame
map
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.)
Granted
Application number
CN201910201433.6A
Other languages
Chinese (zh)
Other versions
CN109977183B (en
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.)
Geospace Information Technology Co Ltd
Original Assignee
WUDA GEOINFORMATICS 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 WUDA GEOINFORMATICS CO Ltd filed Critical WUDA GEOINFORMATICS CO Ltd
Priority to CN201910201433.6A priority Critical patent/CN109977183B/en
Publication of CN109977183A publication Critical patent/CN109977183A/en
Application granted granted Critical
Publication of CN109977183B publication Critical patent/CN109977183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Abstract

The present invention is suitable for technical field of geographic information, provides the drafting method of planning and natural resources business attached drawing under a kind of WebGIS environment, the method includes the following steps: step S1, receiving user-interaction parameter;Integral layout parameter, which is calculated, according to user-interaction parameter generates drawing ornamenting frame;Load map is sliced service data in the map of drawing ornamenting frame;After the completion of data load, the addition drawing ornamenting element into drawing ornamenting frame;Character property contents processing is carried out, complete drawing decoration is generated;File output.Under WebGIS environment, on backstage, drawing service centre charts, and the result of drawing is transmitted to front end interaction center, i.e. WebGIS client in the form of pdf document for invention;The problem of " ultralong beltlike and include picture and text one table " planning is with natural resources business attached drawing is charted and efficiently produced in addition, also solving.

Description

The drafting method with natural resources business attached drawing is planned under WebGIS environment
Technical field
The invention belongs to planning under technical field of geographic information more particularly to a kind of WebGIS environment and natural resources business The drafting method and device of attached drawing.
Background technique
In planning with natural resources business, to the land use and every construction in urban planning area, core is needed to send out The certificates such as permission notes for location, land use permit, planning permit of construction engineering.When core sends out these certificates, also need Corresponding attached drawing is provided.Attached drawing is determined there is legal equivalents with certificate by licence issuing authority in accordance with the law.
Attached drawing is realized by planning with " drawing " module in Natural resources information system, because drawing involves map The operation such as production, map appearance and map making is especially handled so process is typically complex and the operation processing time is long The drawing of " ultralong beltlike and include picture and text one table ".
At present generally use on the market be realized by the system of desktop end or Embedded desktop plug-ins insertion Web page is realized;Even if realizing drawing under WebGIS environment, picture frame template is fixed, and drawing pattern is relatively simple, can not Meet the requirement of complicated planning and natural resources business attached drawing, especially no other software can be realized " ultralong beltlike and Include picture and text one table " attached drawing;And the achievement of traditional software drawing saves in the database in the specific format, needs Drawing achievement can be just viewed in systems.Therefore, at present using the either Embedded desktop plug-ins insertion of desktop end system Web page is charted, and there are following technical problems this scheme:
1) need client that corresponding run time infrastructure software is installed, such as GIS secondary development software ArcEngine Runtime, database support Oracle Client etc., need additional installation and deployment, and increase additional purchase software expense With;
2) update of unscheduled maintenance desktop software is needed, maintenance cost is increased;
3) due to the direct-connected spatial database of client, regional planning agency's server can be deposited in the case of branch office's poor network connectivity Connecting unstable situation, it is often necessary to which repeatedly drawing ornamenting could succeed.The drawing of especially large-scale spatial data is whole Decorations.
If 4) using Embedded desktop plug-ins technology, due to IE browser, it may appear that many unexpected The problem of, such as memory overflow, the page collapse and page GDI handle it is excessive the problems such as.
Summary of the invention
In view of the above problems, attached with natural resources business the purpose of the present invention is to provide being planned under a kind of WebGIS environment The drafting method and device of figure, it is intended to solve above-mentioned technical problem.
The present invention adopts the following technical scheme:
It plans under the WebGIS environment and includes the following steps: with the drafting method of natural resources business attached drawing
Step S1, user-interaction parameter is received;
Step S2, integral layout parameter is calculated according to user-interaction parameter and generates drawing ornamenting frame;
Step S3, in the map of drawing ornamenting frame, load map is sliced service data;
Step S4, after the completion of data load, the addition drawing ornamenting element into drawing ornamenting frame;
Step S5, character property contents processing is carried out, complete drawing decoration is generated;
Step S6, file exports.
Further, the step S6 is specifically included:
All the elements in the complete drawing decoration page layout are exported by the file of grid format.
Further, the step S6 further include:
Map slice service data in map is substituted for vector data, then will completely chart and decorate in page layout All the elements are exported, and the file for meeting printing precision requirement is generated.
Further, in the step S2, the drawing for generating drawing ornamenting frame is calculated according to user-interaction parameter first Spatial dimension, plotting scale and drawing paper;Then it calculates integral layout parameter and draws drawing ornamenting frame accordingly, it is described Integral layout parameter include outer border, interior mapborder, left-handed watch lattice, picture frame and right table Width x Height;Specific drawing process is such as Under:
Obtain map height;
Drawing corresponding templates configuration is obtained according to user-interaction parameter;
Calculate whether left-handed watch lattice number of pages can have the case where multipage;
If there is multipage situation, then the corresponding left table width of template is modified;
Obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table overall width;
Outer border, interior mapborder are drawn according to overall width and template;
Left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
Further, in the step S2, the drawing for generating drawing ornamenting frame is calculated according to user-interaction parameter first Spatial dimension, plotting scale and drawing paper;Then it calculates integral layout parameter and draws drawing ornamenting frame accordingly, it is described Integral layout parameter include outer border, interior mapborder, left-handed watch lattice, picture frame and right table Width x Height;Specific drawing process is such as Under:
Obtain map height;
Drawing corresponding templates configuration is obtained according to user-interaction parameter;
Calculate whether left-handed watch lattice number of pages can have the case where multipage;
If there is multipage situation, then the corresponding left table width of template is modified;
Drawing subregion is calculated and generates according to the broken line that user draws, wherein every section of broken line is corresponding to generate drawing All drawing subregions, are carried out that rotation is horizontal positioned to obtain final mapland by region;
Calculate final mapland width, obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table it is total Width;
Outer border, interior mapborder are drawn according to overall width and template;
Left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
Further, it is as follows to generate the final mapland process: drawing every section of broken line for user and generates positive negative side To a pair of of parallel lines;Every section of broken line generates a rectangle drawing subregion, and the rectangle drawing subregion is corresponding with broken line A pair of of parallel lines are side;It is corresponding to draw using the line of two parallel lines intersection points as side for adjacent two rectangles drawing subregion It is mitogenetic at two adjacent trapezoid areas;Two adjacent trapezoid areas are horizontal positioned with the rotation of a wherein intersection point;All ladders Final mapland is obtained after the rotation of shape region, the final mapland is ultralong beltlike, and width is the drawing of all rectangles The width summation of subregion;
After outer border of completing, interior mapborder, left-handed watch lattice, right table and ground picture frame, the seat for calculating the line is also needed Mark, and be plotted in ground picture frame.
Further, in the step S4, the figure ornamenting element includes drawing left-handed watch, the right table of drawing, map compass With scale bar, The Key to Maps;
Wherein, chart left-handed watch treatment process it is as follows:
Left-handed watch template configuration xslt file, left-handed watch text flow table list xml document are obtained, merges and generates left-handed watch xml file;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of drawing board configuration, high, left-handed watch position, calculates the position of each cell;
Multiple right tables are judged whether there is, are existed, the cell of multiple row is marked and modify;
Generate the cell two-dimensional array of left-handed watch;
Left-handed watch is drawn according to the two-dimensional array of left-handed watch, and examination & approval text information is filled among left-handed watch lattice.
Wherein, chart right table treatment process it is as follows:
Right table template configuration xslt file, right table text flow table list xml document are obtained, merges and generates right table xml file;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of template configuration, high, right epitope is set, and calculates the position of each cell;
Modify the cell height of variable height;
Generate the cell two-dimensional array of right table
Right table is drawn according to the two-dimensional array of right table;
Wherein, the treatment process of map compass and scale bar is as follows:
Drawing scale is calculated, compass object is obtained;
Obtain drawing board configuration;
Calculate the original width of compass, scale bar;
Adjust compass width;
Judge whether scale bar exceeds body of a map or chart, if exceeding, then adjusts compass position;
Draw compass, scale bar;
Wherein, the treatment process of The Key to Maps is as follows:
Obtain the figure layer of legend to be added;
There are the figure layers of data on acquisition drawing;
Obtain legend template, drawing board configuration;
Obtain the corresponding legend of figure layer name;
According to legend number, the legend configuration met is found from drawing board configuration;
It calculates the size of each legend, position, illustrate font;
It scales, translate each legend to designated position.
The present invention is under WebGIS environment, and on backstage, drawing service centre charts, and by the result of drawing with PDF text The form of part is transmitted to front end interaction center, i.e. WebGIS client;It charts in addition, also solving and efficiently produces " ultralong beltlike And include picture and text one table " plan and natural resources business attached drawing.In short, technical solution of the present invention has the beneficial effect that: 1, additional installation and deployment are not needed;2, additional purchase software overhead is reduced;3, the update and dimension of periodic maintenance software are reduced The cost of shield;4 and can be energy-efficient, reduce the waste of paper;5, authoritative and scientific planning and money naturally are provided The attached drawing of source business demand.
Detailed description of the invention
Fig. 1 is Mapping System frame diagram of the present invention;
Fig. 2 is the drawing of planning and natural resources business attached drawing under the WebGIS environment that first embodiment of the invention provides The flow chart of method;
Fig. 3 is the schematic layout pattern of drawing ornamenting frame;
Fig. 4 is the flow chart that drawing ornamenting frame is drawn for common mapping;
Fig. 5 is the process flow diagram of drawing left-handed watch;
Fig. 6 is the process flow diagram of right table of charting;
Fig. 7 is the process flow diagram of map compass and scale bar;
Fig. 8 is the process flow diagram of The Key to Maps;
Fig. 9 is complete drawing decoration schematic diagram;
Figure 10 is a kind of exemplary diagram of complete drawing decoration;
Figure 11 is road construction schematic diagram;
Figure 12 is to chart to draw the flow chart of drawing ornamenting frame for ultralong beltlike;
Figure 13 is to draw broken line schematic diagram;
Figure 14 is the schematic diagram for generating drawing subregion;
Figure 15 is to obtain the schematic diagram of final mapland;
Figure 16 is a kind of exemplary diagram for generating final mapland.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The present invention is based on Mapping Systems under WebGIS environment to realize, as shown in Figure 1, Mapping System under the WebGIS environment Including front end interaction center, background service center, adapter center and data center.
Wherein function, first there are two the front end interaction centers provide parameter needed for interactive mode obtains drawing, and By these parameters to background service center;Second, receive the last drawing achievement of background service center, and the exhibition that will chart Now give user.
Data supporting and storage of the data center for drawing, by examining literary streaming system database, pattern space data The composition such as library and attribute database, MongoDB database and ArcGISServer server.
The adapter center from data center for extracting data, by various space/attribute/slice/examination & approval text streams Etc. data conversions be configured to conform to drawing require data, for background service center use.Particular content includes:
The approval information examined in literary streaming system database is read by graphic interface;
Figure spatial database configuration map vector figure data is connected by configuring system;By configuring system connection ArcGIS Server server configures map slice of data;
By configuring system connection attribute database configuration drawing ornamenting element;
The read-write operation of data is completed by generic service center.
Wherein configuration drawing ornamenting element is the emphasis of whole process, specifically includes drawing ornamenting arrangements, drawing number According to the contents such as configuration, drawing board configuration, bitmap area arrangements, legend arrangements.
For the background service center for realizing specific drawing course, background service center is core, receives front end friendship After the user-interaction parameter at mutual center, the various data for meeting drawing and requiring are read from adapter center, such as picture library information, position The contents such as figure, legend, compass, legend and mapborder.Wherein,
It examines literary streaming system database and the examination & approval data of literary streaming system is provided;
Spatial data needed for pattern space database provides drawing;
Attribute database provides the storage of various businesses data and charting results needed for drawing;
The storage of MongoDB offer drawing board data and charting results;
ArcGISServer server provides various slice service datas.
Drawing of the present invention based on background service center, to being planned under WebGIS environment with natural resources business attached drawing Method is described in detail.
Embodiment one:
As shown in Fig. 2, planning the drafting method with natural resources business attached drawing under WebGIS environment provided in this embodiment Include the following steps:
Step S1, user-interaction parameter is received.
It is operated first by front end interaction center (i.e. WebGIS client), such as selection drawing spatial dimension, drawing type, system Drawing scale, drawing paper and drawing pattern, and by these operations passed in the form of parameter backstage drawing service centre into Row processing.
Acquisition drawing spatial dimension can be buffered by rectangle, polygon buffering, multi-section-line buffering, element buffer, are band-like The various ways such as drawing and atlas drawing, wherein band-like drawing is for handling the drawing of general and ultralong beltlike;
Drawing type refers to and plans item relevant to natural resources business, such as addressing, land used, total factor and planning condition Deng;
Plotting scale includes standard 500,1000,2000 and customized scale bar;
Drawing paper has normal paper such as A0, A1, A2, A3 and A4, also there is non-standard paper, is inputted by user oneself;
Drawing pattern has horizontal version and two kinds of vertical version.
Specifically, parameter passes to backstage in the form of Json, after receiving these parameters from the background, after carrying out corresponding parsing confession Face function uses.These user-interaction parameters are transmitted with Json format, and Json format parameter example is as follows:
{
"caseInfo":{
"caseID":"6026d5b3-e356-4170-a956-105ec4f8fec4",
" displayname ": " planning condition (architectural engineering) ",
"keYan":false,
"SZLX":""
},
"loginName":"wangjianwei",
"quanxian":false,
"area":{
"geometryType":"extent",
"geometry":{
"spatialReference":{
"wkt":
"PROJCS[\"NJ08_118_50_CM\",GEOGCS[\"GCS_GRS_1980\",DATUM[\"D_GRS_198 0\",SPHEROID[\"GRS_1980\",6378137.0,298.257222101]],PRIMEM[\"Greenwi ch\", 0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kr uger\"], PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Nort hing\",0.0], PARAMETER[\"Central_Meridian\",118.8333333333333],PARAME TER[\"Scale_ Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT [\"Meter\",1.0]]"
},
"xmin":*,"ymin":*,"xmax":*,"ymax":*
},
"buffer":{
"distance":20,"unit":"m"
}
},
"layerInfos":[
{
"id":"19fbb704-bc8c-400c-a11f-693223e9a083",
" name ": " government affairs version electronic map annotation "
},{
"id":"7f87e688-e3f9-4d59-a0ce-25d23b1bbe05",
" name ": " government affairs version electronic map "
}
],
"pageStyle":{
" type ": " left right model "
},
"pageSetting":{
"pageType":"A2",
"pageSize":{
"width":838.195182800293,
"height":399.50346374511719,
"unit":"mm"
}
},
"scale":"500",
"signature":{
"visible":true,
"background":{
"color":{
"R":255,"G":255,"B":255,"A":0
}
}
},
"includeLX":false,
"dpi":150,
"format":"pdf",
"caselayerinfo":{
"c374a3b6-315d-411a-8c6e-dd4eed8c2376":[
" D01 expropriation of land range red line ", " D01 sells and (transfers) land red-line ", " D03 text annotation explanation "]
},
"otherlayerinfo":{},
"f":"json"
}
Step S2, integral layout parameter is calculated according to user-interaction parameter and generates drawing ornamenting frame.
After receiving user-interaction parameter, carried out calculating generation drawing ornamenting frame according to the user-interaction parameter of input PageLayout, drawing spatial dimension, plotting scale and drawing paper, two of them parameter known to three parameters, Ji Nengji Calculate third parameter.After third parameter is calculated by input parameter, drawing ornamenting frame is calculated in next step The integral layout parameter of PageLayout, specifically include outer border, interior mapborder, left-handed watch lattice, map and right table Width x Height. Specific layout is as shown in Figure 3.The height of entire drawing ornamenting frame PageLayout is calculated on the basis of the height of map, wide Degree then needs to be calculated according to template and the user-interaction parameter of input.Calculate the integral layout of drawing ornamenting frame PageLayout Parameter simultaneously would be mapped out in drawing ornamenting frame PageLayout.
As shown in figure 4, the process for drawing drawing ornamenting frame is as follows for common mapping:
A1, map height is obtained, drawing corresponding templates configuration is obtained according to user-interaction parameter;
A2, calculate whether left-handed watch lattice number of pages can have the case where multipage;
A3, if there is multipage situation, then modify the corresponding left table width of template;
A4, obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table overall width;
A5, outer border, interior mapborder are drawn according to overall width and template;
A6, left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
Drawing corresponding templates configuration is obtained according to user-interaction parameter first;Secondly calculate whether left-handed watch lattice can have multipage The case where, and if so, the corresponding left table width of modification template;Then after the width for obtaining map;Computation sheet, map The overall width of frame and right table;Then overall width and template draw outer border, interior mapborder;Then it is drawn according to interior mapborder and template Left-handed watch lattice, right table and ground picture frame.
Step S3, in the map of drawing ornamenting frame, load map is sliced service data.
After ground picture frame is completed, map is loaded in map and is sliced service data.It is got first according to customer parameter The data name of map, then by configuring system analysis data name, these data names are that unit is in configuration with " figure " It configures in system, and is communicated substantially as map datum is carried out between front end interaction center, background service center and configuration system Unit, and parsed eventually by configuration system, find the physical storage of data of " figure " representative and the slice service of publication.
Step S4, after the completion of data load, the addition drawing ornamenting element into drawing ornamenting frame.
After the completion of map datum load, the addition drawing ornamenting member into drawing ornamenting frame PageLayout is then needed Element specifically includes the contents such as drawing left-handed watch, the right table of drawing, map compass and scale bar, The Key to Maps.Wherein chart left-handed watch, The drafting of right table relies primarily on the configured foundation forms in backstage, and mutually ties with the case information of physical planning and natural resources It closes, obtains actual template configuration, finally according to template configuration and calculating, draw out the table of drawing.
Specifically, as shown in figure 5, the treatment process of drawing left-handed watch is as follows:
Left-handed watch template configuration xslt file, left-handed watch text flow table list xml document are obtained, merges and generates left-handed watch xml file;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of drawing board configuration, high, left-handed watch position, calculates the position of each cell;
Multiple right tables (the sum of row height is greater than right table configuration height) is judged whether there is, is existed, is marked and modify multiple row Cell;
Generate the cell two-dimensional array of left-handed watch;
Left-handed watch is drawn according to the two-dimensional array of left-handed watch, and examination & approval text information is filled among left-handed watch lattice.
As shown in fig. 6, the treatment process for the right table that charts is as follows:
Right table template configuration xslt file, right table text flow table list xml document are obtained, merges and generates right table xml file;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of template configuration, high, right epitope is set, and calculates the position of each cell;
Modify the cell height of variable height (it is high that right table total height subtracts other rows);
Generate the cell two-dimensional array of right table;
Right table is drawn according to the two-dimensional array of right table;
As shown in fig. 7, the treatment process of map compass and scale bar is as follows:
Drawing scale is calculated, compass object is obtained;
Obtain drawing board configuration;
Calculate the original width of compass, scale bar;
Adjust compass width;Specifically, calculating the original width of compass and scale bar, compass width is then judged Whether it is greater than 1st/15th of map height, if it is, compass height takes 1st/15th of map height, then counts The interval of compass and map left margin is calculated, scale bar size and location is calculated;
Judge whether scale bar exceeds body of a map or chart, if exceeding, then adjusts compass position, that is, recalculate compass Continue to calculate scale bar size and location with the interval of map left margin, until scale bar left margin is without departing from map;
Draw compass, scale bar;
As shown in figure 8, the treatment process of The Key to Maps is as follows:
Obtain the figure layer of legend to be added;
There are the figure layers of data on acquisition drawing;
Obtain legend template, drawing board configuration;
Obtain the corresponding legend of figure layer name;
According to legend number, the legend configuration met is found from drawing board configuration;
It calculates the size of each legend, position, illustrate font;
It scales, translate each legend to designated position.
Step S5, character property contents processing is carried out, complete drawing decoration is generated.
After the main ornamenting element of ornamenting is completed in processing, it is also necessary to handle the content of some character properties, such as addition mark Topic, bitmap area, approval information, unit time and signature column etc., generate satisfaction planning and natural resources industry after the completion of processing The PageLayout for figure demand of being engaged in out.These text informations are all configured by configuration system, and are planned and nature with specific Resource services are related.Wherein bitmap area is similar with main map property, is auxiliary map, is mainly used for showing the position that case represents Main permit business graph data and partial graphical index data are added in position, these permit business graph datas are according to industry Business is different and different;Signature column is mainly configured according to drawing board and the right table physical location of drawing, determines place drawing position, and Filled out information is determined according to the examination & approval situation of current drawing case.Complete drawing decoration is as shown in figure 9, Figure 10 is a kind of complete system Figure decoration example.
Step S6, file exports.
The picture for generating preview can be printed first, specifically, in will be all in the complete drawing decoration page layout Hold and is exported by the file of grid format.
In this step, after generating complete drawing ornamenting PageLayout, all the elements for ornamenting of charting all have been generated At, the picture for generating Print Preview is carried out in next step, is supplied to the preview that interaction center carries out drawing cosmetic outcome, PageLayout exports all the elements in page layout, and output is divided into two major classes: 1, based on the file of grid format Output, such as: JPG, BMP, PGN etc.;2, based on the output of vector format, such as: PDF, SVG, AI.Grid format (AG image text Part format) output default resolution be 96dpi, vector format map output default resolution be 300dip.
One of requirement of Print Preview needs live preview, higher to rate request, so smaller using data volume at this time Grid slice of data.And it is not high to the quality requirement of result, so using grid format output such as JPG format.According to user Paper is selected, output processing is carried out by PageLayout, interaction center is as a result returned to picture file format.
If printed in next step if the picture to Print Preview is satisfied.If dissatisfied to Print Preview, Because the paper document of final printing is provided to construction unit, quality requirement is higher, is needed at this time by main map In grid slice of data, i.e., slice service data replaced with vector data, then will completely chart and decorate institute in page layout There is content to be exported, generates the file for meeting printing precision requirement.In configuration system, by map vector number as unit of scheming It is associated with according to Map Services (grid slice) by the title of figure, so background service center can easily find vector Spatial data services device where data, and grid slice of data is replaced one by one.After vector data replaces slice of data, PageLayout exports all the elements in page layout, the pdf document for meeting printing precision requirement is generated, with printing The picture process for generating preview is similar, the difference is that being the output based on vector format, is as a result returned with PDF file format Back to interaction center, repeat no more.
The achievement of traditional software drawing saves in the database in the specific format, needs just look into specific software See drawing achievement.And this relatively easy realization under WebGIS environment, by passing through in background service center All the elements in page layout are carried out the output of vector data PDF format by PageLayout, are as a result returned with pdf document format Back to front end interaction center.
If smaller for drawing range, background service center short processing time, the time for generating PDF is shorter, such phase To easy to accomplish, but if very big for drawing range, the processing time is more than more than half an hour, if using general WebService mode carries out background process, can become highly unstable because handling time time-out, or even will appear collapse Situation.
After the completion of the backstage drawing ornamenting processing of core, the publication serviced by stabilised platform is needed, the present invention Embodiment is used ArcGIS Server as the platform of service publication and is issued with GP service.Specifically, by compiled Dll file is registered with Desktop, Server respectively;The GP tool registered is added in ArcCatalog;? GP tool to be released is run in ArcCatalog, is inputted parameter, is called a GP tool;After GP tool is run successfully, in GP Tool operation result interface, right button issue GP service;The address of service GP is inputted on webpage, opens GP service page;In webpage On, parameter is inputted, " Submit Job (GET) " button is clicked, calls GP service;After calling GP service, and webpage is opened, obtained GP service operation result.
Embodiment two:
Embodiment one describes the realization process of common mapping.But in practical situations in, in many cases item need Carry out ultralong beltlike drawing.The business scenario that ultralong beltlike drawing is mainly used in overlength and charts on a large scale, such as needs to road Road carries out road construction, as shown in figure 11, needs to carry out in road and the figure of surrounding drawing ornamenting and provides construction unit, ground Map space range is " wide 1.5KM* long 6KM ", if going out to scheme using 2000 scale bar of standard, is gone out using ordinary rectangular drafting method Figure paper size is " wide 3M* long 12M, area are 36 ㎡ ", and it is " wide that the method for using ultralong beltlike drawing, which goes out figure paper size, 1M* long 16M, area are 16 ㎡ ".The area of paper needed for being charted using ordinary rectangular is paper area needed for ultralong beltlike charts More than 2 times, ultralong beltlike drawing has obvious energy-efficient advantage.And the maximum of still further aspect common plotter paper at present Width is 1.18 meters or so, and the ordinary rectangular figure paper width that charts out is 3 meters, it is clear that common plotter is unable to satisfy.
The present embodiment description for ultralong beltlike under WebGIS environment and include picture and text one table planning and money naturally The drafting method of source business attached drawing.
The present embodiment step is compared with embodiment one, and the specific implementation process of step S2 is distinct, other steps are consistent. Specifically, when carrying out ultralong beltlike drawing, step S2 generates drawing ornamenting frame in the present embodiment.First according to Family interaction parameter calculates the drawing spatial dimension for generating drawing ornamenting frame, plotting scale and drawing paper;Then it calculates whole Body layout parameter simultaneously accordingly draw drawing ornamenting frame, the integral layout parameter include outer border, interior mapborder, left-handed watch lattice, The Width x Height of picture frame and right table;As shown in figure 12, specific drawing process is as follows:
B1, map height is obtained, drawing corresponding templates configuration is obtained according to user-interaction parameter;
B2, calculate whether left-handed watch lattice number of pages can have the case where multipage;
B3, if there is multipage situation, then modify the corresponding left table width of template;
B4, drawing subregion is calculated and generates according to the broken line that user draws, wherein every section of broken line is corresponding to generate a system All drawing subregions, are carried out that rotation is horizontal positioned to obtain final mapland by figure subregion;
B5, calculate final mapland width, obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table Overall width;
B6, outer border, interior mapborder are drawn according to overall width and template;
B7, left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
In step B4, drawing subregion is calculated and generates according to the broken line that user draws, due to being ultralong beltlike drawing, because User needs to depict 5 sections of foldings as shown in figure 13 according to the tendency drafting broken line of road in WebGIS client first for this Line.Background service center calculates according to user's drafting broken line and generates drawing subregion, wherein there is N sections of broken lines that will generate N number of drawing subregion has 5 sections of broken lines to generate 5 drawing subregions as shown in figure 14.Then all drawing subregions are carried out Rotation is horizontal positioned to obtain final mapland, as a result as shown in figure 15.The processing of other drawing courses and common drawing Process is identical.
Ground width of frame generally with final mapland equivalent width, can also be slightly larger than final mapland width.So Calculate afterwards left-handed watch lattice, picture frame and right table overall width, overall width i.e. in mapborder width, then draw in mapborder, outer border , finally draw left-handed watch lattice, right table and ground picture frame.Entire drawing ornamenting frame just completes.
For the subregion that charts is generated, the present embodiment provides a kind of concrete implementation modes.
Referring to Fig.1 6, for user draw every section of broken line (diagram has two sections of broken lines) generate both forward and reverse directions a pair it is parallel Line;1. 2. every section of broken line generates a rectangle and charts subregion, as, the rectangle charts subregion rectangle drawing subregion in figure Using corresponding a pair of of the parallel lines of broken line as side;For adjacent two rectangles drawing subregion, with the company of two parallel lines intersection points Line is side, and corresponding divide generates two adjacent trapezoid areas;Two adjacent trapezoid areas are rotated into water with a wherein intersection point Placing flat;Final mapland is obtained after all trapezoid area rotations, the final mapland is ultralong beltlike, and width is The width summation of all rectangle drawing subregions.
After outer border of completing, interior mapborder, left-handed watch lattice, right table and ground picture frame, the seat for calculating the line is also needed Mark, and be plotted in ground picture frame.In the implementation method and common mapping implementation method of ultralong beltlike drawing, main map is (i.e. Map in ground picture frame) processing, the main map of common mapping only one, and the main map of ultralong beltlike drawing has N number of, there is N A drawing subregion just has N number of main map.Each main map loads identical data, the region and place of each main Orientation on map The region of WebGIS client map corresponds.
In step s 4, after the completion of map datum load, the addition drawing ornamenting element into drawing ornamenting frame.Picture and text one The realization of body surface lattice is realized automatically by background service center, is obtained interaction parameter by front end interaction center first and is passed to backstage Then the relevant case information of service centre reads data center by the graphic interface at adapter center and examines literary streaming system number According to the approval information in library.Last background service center carries out calculation processing after receiving approval information, generates examination & approval form data, And it draws table and is filled among table in PageLayout and by examination & approval text information.The realization process of drawing left-handed watch is in reality Apply example one kind to be described, rod piece realizes that process is: key point first, which is dynamically generated to have, examines literary stream information and band Have and draws semantic XML.Configuration template XSLT (extensible stylesheet list language, the EXtensible first in configuration system Stylesheet Language), XML data can be converted to the data of specified format by this XSLT template.In background service After the heart receives the literary flow table list XML information of examination & approval, dynamic format filling is carried out by XSLT, it is careful to be in this way that dynamic acquisition has arrived Certification stream information.
The semantic primitive for drawing table is defined in XSLT simultaneously, the semanteme for sufficiently having borrowed Html label is extended, Background service center carries out parsing drafting in parsing with the Html semanteme of standard, while being solved with agreement extension tag each other Analysis.It is such as formatted in filled XML following, Table label represents a table, and Tr label represents one in ornamenting picture frame Row, Td label represent the column in ornamenting picture frame, and Halign label represents Horizontal Alignment, Valign represents vertical alignment Mode, TopLineType represent the line style at top, and LeftLineType represents left side line style etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (7)

1. planning the drafting method with natural resources business attached drawing under a kind of WebGIS environment, which is characterized in that the method packet Include following step:
Step S1, user-interaction parameter is received;
Step S2, integral layout parameter is calculated according to user-interaction parameter and generates drawing ornamenting frame;
Step S3, in the map of drawing ornamenting frame, load map is sliced service data;
Step S4, after the completion of data load, the addition drawing ornamenting element into drawing ornamenting frame;
Step S5, character property contents processing is carried out, complete drawing decoration is generated;
Step S6, file exports.
2. planning the drafting method with natural resources business attached drawing under WebGIS environment as described in claim 1, which is characterized in that The step S6 is specifically included:
All the elements in the complete drawing decoration page layout are exported by the file of grid format.
3. planning the drafting method with natural resources business attached drawing under WebGIS environment as claimed in claim 2, which is characterized in that The step S6 further include:
Map slice service data in map is substituted for vector data, then will completely chart to decorate in page layout and own Content is exported, and the file for meeting printing precision requirement is generated.
4. planning the drafting method with natural resources business attached drawing under WebGIS environment as described in claim 1, which is characterized in that In the step S2, the drawing spatial dimension for generating drawing ornamenting frame, drawing scale are calculated according to user-interaction parameter first Ruler and drawing paper;Then it calculates integral layout parameter and draws drawing ornamenting frame accordingly, the integral layout parameter includes Outer border, interior mapborder, left-handed watch lattice, picture frame and right table Width x Height;Specific drawing process is as follows:
Obtain map height;
Drawing corresponding templates configuration is obtained according to user-interaction parameter;
Calculate whether left-handed watch lattice number of pages can have the case where multipage;
If there is multipage situation, then the corresponding left table width of template is modified;
Obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table overall width;
Outer border, interior mapborder are drawn according to overall width and template;
Left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
5. planning the drafting method with natural resources business attached drawing under WebGIS environment as described in claim 1, which is characterized in that In the step S2, the drawing spatial dimension for generating drawing ornamenting frame, drawing scale are calculated according to user-interaction parameter first Ruler and drawing paper;Then it calculates integral layout parameter and draws drawing ornamenting frame accordingly, the integral layout parameter includes Outer border, interior mapborder, left-handed watch lattice, picture frame and right table Width x Height;Specific drawing process is as follows:
Obtain map height;
Drawing corresponding templates configuration is obtained according to user-interaction parameter;
Calculate whether left-handed watch lattice number of pages can have the case where multipage;
If there is multipage situation, then the corresponding left table width of template is modified;
Drawing subregion is calculated and generates according to the broken line that user draws, wherein every section of broken line is corresponding to generate a drawing sub-district All drawing subregions, are carried out that rotation is horizontal positioned to obtain final mapland by domain;
Calculate final mapland width, obtain ground width of frame, then calculate left-handed watch lattice, picture frame and right table beam overall Degree;
Outer border, interior mapborder are drawn according to overall width and template;
Left-handed watch lattice, right table and ground picture frame are drawn according to interior mapborder and template.
6. planning the drafting method with natural resources business attached drawing under WebGIS environment as claimed in claim 5, which is characterized in that It is as follows to generate the final mapland process: drawing a pair of of parallel lines that every section of broken line generates both forward and reverse directions for user;Often Section broken line generates a rectangle drawing subregion, and the rectangle drawing subregion is using corresponding a pair of of the parallel lines of broken line as side;It is right In adjacent two rectangles drawing subregion, using the line of two parallel lines intersection points as side, corresponding division generates two adjacent Trapezoid area;Two adjacent trapezoid areas are horizontal positioned with the rotation of a wherein intersection point;It is obtained after all trapezoid area rotations Final mapland, the final mapland is ultralong beltlike, and width is the width summation of all rectangles drawing subregion;
After outer border of completing, interior mapborder, left-handed watch lattice, right table and ground picture frame, the coordinate for calculating the line is also needed, and It is plotted in ground picture frame.
7. the drafting method with natural resources business attached drawing is planned under the WebGIS environment as described in claim any one of 4-6, Be characterized in that, in the step S4, the figure ornamenting element include drawing left-handed watch, the right table of drawing, map compass and scale bar, The Key to Maps;
Wherein, chart left-handed watch treatment process it is as follows:
Left-handed watch template configuration xslt file, left-handed watch text flow table list xml document are obtained, merges and generates left-handed watch xml document;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of drawing board configuration, high, left-handed watch position, calculates the position of each cell;
Multiple right tables are judged whether there is, are existed, the cell of multiple row is marked and modify;
Generate the cell two-dimensional array of left-handed watch;
Left-handed watch is drawn according to the two-dimensional array of left-handed watch, and examination & approval text information is filled among left-handed watch lattice.
Wherein, chart right table treatment process it is as follows:
Right table template configuration xslt file, right table text flow table list xml document are obtained, merges and generates right table xml document;
Obtain drawing board configuration;
According to the col width of drawing board configuration, cell text, line number shared by each cell is calculated;
According to the row of template configuration, high, right epitope is set, and calculates the position of each cell;
Modify the cell height of variable height;
Generate the cell two-dimensional array of right table
Right table is drawn according to the two-dimensional array of right table;
Wherein, the treatment process of map compass and scale bar is as follows:
Drawing scale is calculated, compass object is obtained;
Obtain drawing board configuration;
Calculate the original width of compass, scale bar;
Adjust compass width;
Judge whether scale bar exceeds body of a map or chart, if exceeding, then adjusts compass position;
Draw compass, scale bar;
Wherein, the treatment process of The Key to Maps is as follows:
Obtain the figure layer of legend to be added;
There are the figure layers of data on acquisition drawing;
Obtain legend template, drawing board configuration;
Obtain the corresponding legend of figure layer name;
According to legend number, the legend configuration met is found from drawing board configuration;
It calculates the size of each legend, position, illustrate font;
It scales, translate each legend to designated position.
CN201910201433.6A 2019-03-18 2019-03-18 Drawing method of planning and natural resource service drawings in WebGIS environment Active CN109977183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910201433.6A CN109977183B (en) 2019-03-18 2019-03-18 Drawing method of planning and natural resource service drawings in WebGIS environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910201433.6A CN109977183B (en) 2019-03-18 2019-03-18 Drawing method of planning and natural resource service drawings in WebGIS environment

Publications (2)

Publication Number Publication Date
CN109977183A true CN109977183A (en) 2019-07-05
CN109977183B CN109977183B (en) 2021-06-08

Family

ID=67079154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910201433.6A Active CN109977183B (en) 2019-03-18 2019-03-18 Drawing method of planning and natural resource service drawings in WebGIS environment

Country Status (1)

Country Link
CN (1) CN109977183B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6337693B1 (en) * 1996-10-30 2002-01-08 Autodesk, Inc. Vector-based geographic data
CN102509511A (en) * 2011-11-25 2012-06-20 武汉大学 Rapid map making system based on GIS (Geographic Information System) data
CN102799702A (en) * 2012-04-19 2012-11-28 国家基础地理信息中心 Quick topographic map making method based on database driving
CN103093484A (en) * 2013-01-05 2013-05-08 武汉中地数码科技有限公司 Integrated batch drawing method of remote-sensing image and vector data
CN103530340A (en) * 2013-10-08 2014-01-22 北京农业信息技术研究中心 Network thematic map making method and map making system
CN104008162A (en) * 2014-05-28 2014-08-27 中国地质大学(北京) Template based one-button type thematic map automatic forming method and system
CN104268911A (en) * 2014-09-18 2015-01-07 腾讯科技(深圳)有限公司 Method and device for drawing route in map
CN106204692A (en) * 2016-07-13 2016-12-07 国家海洋信息中心 A kind of ocean based on GIS platform sectional drawing method for drafting
CN106599025A (en) * 2016-10-25 2017-04-26 中国电力科学研究院 Vector data slicing method and system based on data exchange format
CN106991153A (en) * 2017-03-29 2017-07-28 武大吉奥信息技术有限公司 A kind of third party's map tile service cut-in method and system based on Web client
CN107577705A (en) * 2017-07-28 2018-01-12 武汉市测绘研究院 A kind of dwg data automatically create map tile service and the local update method of service
CN107911606A (en) * 2017-11-28 2018-04-13 信利光电股份有限公司 A kind of method and apparatus for shooting vector artwork
CN108874848A (en) * 2018-01-02 2018-11-23 国家测绘地理信息局第六地形测量队 A kind of visualization system and implementation method for geographical national conditions knowledge services
CN108986638A (en) * 2018-06-15 2018-12-11 武汉智图科技有限责任公司 A kind of method of sea chart thematic map rapid drafting
CN109446281A (en) * 2018-09-05 2019-03-08 广州市城市规划勘测设计研究院 On-line intelligence Mapping System construction method, system and drafting method based on ArcGIS

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6337693B1 (en) * 1996-10-30 2002-01-08 Autodesk, Inc. Vector-based geographic data
CN102509511A (en) * 2011-11-25 2012-06-20 武汉大学 Rapid map making system based on GIS (Geographic Information System) data
CN102799702A (en) * 2012-04-19 2012-11-28 国家基础地理信息中心 Quick topographic map making method based on database driving
CN103093484A (en) * 2013-01-05 2013-05-08 武汉中地数码科技有限公司 Integrated batch drawing method of remote-sensing image and vector data
CN103530340A (en) * 2013-10-08 2014-01-22 北京农业信息技术研究中心 Network thematic map making method and map making system
CN104008162A (en) * 2014-05-28 2014-08-27 中国地质大学(北京) Template based one-button type thematic map automatic forming method and system
CN104268911A (en) * 2014-09-18 2015-01-07 腾讯科技(深圳)有限公司 Method and device for drawing route in map
CN106204692A (en) * 2016-07-13 2016-12-07 国家海洋信息中心 A kind of ocean based on GIS platform sectional drawing method for drafting
CN106599025A (en) * 2016-10-25 2017-04-26 中国电力科学研究院 Vector data slicing method and system based on data exchange format
CN106991153A (en) * 2017-03-29 2017-07-28 武大吉奥信息技术有限公司 A kind of third party's map tile service cut-in method and system based on Web client
CN107577705A (en) * 2017-07-28 2018-01-12 武汉市测绘研究院 A kind of dwg data automatically create map tile service and the local update method of service
CN107911606A (en) * 2017-11-28 2018-04-13 信利光电股份有限公司 A kind of method and apparatus for shooting vector artwork
CN108874848A (en) * 2018-01-02 2018-11-23 国家测绘地理信息局第六地形测量队 A kind of visualization system and implementation method for geographical national conditions knowledge services
CN108986638A (en) * 2018-06-15 2018-12-11 武汉智图科技有限责任公司 A kind of method of sea chart thematic map rapid drafting
CN109446281A (en) * 2018-09-05 2019-03-08 广州市城市规划勘测设计研究院 On-line intelligence Mapping System construction method, system and drafting method based on ArcGIS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜婷: "面向交互建模与专题分析的三维WebGIS平台开发及应用研究", 《中国优秀硕士学位论文全文数据库 基础科学辑(月刊)》 *

Also Published As

Publication number Publication date
CN109977183B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109145174A (en) A kind of emergency geography information quick draw graphics system and its drafting method
CN106204692B (en) A kind of ocean section drawing drawing method based on GIS platform
CN102509511B (en) Rapid map making system based on GIS (Geographic Information System) data
CN103366633B (en) Water conservation map data model-based flood risk map drawing method and system thereof
US20050223319A1 (en) Layout-rule generation system, layout system, layout-rule generation program, layout program, storage medium, method of generating layout rule, and method of layout
CN106484408A (en) A kind of node relationships figure display methods based on HTML5 and system
CN110489499A (en) A kind of on-line intelligence special map plotting method
CN108009217A (en) The method that water resources in china support risk figure is made based on database-driven rapid batch
CN109086286A (en) A kind of production of Pictorial Map and dissemination method
CN108681595A (en) Geographical PDF maps mixing plane coordinate system model and its construction method
Zhang et al. GML-based interoperable geographical databases
CN107194549A (en) The visual presentation method that a kind of energy efficiency indexes are decomposed
Neumann et al. Time for SVG—towards high quality interactive web-maps
CN105894452B (en) Framing output method is cut based on virtual printing technology different scale orthography
CN109977183A (en) The drafting method with natural resources business attached drawing is planned under WebGIS environment
Schlegel Empirical study for a deployment of a methodology for improving the comparability between historical and current maps
Amoruso et al. A BIM for the identity of historic urban landscapes. Integrated applications of survey for the Certosa di Bologna architectural heritage
CN108491173B (en) Cross-map page paging printing method based on geographical PDF map
CN107332925A (en) Topographic data publishing system and method based on browser/server architecture
Donaubauer et al. Model driven approach for accessing distributed spatial data using web services-demonstrated for cross-border gis applications
Strumiłło-Rembowska et al. Data generation of vector maps using a hybrid method of analysis and selection of geodata necessary to optimize the process of spatial planning
Solar et al. Use of GIS for Presentation of the Map and Pictorial Collection of the National and University Library of Slovenia
Modi et al. Direct generation of STL files from USGS DEM data for additive manufacturing of terrain models
Waugh et al. GIMMS/An Example of an Operational System for Computer Cartography
CN113360584B (en) Geographic thematic map on-line quick generation method based on pixel coordinate conversion

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 430223 Wuda science and Technology Park, Jiangxia Avenue, Miaoshan community, Donghu Development Zone, Wuhan City, Hubei Province

Patentee after: Geospace Information Technology Co., Ltd.

Address before: 430223 Wuda science and Technology Park, Jiangxia Avenue, Miaoshan community, Donghu Development Zone, Wuhan City, Hubei Province

Patentee before: WUDA GEOINFORMATICS Co.,Ltd.

CP01 Change in the name or title of a patent holder