CN109271470A - A kind of geologic survey GIS data processing method and system - Google Patents

A kind of geologic survey GIS data processing method and system Download PDF

Info

Publication number
CN109271470A
CN109271470A CN201811078585.3A CN201811078585A CN109271470A CN 109271470 A CN109271470 A CN 109271470A CN 201811078585 A CN201811078585 A CN 201811078585A CN 109271470 A CN109271470 A CN 109271470A
Authority
CN
China
Prior art keywords
file
information
data
external
vector format
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
CN201811078585.3A
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.)
DEVELOPMENT AND Research CENTER GEOLOGIC SURVEY BUREAU OF CHINA
Original Assignee
DEVELOPMENT AND Research CENTER GEOLOGIC SURVEY BUREAU OF CHINA
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 DEVELOPMENT AND Research CENTER GEOLOGIC SURVEY BUREAU OF CHINA filed Critical DEVELOPMENT AND Research CENTER GEOLOGIC SURVEY BUREAU OF CHINA
Priority to CN201811078585.3A priority Critical patent/CN109271470A/en
Publication of CN109271470A publication Critical patent/CN109271470A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

It include that the vector format file of dot file, line file and face file produces request for sending the system comprises vector format document handling unit this application discloses a kind of geologic survey GIS data processing method and system;Date Conversion Unit, for receive it is described produce request, the vector format file is handled, and is exported information is handled;External exchange format document handling unit, for receiving the output information, and generates clear file or binary file.The invention has the advantages that realizing simply, the information such as coordinate, attribute needed for vector format, parameter are expressed.It can be applied to carry out data exchange between other systems platform, so that the achievement of geologic survey GIS data processing system can be used in other systems platform.Be widely used, meet Mainstream Platform can obtain, using and share this platform geological researching data needs.

Description

A kind of geologic survey GIS data processing method and system
Technical field
The present invention relates to a kind of geologic survey GIS data processing method and systems.
Background technique
Currently, the file format of geologic survey GIS platform is encryption format, in order to enable Mainstream Platform to obtain, utilize And the geological researching data of this platform is shared, a kind of data format that can be shown as in plain text is needed for geologic survey personnel It obtains, to be used in other platforms.
Summary of the invention
The purpose of the present invention is to overcome the above shortcomings and to provide a kind of geologic survey GIS data processing methods, can be complete Face meets the application demand of each field geologic survey.
To achieve the goals above, the technical solution adopted by the present invention are as follows: a kind of geologic survey GIS data processing system, It is characterised by comprising: vector format document handling unit, for sending the vector including dot file, line file and face file Formatted file produces request;Date Conversion Unit, for receive it is described produce request, at the vector format file Reason, and processing information is exported;External exchange format document handling unit, for receiving the output information, and generates Clear file.
Another object of the present invention, which also resides in, provides a kind of geologic survey GIS data processing method, which is characterized in that packet Include: vector format file of the vector format document handling unit transmission including dot file, line file and face file produces request; Date Conversion Unit produces request described in receiving, and the vector format file is handled, and processing information is exported; External exchange format document handling unit receives the output information, and generates clear file.
Another object of the present invention, which also resides in, provides a kind of geologic survey GIS data processing system, which is characterized in that packet It includes: vector format document handling unit, for sending producing for the vector format file including dot file, line file and face file Request;Date Conversion Unit, for receive it is described produce request, the vector format file is handled, and will processing letter Breath is exported;External exchange format document handling unit, for receiving the output information, and generates binary file.
Another object of the present invention, which also resides in, provides a kind of geologic survey GIS data processing method, which is characterized in that packet Include: vector format file of the vector format document handling unit transmission including dot file, line file and face file produces request; Date Conversion Unit produces request described in receiving, and the vector format file is handled, and processing information is exported; External exchange format document handling unit receives the output information, and generates binary file.
Another object of the present invention, which also resides in, provides a kind of geologic survey GIS data processing method, which is characterized in that packet Include: external exchange format document handling unit transmission clear file produces request;It produces and asks described in Date Conversion Unit reception It asks, the clear file is handled, and processing information is exported;Vector format document handling unit receives described defeated Information out, and generate the vector format file including dot file, line file and face file.
Another object of the present invention, which also resides in, provides a kind of geologic survey GIS data processing method, which is characterized in that packet Include: what external exchange format document handling unit sent binary file produces request;Date Conversion Unit produces described in receiving Request, the binary file is handled, and processing information is exported;Vector format document handling unit receives institute Output information is stated, and generates the vector format file including dot file, line file and face file.
The invention has the benefit that
First, it realizes simple, vector format document handling unit, includes dot file, line file and face file for sending Vector format file produce request;Date Conversion Unit, for receive it is described produce request, by the vector format file It is handled, and processing information is exported;External exchange format document handling unit, for receiving the output information, And clear file or binary file are generated, express the information such as coordinate, attribute needed for vector format, parameter.It can answer For carrying out data exchange between other systems platform, so that geologic survey GIS data can be used in other systems platform The achievement of processing system.
Second, it is widely used, clear file is a kind of form of external swap file.Containing useful standard ascii character-set The structure of the data and text file of the character of coding, file is made of a series of File header information comprising keywords.Externally Ascii text file stores the file information, projection information, workspace information, spatial information, parameter information, attribute information.Binary system File is also a kind of form of external swap file.Interior data is with 0,1 filling.External binary file is stored by several The file information, projection information, workspace information, spatial information, parameter information, attribute information (sequence fixed) structural body and Other data composition.Meet Mainstream Platform and can obtain, using and share this platform geological researching data needs.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is geologic survey GIS data processing system structural schematic diagram of the invention;
Fig. 2 is external ascii text file structural schematic diagram of the invention;
Fig. 3 is external binary file structural schematic diagram of the invention;
Fig. 4 is external file reading process method flow diagram of the invention;
Fig. 5 is external file writing process method flow diagram of the invention;
Fig. 6 is external ascii text file reading process method flow diagram of the invention;
Fig. 7 is external binary file reading process method flow diagram of the invention;
Fig. 8 is the process approach flow chart that internal form of the invention is converted into external file;
Fig. 9 is the conversion process method flow diagram of internal file format and external binary file of the invention.
Specific embodiment
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in Technical problem basically reaches the technical effect.Specification subsequent descriptions are to implement the better embodiment of the application, so described Description is being not intended to limit the scope of the present application for the purpose of the rule for illustrating the application.The protection scope of the application As defined by the appended claims.
Please refer to Fig. 1, geologic survey GIS data processing system of the invention, comprising: vector format document handling unit 101, it include that the vector format file of dot file, line file and face file produces request for sending;Date Conversion Unit 102, for receive it is described produce request, the vector format file is handled, and is exported information is handled;Externally Exchange format document handling unit 103 for receiving the output information, and generates clear file.
Geologic survey GIS data processing method of the invention, comprising: it includes point text that vector format document handling unit, which is sent, The vector format file of part, line file and face file produces request;Date Conversion Unit produces request described in receiving, will be described Vector format file is handled, and processing information is exported;External exchange format document handling unit receives described defeated Information out, and generate clear file.
Preferably, the method specifically includes: calling corresponding text according to the external swap file format of geological researching data Part reader is read the file cephalomere of the external swap file by the document reader;Workspace is created, according to current work The external swap file format of geological researching data for making foundation when area's type and current platform conversion export, by corresponding letter Breath is output to the file cephalomere;According to the projection information of presently described workspace, histoprojections supplemental characteristic, according to specified knot Structure is output in the external swap file of geological researching data;According to factor data in the workspace, by its space, attribute and ginseng Number data are sequentially output in the external swap file of geological researching data;Output file periproct completes processing work.
Geologic survey GIS data processing system of the invention, comprising: vector format document handling unit, for sending packet Include the vector format file of dot file, line file and face file produces request;Date Conversion Unit, for receiving described produce Request, the vector format file is handled, and processing information is exported;External exchange format file process list Member for receiving the output information, and generates binary file.
Geologic survey GIS data processing method of the invention, comprising: it includes point text that vector format document handling unit, which is sent, The vector format file of part, line file and face file produces request;Date Conversion Unit produces request described in receiving, will be described Vector format file is handled, and processing information is exported;External exchange format document handling unit receives described defeated Information out, and generate binary file.
Preferably, the method specifically includes: the data of organization internal file format;The data deposit for needing to convert is used In the structural body of write-in geological researching data file;All data is successively written into file with binary system writing mode.
Geologic survey GIS data processing method of the invention, comprising: external exchange format document handling unit sends plain code File produces request;Date Conversion Unit produces request described in receiving, and the clear file is handled, and processing is believed Breath is exported;Vector format document handling unit receives the output information, and generating includes dot file, line file and face text The vector format file of part.
Method of the invention specifically includes: reading File header information, is called and corresponded to according to geological researching data FileVersion Geological researching data document reader corresponding workspace is initialized according to the type of export;Projection information is read, Projection operation is carried out to workspace;Each element information is read, is loaded data into memory;According to the factor data of memory, Xiang Gong Make to add each element in area, carries out drafting operation.
Geologic survey GIS data processing method of the invention, comprising: external exchange format document handling unit send two into File processed produces request;Date Conversion Unit produces request described in receiving, and the binary file is handled, and will place Reason information is exported;Vector format document handling unit receives the output information, and generate include dot file, line file and The vector format file of face file.
Preferably, the method specifically includes: reading the file information, is called and corresponded to according to geological researching data FileVersion Geological researching data document reader corresponding workspace is initialized according to the type of export;Projection information is read, Projection operation is carried out to workspace;All types of workspace data are read, according to the length for the follow-up data to be read specified in data Degree, is successively read the data of specified digit, and load data into memory;According to the factor data of memory, into workspace Each element is added, drafting operation is carried out.
It is externally the external exchange format that DGSGIS system provides, is divided into ascii text file and two kinds of binary file, Express the information such as coordinate, attribute, parameter needed for the vector format of ground DGSGIS system.It can be applied to and other systems Between carry out data exchange so that other systems can be used DGSGIS system data processing achievement.
It is divided into following steps for external ascii text file reading process to carry out: File header information is 1. read, according to right Outer FileVersion calls corresponding external document reader to initialize corresponding workspace according to the type of export;2. reading Projection information is taken, projection operation is carried out to workspace;3. reading each element information, load data into memory;4. according to memory Factor data, each element is added into workspace, carries out the operation such as drawing.
It is divided into following steps for external binary file reading process to carry out: the file information is 1. read, according to right Outer FileVersion calls corresponding external document reader to initialize corresponding workspace according to the type of export;2. reading Projection information is taken, projection operation is carried out to workspace;3. all types of workspace data are read, it is to be read according to what is specified in data The length of follow-up data, is successively read the data of specified digit, and loads data into memory;4. wanting prime number according to memory According to adding each element into workspace, carry out the operation such as drawing.
The process that internal form is converted into external file is divided into following steps progress: 1. according to work at present area class The external file format version of foundation, is output to external file for corresponding information when type and current platform conversion export Export cephalomere;2. according to work at present area projection information, histoprojections supplemental characteristic is output to external file according to specified structure In;3. its space, attribute and supplemental characteristic are sequentially output in external file according to factor data in workspace;4. exporting File periproct completes transformation.
For external binary file, essence is one group and contains the structural body and other letters of data needed for platform Breath composition.Therefore internal file format and the conversion of external binary file can carry out as follows: 1. organization internal text The data of part format;2. the data converted deposit will be needed to be used to be written in the structural body of external file;3. being written with binary system All data is successively written in mode into file.
It preferably, is carefully two major classes by external file: ascii text file and binary file.Every class file be divided into again point, Line, face file.On the basis of former point, line, surface file corresponds to suffix name * .tm, * .lm, * .pm, the corresponding extension of external file Name design scheme is (in suffix name, a represents ASCII, and b represents BINARY (binary system)) as shown in table 1:
The external file format of table 1
Preferably, binary file is a kind of form of external swap file.Interior data is with 0,1 filling.External two Binary file stores the file information, projection information, workspace information, spatial information, parameter information, attribute information by several The structural body and other data composition of (sequence is fixed).
Preferably, externally have in different derived type files identical structure division have the file information, projection information and Attribute information.Shown in its specific data is defined as follows:
Embodiment 1,
File information structure body:
Embodiment 2
Projection information structural body:
Embodiment 3
Attribute head information structure:
Attribute structure information structure:
Attribute list record data arrangement after attribute structure information structure, one record by attribute structure sequence according to Secondary arrangement.Field type and field character length determine the length of each value, until all arrangement finishes all records.
In addition to this three parts corporate data, point, line, surface file all has its distinctive data, below will be to all types of The peculiar data of file be introduced.
As specific embodiment, for dot file, also need the data being written into file be workspace information, Space of points information, point parameter information.Being defined as follows for its data is shown.
Embodiment 4
Coordinate frame body
Embodiment 5
Point workspace information structure:
Embodiment 6
Space of points information structure:
If vertex type is annotation point, space of a whole page point, combined spot, according to the iTextLength numerical values recited in PNT_GEO, By the character arrangements of corresponding length after space of points information structure.
Embodiment 7
Point parameter information structural body:
As specific embodiment, for line file, also need the data being written into file be line workspace information, Space of lines information, line parameter information.Being defined as follows for its data is shown.
Embodiment 8
Line workspace information structure
Embodiment 9
Space of lines information structure:
Space of lines information structure followed by 1DotNum D_DOT structural body store the coordinate data put on line.
Embodiment 10
Line parameter information structural body:
As specific embodiment, for the file of face, also need the data being written into file be face workspace information, Space of planes information, point parameter information.Being defined as follows for its data is shown.
Embodiment 11
Face workspace information structure:
Embodiment 12
Segmental arc spatial information structural body:
Segmental arc spatial information structural body followed by 1DotNum D_DOT structural body store the coordinate data put in segmental arc.
Embodiment 13
Node spatial information structural body:
Node spatial information structural body followed by lArcNum long categorical data, to pass through all segmental arcs number of the point.
Embodiment 14
Space of planes information structure
Space of planes information structure followed by lArcNum long categorical data, for the segmental arc number for forming the face.
Embodiment 15
Line parameter information structural body:
As specific embodiment, clear file is also a kind of form of external swap file.Containing useful standard ASCII word The data and text file of the character of symbol collection coding, the structure of file are made of a series of File header information comprising keywords. External ascii text file stores the file information, projection information, workspace information, spatial information, parameter information, attribute information.
External ASCII fromat structure has been largely divided into five sections, is export cephalomere, GEO section, ATT section, PAR respectively Section and export periproct.The read-write and conversion of external ASCII fromat will be carried out in strict accordance with the sequence of this five section.
As specific embodiment, external export cephalomere is by 4 group identifiers at respectively representing file header Identifier "@EXP ", compressing mark, file type mark and externally file format version identifier.Wherein, when compressing mark is 1 Compressed file is represented, represents uncompressed file when being 0;File type ident value represents export as dot file when being TM, LM Line file is represented, PM represents face file, and external file format version identifier is used to determine the format version of current export foundation This.Here is an example of export cephalomere.
$EXP 1 PM 2
Embodiment 16
GEO section is the second section of external export, stores spatial information and projection information of point-line-surface element etc.. There are several segments in the section.Not all section can all occur in this.Each section in GEO section, all with "@" and one three The section name of letter starts, and each section all with "@END " for end identifier.
2 PRJ sections of projection information composition figure of table
PRJ sections:
PRJ sections are made of the projection information in file.It is as shown in table 2 PRJ sections of projection information composition figures.
PNT sections:
PNT sections are made of series of points information, and only appearing in derived type is in external file a little.Every group is one Point information is made of point number, vertex type, point coordinate X value, Y value.Annotation point is represented for vertex type, 0,1 represents subgraph point, 2 generations Table dot, 3 represent acnode, and 4 representative image points, 5 represent space of a whole page point, and 6 represent combined spot.Annotation point, space of a whole page point, in combined spot The image path quoted in content of text and picture point follows closely after coordinate information.The content of space of a whole page point can enter a new line, with " EOT " is the end of identification of space of a whole page point content.The text of combined spot carries out segment processing with spcial character, and segment number is passed since 0 Increase.It is below one PNT sections of example.
@PNT
1 0 3.40200000000000E+05 4.10000000000000E+06
This is a note.
2 1 3.40200010000000E+02 4.10000002000000E+01
3 2 3.40200000000000E+02 4.10000006000000E+01
4 3 3.40200000500000E+02 4.10000000000000E+01
5 4 3.40200200000000E+02 4.10000001000000E+01
D:/img_sample.jpg
6 5 3.40200000007000E+02 4.10002000000000E+01
This is a text.
Multiline.
Test it.
@EOT
7 6 3.40200000020000E+02 4.10004000000000E+01
This is a combination point.#+up#-down#=end
@END
LIN sections:
LIN sections are made of a series of line information, only appear in the external file that derived type is line.Every group is one A line information.Every group of the first row is made of two numbers, is wire size, line coordinates number respectively.Every group of the second row starts as line The X of upper coordinate, Y value, each coordinate occupy a line.It is below one LIN sections of example.
@LIN
1 3
3.40200000000000E+05 4.10000000000000E+06
3.40300000000000E+05 4.10020000000000E+06
3.40500000000000E+05 4.10020000000000E+06
2 1
3.40100000000000E+05 4.10020000000000E+06
@END
ARC sections:
ARC sections are made of a series of segmental arc information, only appear in the external file that derived type is face.Each group For a segmental arc information.Every group of the first row is all made of 7 numbers.It is segmental arc number respectively, originates point number, terminates point number, The segmental arc left side number, the segmental arc right side number, segmental arc Zuoquan weight, the right weight of segmental arc, segmental arc number of coordinates.Every group of the second row starts as segmental arc The X of upper coordinate, Y value, each coordinate occupy a line.It is below one ARC sections of example.
@ARC
1 0 0 0 0 3 6 3
3.40200000000000E+05 4.10000000000000E+06
3.40300000000000E+05 4.10020000000000E+06
3.40500000000000E+05 4.10020000000000E+06
2 2 6 0 0 2 1 1
3.40100000000000E+05 4.10020000000000E+06
@END
NOD sections:
NOD sections are made of a series of node information in segmental arcs, only appear in the external file that derived type is face.Often Group is a node information.Every group 3 number compositions of the first row, are node number, node X-coordinate, node Y coordinate respectively;The Segmental arc number composition of two behaviors by the segmental arc number of the node and followed by, is one NOD sections of example below.
@NOD
1 3.40100000000000E+05 4.10020000000000E+06
3 1 2 3
2 3.40200000000000E+05 4.10000000000000E+06
5 4 5 6 7 8
@END
REG sections:
REG sections are made of a series of face information, only appear in the external file that derived type is face.Every group is one A face information is made of the segmental arc number and the segmental arc number of sequence clockwise immediately after that form the face, and segmental arc number is that positive value represents It is positive segmental arc, is then reversed segmental arc if negative value.It is below one REG sections of example.
@REG
3 -1 2 3
2 5 6
@END
ATT section
ATT section is the third section of external export, stores the attribute list data of point-line-surface element.AAT section is divided into Tri- sections of PAT, LAT, RAT, the attribute information of point, line, surface element is stored respectively.ATT section in each section possess it is identical Format is divided into three parts.Using PAT shown in following sections as example.
@PAT
4 2
PNT#3 10 0
ID 3 6 0
Name 1
Price 4
1 12@$POINT 1@$304.5
2 11@$POINT 2@$112.7
@END
First part stores Field Count in the attribute list and record number, and 4 to represent Field Count in the attribute list be 4 A, 2, which represent the attribute list, shares 2 records;Second part stores the field information in the attribute list, by field contents and word Segment type composition.For example, " PNT# " represents a point record number field, 3 represent the field type as long type, each field type and Numerical value corresponding relationship is detailed in " definition of attribute data field type ", and 10 represent for character string data, shows 10 characters, 0 generation The display decimal digits of table float;Part III is the record data in attribute list, one group of a behavior data, according to word The sequencing of segment information, arranges from left to right.Note that "@$ " symbol will be used to be included TEXT categorical data It is interior.
Each section in AAT section will not occur simultaneously.PAT sections appear in the external file for exporting as vertex type, and LAT sections It appears in the external file for exporting as line type, and RAT sections then appear in the external file for exporting as noodles type.AAT sections The corresponding data of the field of the customized addition of user can be saved.Meanwhile for PAT sections, PNT# and ID are the section The field that there must be, LIN#, ID and LENGTH are the LAT sections of fields that there must be, and in RAT sections, REG#, ID, AREA There must be with PERIMETER field.
PAR section
PAR section is Section four of external export, stores the parameter list data of point-line-surface element, is divided into NPT, Nine sections of SPT, CPT, APT, IPT, TPT, GPT, LPT and RPT, not all section requires to appear in PAR section.In PAR section Each section, all started with "@" and a triliteral section of name, each section all with "@END " for end identifier.
NPT sections:
NPT sections store annotation point parameter information.Only appear in that derived type is a little and there are annotation points to foreign language In part.The each group of parameter for an annotation point.Every group of the first behavior point recording mechanism, annotation height, width, interval and angle Degree;Second behavior Chinese character style number, western language font number, annotation font number and annotation color number;The whether transparent output of third behavior Mark, arrangement mode mark and figure layer number.
SPT sections:
SPT sections store subgraph point parameter information.Only appear in that derived type is a little and there are subgraph points to foreign language In part.The each group of parameter for a subgraph point.By a recording mechanism, subgraph number, subgraph height, width, rotation angle, color Number, whether transparent output identification and figure layer number form.
CPT sections:
The CPT sections of parameter informations for storing dot.Only appear in that derived type is a little and there are the external files of dot In.The each group of parameter for a dot.By a recording mechanism, radius of circle, outline color number, wide, Fill Color number, filling side Formula mark, whether transparent output identification and figure layer number composition.
APT sections:
The APT sections of parameter informations for storing acnode.Only appear in that derived type is a little and there are the external files of acnode In.The each group of parameter for an acnode.By a recording mechanism, arc radius, start angle, termination point, pen be wide, arc color number, Whether transparent output identification is formed with figure layer number.
IPT sections:
The IPT sections of parameter informations for storing picture point.Only appear in that derived type is a little and there are the external of picture point In file.The each group of parameter for a picture point.By a recording mechanism, picture traverse, picture altitude, whether transparent output is marked Know, figure layer number composition.
TPT sections:
The TPT sections of parameter informations for storing space of a whole page point.Only appear in that derived type is a little and there are the external of space of a whole page point In file.Each group is a space of a whole page point parameter.Every group of the first row by a recording mechanism, annotation height, width, lateral separation, indulge To interval, annotation angle composition;Second row is made of Chinese character style number, western language font number, annotation font number, annotation color number; The third line is high by the space of a whole page, the space of a whole page is wide, arrangement mode mark, whether transparent output identification and figure layer number form.
GPT sections:
The GPT sections of parameter informations for storing combined spot.Only appear in that derived type is a little and there are the external of combined spot In file.The each group of parameter for one section of annotation in a combined spot.Every group of the first row, which specifies, combines point number and segment number, and second Behavior annotates height, width, interval and angle;Third behavior Chinese character style number, western language font number, annotation font number and annotation face Color number;Fourth line be whether transparent output identification, arrangement mode mark with figure layer number.
LPT sections:
The LPT sections of parameter informations for storing line.It only appears in the external file that derived type is line.Each group is one The parameter of bar line.By line recording mechanism, line style number, line color number, line width, line style number, X coefficient, Y coefficient, auxiliary line model, auxiliary Index contour color number, whether transparent output identification and figure layer number composition.
RPT sections:
The PRT sections of parameter informations for storing face.It only appears in the external file that derived type is face.Each group is one The parameter in a face.By face recording mechanism, Fill Color number, blank map Reference Number, pattern height, width, angle, pattern color number, it is No transparent output identification and figure layer number composition.
Export periproct
Export periproct is using one " $ EOS " fixed identification strings as end mark.
As specific embodiment, to keep external file format designs upper more efficient in read-write, conversion speed faster, therefore Iteration optimization has been carried out on the basis of external file format designs in design.It is as follows to update part:
Ascii text file: repartitioning file format structure is file header data, projective parameter data, space and parameter number According to attribute structure and record four parts of data.Specific file structure is as shown in Figure 2.
Binary file: repartitioning file format structure is File header information structural body, projective parameter structural body, space With supplemental characteristic and attribute structure and record four parts of data.Specific file structure is as shown in Figure 3.
Data definition
Support system will largely use data defined in DGSGIS system, but for simplified and supplement necessary data Consider, partial data domain structure body is defined as follows.
#define externally _ ASCII_VERSION 1 --- external ascii text file read/write version
#define externally _ BIN_VERSION 1 --- external binary file read/write version
#define externally _ PNT_GROUP 6 --- supplement combined spot type definition
#define externally _ ASCII_TYPE 0 --- ascii text file type
#define externally _ BIN_TYPE 1 --- binary file type
Shown in the structural body that need to be supplemented is defined as follows:
Algorithm flow design
Each process that external file reads, converts is split, the algorithm flow of each process will be supported external system to design such as Shown in Fig. 4:
Read GIS data file header;
Workspace is created according to File type;
It reads and workspace projection is set;
Read spatial data;
Read supplemental characteristic;
Add element;
Judge whether element all reads to finish;
Spatial data is read if not, returning, if so, reading attributes structure;
It is set a property data according to attribute structure;
Read record quantity;
Read record data;
Addition record data are gone to work;
Judge whether to read all record data;
Record data are read if not, returning, are finished if so, reading.
Split the opening of external ASCII and binary file, internal form file is converted into external ASCII and binary system text What part, external ASCII and binary file were converted into internal form file is also to rely on above-mentioned external file write-in and read Algorithm, the on its basis necessary operation of addition.
External file format supporting interface is the reading of external file, and conversion provides support.Design document format is supported Operate the external ConvOperation of class Geo.
As specific embodiment, external file has fixed file format, referring to Fig. 6, for external ascii text file Reading process is divided into following steps progress: 1. reading File header information, is called according to external FileVersion corresponding external Document reader initializes corresponding workspace according to the type of export;2. reading projection information, workspace is carried out Projection operation;3. reading each element information, load data into memory;4. being added according to the factor data of memory into workspace Add each element, carries out the operation such as drawing.
Referring to Fig. 7, following steps are divided into for external binary file reading process and are carried out: 1. reading file letter Breath calls corresponding external document reader to initialize corresponding work according to the type of export according to external FileVersion Make area;2. reading projection information, projection operation is carried out to workspace;3. all types of workspace data are read, according to data middle finger The length of fixed follow-up data to be read, is successively read the data of specified digit, and loads data into memory;4. in The factor data deposited adds each element into workspace, carries out the operation such as drawing.
Referring to Fig. 8, as specific embodiment, converting external file for internal form is one supported external expansion Point, so that other systems are able to use the achievement of DGSGIS platform processes data.With the reading process phase of external ascii text file Seemingly, conversion process need to also be exported in strict accordance with external defined file structure merogenesis by section.But entire inlet flow output stream Direction is opposite with the reading process of external file.The process that internal form is converted into external file be divided into following steps into Row:, will be corresponding 1. according to the external file format version of foundation when work at present area type and current platform conversion export Information is output to the export cephalomere of external file;2. according to work at present area projection information, histoprojections supplemental characteristic, according to finger Structure output is determined into external file;3. its space, attribute and supplemental characteristic are sequentially output according to factor data in workspace Into external file;4. output file periproct completes transformation.Following stream can be used in the process for being entirely converted into external file Journey figure indicates.
Referring to Fig. 9, for external binary file, essence is one group and contains the structural body of data needed for platform It is formed with other information.Therefore internal file format and the conversion of external binary file can carry out as follows: 1. group Knit the data of internal file format;2. the data converted deposit will be needed to be used to be written in the structural body of external file;3. with two All data is successively written in system writing mode into file.Following flow chart can be used in the process for being entirely converted into external file It indicates.
The invention has the benefit that
First, it realizes simple, vector format document handling unit, includes dot file, line file and face file for sending Vector format file produce request;Date Conversion Unit, for receive it is described produce request, by the vector format file It is handled, and processing information is exported;External exchange format document handling unit, for receiving the output information, And clear file or binary file are generated, express the information such as coordinate, attribute needed for vector format, parameter.It can answer For carrying out data exchange between other systems platform, so that geologic survey GIS data can be used in other systems platform The achievement of processing system.
Second, it is widely used, clear file is a kind of form of external swap file.Containing useful standard ascii character-set The structure of the data and text file of the character of coding, file is made of a series of File header information comprising keywords.Externally Ascii text file stores the file information, projection information, workspace information, spatial information, parameter information, attribute information.Binary system File is also a kind of form of external swap file.Interior data is with 0,1 filling.External binary file is stored by several The file information, projection information, workspace information, spatial information, parameter information, attribute information (sequence fixed) structural body and Other data composition.Meet Mainstream Platform and can obtain, using and share this platform geological researching data needs.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection scope of appended claims.

Claims (10)

1. a kind of geologic survey GIS data processing system characterized by comprising
Vector format document handling unit, for sending turning for the vector format file including dot file, line file and face file It requests out;
Date Conversion Unit, for receive it is described produce request, the vector format file is handled, and information will be handled It is exported;
External exchange format document handling unit, for receiving the output information, and generates clear file.
2. a kind of geologic survey GIS data processing method characterized by comprising
Vector format document handling unit sends the producing for vector format file including dot file, line file and face file and asks It asks;
Date Conversion Unit produces request described in receiving, and the vector format file is handled, and processing information is carried out Output;
External exchange format document handling unit receives the output information, and generates clear file.
3. geologic survey GIS data processing method according to claim 2, which is characterized in that the method specifically includes:
Corresponding document reader is called according to the external swap file format of geological researching data, is read by the document reader The file cephalomere of the external swap file;
Workspace is created, according to the geological researching data pair of foundation when work at present area type and current platform conversion export Corresponding information is output to the file cephalomere by outer swap file format;
According to the projection information of presently described workspace, histoprojections supplemental characteristic is output to geologic survey according to specified structure In the external swap file of data;
According to factor data in the workspace, its space, attribute and supplemental characteristic are sequentially output geological researching data pair In outer swap file;
Output file periproct completes processing work.
4. a kind of geologic survey GIS data processing system characterized by comprising
Vector format document handling unit, for sending turning for the vector format file including dot file, line file and face file It requests out;
Date Conversion Unit, for receive it is described produce request, the vector format file is handled, and information will be handled It is exported;
External exchange format document handling unit, for receiving the output information, and generates binary file.
5. a kind of geologic survey GIS data processing method characterized by comprising
Vector format document handling unit sends the producing for vector format file including dot file, line file and face file and asks It asks;
Date Conversion Unit produces request described in receiving, and the vector format file is handled, and processing information is carried out Output;
External exchange format document handling unit receives the output information, and generates binary file.
6. geologic survey GIS data processing method according to claim 5, which is characterized in that the method specifically includes:
The data of organization internal file format;
The data converted deposit will be needed to be used to be written in the structural body of geological researching data file;
All data is successively written into file with binary system writing mode.
7. a kind of geologic survey GIS data processing method characterized by comprising
External exchange format document handling unit transmission clear file produces request;
Date Conversion Unit produces request described in receiving, and the clear file is handled, and processing information is exported;
Vector format document handling unit receives the output information, and generates the arrow including dot file, line file and face file Measure formatted file.
8. geologic survey GIS data processing method according to claim 7, which is characterized in that the method specifically includes:
File header information is read, corresponding geological researching data document reader is called according to geological researching data FileVersion, According to the type of export, corresponding workspace is initialized;
Projection information is read, projection operation is carried out to workspace;
Each element information is read, is loaded data into memory;
According to the factor data of memory, each element is added into workspace, carries out drafting operation.
9. a kind of geologic survey GIS data processing method characterized by comprising
What external exchange format document handling unit sent binary file produces request;
Date Conversion Unit produces request described in receiving, and the binary file is handled, and it is defeated to handle information progress Out;
Vector format document handling unit receives the output information, and generates the arrow including dot file, line file and face file Measure formatted file.
10. geologic survey GIS data processing method according to claim 9, which is characterized in that the method is specifically wrapped It includes:
The file information is read, corresponding geological researching data document reader, root are called according to geological researching data FileVersion According to the type of export, corresponding workspace is initialized;
Projection information is read, projection operation is carried out to workspace;
All types of workspace data are read, according to the length for the follow-up data to be read specified in data, are successively read specific bit Several data, and load data into memory;
According to the factor data of memory, each element is added into workspace, carries out drafting operation.
CN201811078585.3A 2018-09-17 2018-09-17 A kind of geologic survey GIS data processing method and system Pending CN109271470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811078585.3A CN109271470A (en) 2018-09-17 2018-09-17 A kind of geologic survey GIS data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811078585.3A CN109271470A (en) 2018-09-17 2018-09-17 A kind of geologic survey GIS data processing method and system

Publications (1)

Publication Number Publication Date
CN109271470A true CN109271470A (en) 2019-01-25

Family

ID=65188486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811078585.3A Pending CN109271470A (en) 2018-09-17 2018-09-17 A kind of geologic survey GIS data processing method and system

Country Status (1)

Country Link
CN (1) CN109271470A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569612A (en) * 2019-09-12 2019-12-13 四川省地质工程勘察院集团有限公司 Three-dimensional geological model data conversion method based on Geo3DML

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150378450A1 (en) * 2013-11-19 2015-12-31 Wacom Co., Ltd. Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN105512235A (en) * 2015-11-30 2016-04-20 中国地质大学(武汉) GIS and AutoCAD data exchange method and intermediate file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150378450A1 (en) * 2013-11-19 2015-12-31 Wacom Co., Ltd. Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN105512235A (en) * 2015-11-30 2016-04-20 中国地质大学(武汉) GIS and AutoCAD data exchange method and intermediate file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569612A (en) * 2019-09-12 2019-12-13 四川省地质工程勘察院集团有限公司 Three-dimensional geological model data conversion method based on Geo3DML

Similar Documents

Publication Publication Date Title
CN110597900B (en) Method for generating vector slice by GDB data in real time according to needs
CN101963954A (en) Method and device for displaying words
CN105512235B (en) A kind of GIS and AutoCAD method for interchanging data and intermediate file
CN101154292A (en) Vector graphics shape data generation apparatus, rendering apparatus and method
CN104391991B (en) A kind of conversion method from AutoCAD data to GIS spatial data
CN109636893A (en) The parsing and rendering method of three-dimensional OBJ model and MTL material in iPhone
GB2313277A (en) A progressively renderable outline font and methods of generating, transmitting and rendering the same
CN108875001A (en) A kind of method of large capacity geographical spatial data export VCT file
CN110113617A (en) A kind of method and device of compression of images and decompression
CN109271470A (en) A kind of geologic survey GIS data processing method and system
JPH02289067A (en) Character pattern signal generating device
US5920324A (en) Character pattern producing apparatus capable of producing character pattern having connected character elements
CN112070866B (en) Animation data encoding and decoding method and device, storage medium and computer equipment
CN107066926A (en) Positioned using the 3D objects of descriptor
CN101957837B (en) Method for accessing stroke vector font
CN112070850B (en) Animation data encoding and decoding method and device, storage medium and computer equipment
CN105701858A (en) Map processing method and device based on alpha fusion
CN112330768A (en) Image rapid synthesis method based on data characteristics
CN103425627B (en) Produce the method for stroke and the method for generation font
CN112084284A (en) Efficient rendering method for realizing real-time symbolization of data by virtual display list
CN107241100B (en) Character library component compresses method and device
CN112150585A (en) Animation data encoding method, animation data decoding method, animation data encoding apparatus, animation data decoding apparatus, storage medium, and computer device
CN117392294B (en) Animation file checking and repairing method, system, electronic equipment and storage medium
KR100307314B1 (en) Method for viewing informap drawing using object representation
JP2956784B2 (en) Kanji font data conversion method

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190125