CN113157988B - Method and device for representing geographic information by OFD format file - Google Patents

Method and device for representing geographic information by OFD format file Download PDF

Info

Publication number
CN113157988B
CN113157988B CN202110077360.1A CN202110077360A CN113157988B CN 113157988 B CN113157988 B CN 113157988B CN 202110077360 A CN202110077360 A CN 202110077360A CN 113157988 B CN113157988 B CN 113157988B
Authority
CN
China
Prior art keywords
page
coordinate system
geographic
information
vertexes
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.)
Active
Application number
CN202110077360.1A
Other languages
Chinese (zh)
Other versions
CN113157988A (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.)
Beijing Shuke Wangwei Technology Co ltd
Original Assignee
Beijing Shuke Wangwei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shuke Wangwei Technology Co ltd filed Critical Beijing Shuke Wangwei Technology Co ltd
Priority to CN202110077360.1A priority Critical patent/CN113157988B/en
Publication of CN113157988A publication Critical patent/CN113157988A/en
Application granted granted Critical
Publication of CN113157988B publication Critical patent/CN113157988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a computer readable medium for representing geographic information by an OFD format file. The method for representing the geographic information by the OFD format file comprises the following steps: establishing a page coordinate system in a page of the OFD format file; acquiring a geographic coordinate system expressed by longitude and latitude in geographic information; a mapping is established between the page coordinate system and the geographic coordinate system such that each point in the page can correspond to a point in the three-dimensional geographic space represented by the geographic information. According to the invention, the geographical information is represented by the OFD format file, so that the usability, the bearing capacity and the display capacity of the map product are enhanced.

Description

Method and device for representing geographic information by OFD format file
Technical Field
The present invention relates to the field of map technologies, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for representing geographic information by an OFD (Open-layout Document) format file.
Background
The OFD format file is a layout file. The layout file is characterized in that the layout is fixed, and the display, printing and printing effects on various platforms are consistent. In the format file, the coordinates of objects such as characters, graphics, images and the like, drawing attributes and other parameters influencing the presentation effect are accurately described, so that the format file can be obtained after being seen, and the file content is accurately presented. There is currently no technical solution for representing geographical information by OFD format files.
Disclosure of Invention
In view of this, the present invention is directed to a method, apparatus, electronic device, and computer-readable medium for representing geographical information by an OFD format file, which are capable of realizing the representation of geographical information by a format-fixed OFD format file.
In one aspect, the present invention provides a method for representing geographical information by an OFD format file, comprising: establishing a page coordinate system in a page of the OFD format file; acquiring a geographic coordinate system expressed by longitude and latitude in geographic information; a mapping is established between the page coordinate system and the geographic coordinate system such that each point in the page can correspond to a point in the three-dimensional geographic space represented by the geographic information.
According to a specific embodiment of the present invention, mapping is established between a page coordinate system and a geographic coordinate system, so that each point in the page can correspond to a point in a three-dimensional geographic space represented by geographic information, including: adding definition of view space in page content description of the OFD format file, wherein the view space corresponds to a first closed area formed by a plurality of first vertexes in the page; adding definition of a measure item in a view space, wherein the measure item corresponds to a second closed region formed by a plurality of second vertexes in a projection coordinate system, the plurality of second vertexes are in one-to-one correspondence with the plurality of first vertexes, and the projection coordinate system is a plane coordinate system obtained by projecting a geographic coordinate system through a specific projection method; and recording information of a plurality of third vertexes corresponding to the second vertexes one by one in a geographic coordinate system corresponding to the projection coordinate system in the measure item.
According to a specific embodiment of the present invention, the method for representing geographic information by the OFD format file further includes: the layers in the geographic information are corresponding to the layers in the page.
According to a specific embodiment of the present invention, the method for representing geographic information by the OFD format file further includes: primitive objects in the geographic information are corresponding through graphic objects in the page.
According to a specific embodiment of the present invention, the method for representing geographic information by the OFD format file further includes: grid objects in the geographic information are corresponding by image objects in the page.
According to a specific embodiment of the present invention, the method for representing geographic information by the OFD format file further includes: the object attributes in the geographic information are corresponding by custom indexing in the page.
According to a specific embodiment of the present invention, the method for representing geographic information by the OFD format file further includes: annotations in the geographic information are corresponding by annotations in the page.
In another aspect, the present invention provides an apparatus for representing geographical information by an OFD format file, comprising: the establishing module is used for establishing a page coordinate system in the page of the OFD format file; the acquisition module is used for acquiring a geographic coordinate system expressed by longitude and latitude in the geographic information; and the mapping module is used for establishing mapping between the page coordinate system and the geographic coordinate system so that each point in the page can correspond to one point in the three-dimensional geographic space represented by the geographic information.
In another aspect, the present invention provides an electronic device comprising: a processor; a memory; an application program stored in the memory and configured to be executed by the processor, the application program comprising instructions for performing the above-described method of representing geographical information by an OFD format file.
In another aspect, the present invention provides a computer readable storage medium storing a computer program for executing the above method for representing geographical information by an OFD format file.
According to the invention, the expression of the geographic information in the OFD file has a reference basis by establishing the mapping of the coordinate system between the OFD file page and the geographic information. According to the reference basis, any element in the geographic information can be associated to the corresponding position in the page through the mapping of the coordinate system, so that the loss of information is avoided, and the geographic information can be fully represented in the OFD file page. According to the invention, mapping is carried out between the format file page coordinate system and the geographic space coordinate system, the graphic image in the format file page object is combined with the space data, and the geographic space information is described in the file page, so that the affinity between the map product and the user is increased. The map output and utilization can be realized by general users without relying on special GIS (Geographic Information System ) software, and meanwhile, the high quality and the scaling capability of the images can be maintained, and the map output and utilization method has good effects on usability, bearing capability and display capability.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing embodiments of the present application in more detail with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to the same or similar parts, wherein:
FIG. 1 shows a schematic flow chart of a method of representing geographical information by an OFD format file in accordance with an embodiment of the present invention;
fig. 2 shows a schematic flow chart of one of the steps of a method of representing geographical information by an OFD format file according to an embodiment of the invention;
FIG. 3 is a schematic diagram of the relationship between the geographic coordinate system, the projected coordinate system and the page coordinate system according to the embodiment of FIG. 2
FIG. 4 is a schematic diagram showing a representation of a layer in geographical information in an OFD format file according to an embodiment of the present invention;
FIG. 5 is a schematic diagram showing a representation of object attributes in geographic information in an OFD format file according to an embodiment of the present invention;
fig. 6 is a schematic diagram showing the structure of an apparatus for representing geographical information by an OFD format file according to an embodiment of the present invention;
fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the concept and idea of the present application more clearly understood by those skilled in the art, the present application is described in detail with reference to specific embodiments. It is to be understood that the embodiments presented herein are only a portion of all embodiments that the application may have. Those skilled in the art will, after having read the present description, be able to make modifications, alterations, or substitutions to some or all of the embodiments described below, which are also intended to be included within the scope of the present application as claimed.
The terms "first," "second," and the like, herein do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The terms "a," "an," and other similar words are not intended to mean that there is only one of the things, but rather that the description is directed to only one of the things, which may have one or more. In this document, the terms "comprise," "include," and other similar words are intended to denote a logical relationship, but not to be construed as implying a spatial structural relationship. For example, "a includes B" is intended to mean that logically B belongs to a, and not that spatially B is located inside a. In addition, the terms "comprising," "including," and other similar terms should be construed as open-ended, rather than closed-ended. For example, "a includes B" is intended to mean that B belongs to a, but B does not necessarily constitute all of a, and a may also include C, D, E or other elements.
Herein, some operations are sequentially introduced in a certain order. It will be appreciated by those skilled in the art that these operations are not necessarily performed in the order of presentation, nor are they necessarily performed only once in the overall process. In actual execution, the order of execution of the operations may be reversed, some of the operations may be performed simultaneously or not, and the number of times the operations are performed may be different from each other.
The terms "embodiment," "this embodiment," "an embodiment," "one embodiment," and the like herein do not denote that the descriptions are merely applicable to one particular embodiment, but rather denote that the descriptions are also applicable to one or more other embodiments. It will be appreciated by those skilled in the art that any descriptions of one embodiment herein may be substituted for, combined with, or otherwise combined with the descriptions of another embodiment or embodiments, such substitution, combination, or other combination resulting in a new embodiment as would be apparent to one of ordinary skill in the art and would be within the scope of this invention.
In each embodiment of the invention, the layout file refers to an electronic file with high accuracy in layout presentation, is an ideal bearing format of serious files, and is an important guarantee of normalization and credibility of the electronic file. The national standard Committee issues the standard of GB/T33190-2016 electronic File storage and exchange Format document (OFD Format). At present, OFD is widely applied in the fields of electronic documents, electronic certificates, electronic files, electronic bills and the like, and becomes an essential foundation for social informatization.
In the embodiments of the invention, the OFD is an open format document format, and the format document is characterized by fixed layout and consistent display, printing and printing effects on various platforms. In the format document, the coordinates of objects such as characters, graphics, images and the like, drawing attributes and other parameters influencing the presentation effect are accurately described, so that the format document can be obtained after being seen, the document content is accurately presented, and the method is widely applied to storage and exchange scenes of electronic files.
The basic technical architecture of the OFD document format is divided into four layers:
a) Virtual storage system: the method comprises a package organization structure and an in-package directory organization structure;
b) File model: the method comprises the steps of logically organizing structures such as documents, pages, outline, file-level resources and the like;
c) Page content description: including page-level resources, graphics, images, text, etc.;
d) Expansion characteristics: including interactivity and extensibility of documents, etc.
The page content description is a core part in the format of the format document, and the original presentation characteristic is ensured by the page description file, and is also the basis for working other data in the format document. The page description file mainly specifies the layers, primitives and specific attributes of the page.
All the primitives in the page are described in a coordinate space, and one coordinate space comprises three elements of a coordinate origin, the direction of a coordinate axis and the actual length of a coordinate unit. The coordinate space is divided into three types of equipment space, page space and object space according to different purposes. Page space is a device-independent coordinate space system that is used to describe primitives and other page elements.
The page space defines the upper left corner of the page as the origin, the X axis grows right, and the Y axis grows downward in millimeters. The page space performs transformation into the device space according to origin translation, axis direction transformation, coordinate value transformation, and the like. The coordinate value transformation is to convert the length data of the graphic element into the length of the number of pixels in the space of the device through the resolution and other information of the device.
Primitive objects use their circumscribed rectangular properties to determine the rendering location in a page or other container. The internal data of the primitive object, including path data and clipping data, takes the upper left corner of the circumscribed rectangle as the origin of coordinates, grows right in the X-axis direction, grows downward in the Y-axis direction, and adopts millimeter units, and such a local coordinate space is called an object space.
In embodiments of the present invention, geographic information may refer to information that is used to represent geographic conditions of a particular region. Geographic information is a special information that originates from geographic data. Geographic data is a symbolic representation of relationships between various geographic features and phenomena, referring to the sum of numbers, words, images, etc. that characterize the number, quality, distribution characteristics and regularity of elements in a geographic environment. The geographic data mainly comprises three parts, namely spatial position data, attribute characteristic data and time domain characteristic data. Spatial location data describes the location of a geographic object, including both the absolute location of geographic elements (e.g., geodetic latitude and longitude coordinates) and the relative positional relationship between geographic elements (e.g., spatially adjacent, inclusive, etc.). Attribute data, sometimes referred to as non-spatial data, is a qualitative or quantitative indicator describing characteristics of a particular geographic element, such as the grade, width, starting point, ending point, etc., of a highway. Time domain feature data is the time or time period at which the acquisition of geographic data or geographic phenomenon occurs. Time domain feature data is very important to environmental simulation analysis, and is receiving more and more attention from the geographic information systems. Spatial location, attributes and temporal features constitute three major elements of geospatial analysis. Geographic information is the meaning contained in geographic data, is information about a particular location on the earth's surface, and is a characterization and all useful knowledge about the nature, characteristics, and state of motion of geographic entities. As a special information, geographic information has the basic characteristics of general information, and also has regional, spatial layering and dynamic characteristics.
In some embodiments of the present invention, the method of representing geographical information by the OFD format file may refer to a method of converting a file (GIS data) in a GIS software format into the OFD format file.
GIS may refer to an information system that is capable of operating and processing geo-referenced data. Geographic reference data describes the location and attributes of spatial elements of the earth's surface (including the atmosphere and shallower subsurface spaces), two geographic data components in GIS: spatial data relating to spatial element geometry; attribute data providing information of the spatial elements. Geographic Information Systems (GIS) are a type of data management system that has a form of information system space expertise. In a strict sense, this is a computer system that has the functions of centralizing, storing, operating, and displaying geographical reference information. For example, the data is identified based on location in a database.
GIS data represents real world objective objects (roads, land utilization, altitude) in the form of digital data. Real world objective objects can be divided into two abstract concepts, discrete objects (e.g., houses) and continuous object fields (e.g., rainfall or elevation). The two main methods for storing data in the GIS by the two abstract bodies are as follows: grids (meshes) and vectors.
Grid (mesh) data consists of rows and columns that hold unique value storage cells. It is similar to a grid (mesh) image, except that using the appropriate colors, the values recorded by the individual cells may also be a classification group (e.g., land use), a continuous value (e.g., rainfall), or a null value recorded when the data is not available. The resolution of the raster data set depends on the grid width of the ground unit. Typically the storage unit represents a square area of the ground but may be used to represent other shapes. Raster data may be used to represent a region or a physical object.
Vector data uses geometric figures such as points, lines (a series of point coordinates) or planes (the shape is dependent on a line) to represent an objective object. For example, in housing subdivisions, the production boundary is represented by a polygon and the location is represented precisely by a point. Vectors can also be used to represent fields with continuous variability. Elevation or other continuously varying values are represented by contours and irregular triangular grids (TIN). The TIN records evaluate the points connected into an irregular grid of triangles. The face on which the triangle lies represents the topographical surface.
The main elements of the OFD layout file page graphic element are characters, graphics and images, and the graphics comprise points, lines, planes and the like. The main operation object of the geographic information system is spatial data, namely geographic entities with three-dimensional elements such as points, lines, planes and volumes. The most fundamental characteristic of the spatial data is that each data is encoded according to uniform geographic coordinates, so that the positioning, qualitative and quantitative description of the data is realized. According to this feature, the geographical information in the geographical information system can be represented by an OFD format file.
A method 100 of representing geographical information by an OFD format file according to an embodiment of the present invention is described below with reference to fig. 1.
According to the present embodiment, the method 100 for representing geographical information by an OFD format file includes:
S110, establishing a page coordinate system in a page of the OFD format file;
s120, acquiring a geographic coordinate system expressed by longitude and latitude in geographic information;
And S130, mapping is established between the page coordinate system and the geographic coordinate system, so that each point in the page can correspond to one point in the three-dimensional geographic space represented by the geographic information.
According to the embodiment, the expression of the geographic information in the OFD file has a reference basis by establishing the mapping of the coordinate system between the OFD file page and the geographic information. According to the reference basis, any element in the geographic information can be associated to the corresponding position in the page through the mapping of the coordinate system, so that the loss of information is avoided, and the geographic information can be fully represented in the OFD file page. According to the embodiment, mapping is performed between the layout file page coordinate system and the geospatial coordinate system, the graphic images in the layout file page objects are combined with the spatial data, and the geospatial information is described in the file page, so that the affinity between the map product and the user is increased. The map output and utilization can be realized by general users without relying on special GIS software, and meanwhile, the high quality and the zoom capability of the images can be maintained, and the map output and utilization method has good effects on usability, bearing capability and display capability.
According to the embodiment, new definitions of a geographic coordinate system, a projection area, layer attributes and the like are introduced on the basis of an OFD standard, mapping is performed between the geographic space coordinate system and a layout file page coordinate system, a dot line surface in a layout file page object is combined with space data, and geographic space information is described in a file page, so that the representation cost of the geographic information is reduced, and the usability is improved.
In the following, another embodiment according to the present invention is described with reference to fig. 2, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all the embodiments described above.
According to the present embodiment, S130 includes:
S210, adding definition of view space in page content description of the OFD format file, wherein the view space corresponds to a first closed area formed by a plurality of first vertexes in the page;
S220, adding definition of a measure item in a view space, wherein the measure item corresponds to a second closed region formed by a plurality of second vertexes in a projection coordinate system, the plurality of second vertexes are in one-to-one correspondence with the plurality of first vertexes, and the projection coordinate system is a plane coordinate system obtained by projecting a geographic coordinate system through a specific projection method;
and S230, recording information of a plurality of third vertexes corresponding to the second vertexes one by one in a geographic coordinate system corresponding to the projection coordinate system in the measure item.
According to this embodiment, the first vertex is a point in the page, the second vertex is a point in the projected coordinate system, and the third vertex is a point in the geographic coordinate system. The mapping relation among the first vertex, the second vertex and the third vertex can enable each point (the first vertex) in the page to correspond to a point (the third vertex) in the geographic coordinate system, so that the representation of the OFD format file on geographic information is realized. By establishing the mapping between the points, each point in the geographic information can have a corresponding object in the document page, so that the geographic information can be fully displayed.
In one embodiment, the geographic information includes geospatial coordinate system information. In a geographic information system, there are a geographic coordinate system and a projection coordinate system.
The geographic coordinates are shown on the left side of the top of fig. 3, and projection coordinates shown on the right side of the top of fig. 3 can be generated after projection of the geographic coordinates. The invention establishes a mapping relationship between geographic coordinates, projection coordinates and document page coordinates (shown in the lower part of fig. 3), as shown in fig. 3.
The geographic coordinate system is a coordinate system for defining the position of the surface of the earth by using a three-dimensional spherical surface so as to realize the reference of the longitude and latitude to the point position of the surface of the earth. A geographic coordinate system comprises an angle measuring unit, a primary meridian and a reference ellipsoid. In a spherical system, the horizontal line is an equal latitude line or latitude line. The vertical lines are equal-warp lines or meridians.
The projection coordinate system is a planar coordinate system, typically in meters. The projected coordinate system uses a coordinate system based on X, Y values to describe where a point on the earth is located. This coordinate system is derived from the approximate ellipsoidal projection of the earth, which corresponds to a certain geographic coordinate system. The projection coordinate system is determined by the geographic coordinate system and the projection method.
In one embodiment, the projected area can be mapped to an area in the document page, and the specific processing steps are:
1) The view space definition is added into the document page description, and the page is represented as a closed area formed by a plurality of vertexes.
2) The view space incorporates a definition of a measure corresponding to an area in the projection coordinate system, which is a closed area composed of vertices described in longitude and latitude. The measure term may be added with a scaling ratio in the longitudinal or latitudinal direction, and the vertex of the measure term corresponds to the fixed point of the view space one by one.
3) And recording geographic coordinate system information corresponding to the projection coordinates in the measure item.
In one embodiment, after a mapping is established between the page coordinate system and the geographic coordinate system, a spatial calculation may be performed. In one embodiment, the space calculation mainly refers to performing operations such as object representation, position measurement, distance calculation, area calculation and the like on view space in a document page. The core of the space calculation is that the points on the page are restored to the points on the geographic coordinates, and various calculation operations are carried out by using the geographic coordinate points, and the steps are as follows:
1) When a user operates, screen coordinates of the user, such as the position of a mouse or the position of a finger of a touch screen, are obtained;
2) Converting the screen coordinates into document view coordinates;
3) Converting the document view coordinates into document page coordinates;
4) The document page coordinates are changed into projection coordinates after calculation of the measure item;
5) Restoring the projection coordinates into space coordinates through a geographic coordinate system associated with the measure item;
6) The single space coordinate is the measuring position, two space coordinates can be used for distance calculation, and three or more space coordinates can be used for area calculation.
The following description is of another embodiment according to the present invention, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all of the embodiments described above.
According to the present embodiment, the method for representing geographical information by the OFD format file further includes:
the layers in the geographic information are corresponding to the layers in the page.
According to the embodiment, the layers in the geographic information, particularly the layers in the GIS data, are corresponding through the layers in the page, so that the GIS layers can be smoothly imported into the OFD format file, the layer information in the GIS data is stored to the greatest extent, and information loss caused by disturbance of the layer information is avoided.
The geographic information may be divided into a series of logical information layers rather than just a random set of objects, with the layers being used to manage the set of homogeneous manifestations. GIS users organize information by data topics, and the information describes the distribution of phenomena and the way of depicting topics in a geographic range.
Corresponding to a document page, there is also the concept of a layer. Based on the definition of the OFD page layer, two optional attributes, namely Name and Visible, are newly added, for example, mapping from the layer in the geographic information to the OFD document page layer can be completed according to the following table and in a mode shown in FIG. 4:
Attributes of Type(s) Description of the invention Remarks
Name xs:string Layer name displayed to user on interface Optionally, a
Visible Xs:bool Whether or not the layer defaults to Optionally, a
The following description is of another embodiment according to the present invention, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all of the embodiments described above.
According to the present embodiment, the method for representing geographical information by the OFD format file further includes:
Primitive objects in the geographic information are corresponding through graphic objects in the page.
According to the embodiment, the graphic object in the geographic information, particularly the graphic object in the GIS data, is represented by the graphic object in the OFD format, so that good expression of the graphic object can be realized, and the display mode of the graphic object is prevented from being distorted due to information loss generated by the graphic object in format conversion.
In one embodiment, a primitive refers to a geographic object, such as a point, line, area, etc., that exists in a map. In a set of maps, a plurality of different geographic objects may be included. As in the chinese map, the region primitive may be used to represent the province of river north, the line primitive may be used to represent the yellow river, and the dot primitive may be used to represent the beijing. In an OFD page, graphical objects in the page may be used to correspond to primitive objects in the geographic information.
The following description is of another embodiment according to the present invention, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all of the embodiments described above.
According to the present embodiment, the method for representing geographical information by the OFD format file further includes:
Grid objects in the geographic information are corresponding by image objects in the page.
According to the embodiment, the grid objects in the geographic information, particularly the grid objects in the GIS data, are represented by the image objects in the page, so that the information contained in the grid objects can be reserved to the greatest extent, and information loss is avoided.
In one embodiment, the grid objects refer to space objects in the map represented in a regular grid array, and the numerical value on each grid cell represents a non-geometric property characteristic of the space object whose position is determined by the row and column number of each cell in the grid array. The surface represented by the raster data structure is discontinuous, is quantized and approximately discrete data, and one raster unit corresponds to a small geographic area. Raster data types include satellite imagery, digital elevation models, binary scan files, digital raster imagery, graphic files, and the like. In an OFD page, the grid objects in the geographic information can be mapped with image objects in the page.
The specific mapping relation between the primitive object and the grid object is as follows:
OFD object Type(s) Geographic information object
PathObject CT_Path Dot, line, area
ImageObject CT_Image Grid object
The following description is of another embodiment according to the present invention, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all of the embodiments described above.
According to the present embodiment, the method for representing geographical information by the OFD format file further includes:
the object attributes in the geographic information are corresponding by custom indexing in the page.
According to the embodiment, the object attribute in the geographic information, particularly the object attribute in the GIS data, is represented by the custom index in the page, so that the attribute data in the GIS data can be reserved, and the attribute data is prevented from being lost during format conversion.
The attribute data of the space object refers to feature data of the space entity, and mainly defines content represented by the space data or the graphic feature, and generally includes various forms such as name, level, quantity, code and the like. The spatial point, line and plane entities have corresponding attributes. The attribute data sources include remote sensing data, various statistical data, site survey data, social survey data, other data, and the like.
Object attributes can be mapped to custom references in the OFD, objects are associated into CT TAGLEAFITEM, corresponding spatial objects are described in ObjectRef, and ObejctData elements are used to record attribute data. As shown in fig. 5.
The following description is of another embodiment according to the present invention, which is a specific example of the embodiment of fig. 1, and may include one or more features of one or more of all of the embodiments described above.
According to the present embodiment, the method for representing geographical information by the OFD format file further includes:
annotations in the geographic information are corresponding by annotations in the page.
According to the method and the device, the annotation in the geographic information is represented by the annotation in the OFD format page, so that the annotation information in the GIS data can be prevented from being lost, the annotation information can be reserved in the page document, and a user can conveniently read the annotation information.
The OFD supports adding various forms of annotation OFDs Annot on the page. Annotations added on the page view space, each vertex of which can be mapped to geographic coordinates, can thus translate annotations on the page into annotations on the geographic space. The method can realize the import and export between the annotation of the geographic information system and the OFD annotation through the mapping and conversion of the coordinate system.
In an embodiment, the present invention may also implement terrain data mapping.
The digital elevation model (Digital Elevation Model), abbreviated as DEM, is a physical ground model for realizing the digital simulation of ground topography (i.e., the digital expression of topography surface morphology) through limited topography elevation data, and is a set of ordered value array form for representing the ground elevation. The digital elevation information may be associated with view space in a document page, points on the page being mapped to points on a rectangular grid of the DEM to obtain elevation data so that three dimensional coordinates, i.e. longitude, latitude, altitude, may be described in the document page.
An apparatus 600 for representing geographical information by an OFD format file according to an embodiment of the present invention is described below with reference to fig. 6.
According to the present embodiment, the apparatus 600 includes:
The establishing module 610 is configured to establish a page coordinate system in a page of the OFD format file;
an obtaining module 620, configured to obtain a geographic coordinate system expressed by longitude and latitude in the geographic information;
The mapping module 630 is configured to establish a mapping between the page coordinate system and the geographic coordinate system, so that each point in the page can correspond to a point in the three-dimensional geographic space represented by the geographic information.
In one embodiment, the mapping module 630 includes:
The first defining unit is used for adding definition of a view space in the page content description of the OFD format file, wherein the view space corresponds to a first closed area formed by a plurality of first vertexes in the page;
The second definition unit is used for adding definition of measure items in view space, the measure items correspond to a second closed region formed by a plurality of second vertexes in a projection coordinate system, the plurality of second vertexes are in one-to-one correspondence with the plurality of first vertexes, and the projection coordinate system is a plane coordinate system obtained by projecting the geographic coordinate system through a specific projection method;
And the recording unit is used for recording information of a plurality of third vertexes corresponding to the second vertexes one by one in a geographic coordinate system corresponding to the projection coordinate system in the measure item.
In an embodiment, the apparatus 600 is further configured to:
the layers in the geographic information are corresponding to the layers in the page.
In an embodiment, the apparatus 600 is further configured to:
Primitive objects in the geographic information are corresponding through graphic objects in the page.
In an embodiment, the apparatus 600 is further configured to:
Grid objects in the geographic information are corresponding by image objects in the page.
In an embodiment, the apparatus 600 is further configured to:
the object attributes in the geographic information are corresponding by custom indexing in the page.
In an embodiment, the apparatus 600 is further configured to:
annotations in the geographic information are corresponding by annotations in the page.
An electronic device 700 according to an embodiment of the invention is described below in connection with fig. 7.
As shown in fig. 7, the authentication device 700 of the interface chip includes one or more processors 710 and a memory 720.
Processor 710 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities and may control other components in electronic device 700 to perform desired functions.
Memory 720 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, random Access Memory (RAM) and/or cache memory (cache) and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer readable storage medium and the processor 710 may execute the program instructions to implement the authentication methods and/or other desired functions of the various embodiments of the present application above.
In one example, the electronic device 700 may further include: an input device 730 and an output device 740, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
For example, input device 730 may be a microphone or microphone array for capturing voice input signals; a communication network connector for receiving the acquired input signal from the cloud or other device; and may also include, for example, a keyboard, mouse, etc.
The output device 740 may output various information to the outside, including the determined distance information, direction information, and the like. Output devices 740 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, only some of the components of the electronic device 700 that are relevant to the present application are shown in fig. 7 for simplicity, components such as buses, input/output interfaces, etc. are omitted. In addition, the electronic device 700 may include any other suitable components depending on the particular application.
In addition to the methods, apparatus and electronic devices described above, embodiments of the application may also be a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to perform the steps in the interface chip verification method according to various embodiments of the application described above in this specification.
A computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The concepts, principles and concepts of the application have been described above in connection with specific embodiments (including examples and illustrations). It will be appreciated by those skilled in the art that embodiments of the application are not limited to the several forms set forth above, and that after reading the present document, those skilled in the art may make any possible modifications, substitutions and equivalents to the steps, methods, apparatus, components of the above embodiments, which are intended to be within the scope of the application. The protection scope of the application is only subject to the claims.

Claims (9)

1. A method of representing geographical information by an OFD format file, comprising:
establishing a page coordinate system in a page of the OFD format file;
Acquiring a geographic coordinate system expressed by longitude and latitude in the geographic information;
Establishing a mapping between the page coordinate system and the geographic coordinate system such that each point in the page can correspond to a point in a three-dimensional geographic space represented by the geographic information;
The mapping between the page coordinate system and the geographic coordinate system is established, so that each point in the page can correspond to one point in the three-dimensional geographic space represented by the geographic information, and the mapping comprises the following steps:
adding a definition of a view space in a page content description of an OFD format file, wherein the view space corresponds to a first closed area formed by a plurality of first vertexes in the page;
Adding definition of a measure item in the view space, wherein the measure item corresponds to a second closed region formed by a plurality of second vertexes in a projection coordinate system, the plurality of second vertexes are in one-to-one correspondence with the plurality of first vertexes, and the projection coordinate system is a plane coordinate system obtained by projecting the geographic coordinate system through a specific projection method;
And recording information of a plurality of third vertexes corresponding to the second vertexes one by one in the geographic coordinate system corresponding to the projection coordinate system in the measure item.
2. The method of claim 1, further comprising:
And the layers in the geographic information are corresponding to the layers in the page.
3. The method of claim 1, further comprising:
and corresponding the graphic element object in the geographic information through the graphic object in the page.
4. The method of claim 1, further comprising:
And corresponding the grid objects in the geographic information through the image objects in the page.
5. The method of claim 1, further comprising:
And corresponding to the object attribute in the geographic information through the custom index in the page.
6. The method of claim 1, further comprising:
and corresponding to the annotation in the geographic information through the annotation in the page.
7. An apparatus for representing geographical information by an OFD format file, comprising:
the establishing module is used for establishing a page coordinate system in the page of the OFD format file;
The acquisition module is used for acquiring a geographic coordinate system expressed by longitude and latitude in the geographic information;
a mapping module, configured to establish a mapping between the page coordinate system and the geographic coordinate system, so that each point in the page can correspond to a point in a three-dimensional geographic space represented by the geographic information;
The mapping between the page coordinate system and the geographic coordinate system is established, so that each point in the page can correspond to one point in the three-dimensional geographic space represented by the geographic information, and the mapping comprises the following steps:
adding a definition of a view space in a page content description of an OFD format file, wherein the view space corresponds to a first closed area formed by a plurality of first vertexes in the page;
Adding definition of a measure item in the view space, wherein the measure item corresponds to a second closed region formed by a plurality of second vertexes in a projection coordinate system, the plurality of second vertexes are in one-to-one correspondence with the plurality of first vertexes, and the projection coordinate system is a plane coordinate system obtained by projecting the geographic coordinate system through a specific projection method;
And recording information of a plurality of third vertexes corresponding to the second vertexes one by one in the geographic coordinate system corresponding to the projection coordinate system in the measure item.
8. An electronic device, comprising:
A processor;
A memory;
An application program stored in the memory and configured to be executed by the processor, the application program comprising instructions for performing the method of representing geographical information by an OFD format file according to any one of claims 1-6.
9. A computer-readable storage medium storing a computer program for executing the method of representing geographical information by an OFD format file according to any one of claims 1-6.
CN202110077360.1A 2021-01-20 2021-01-20 Method and device for representing geographic information by OFD format file Active CN113157988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110077360.1A CN113157988B (en) 2021-01-20 2021-01-20 Method and device for representing geographic information by OFD format file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110077360.1A CN113157988B (en) 2021-01-20 2021-01-20 Method and device for representing geographic information by OFD format file

Publications (2)

Publication Number Publication Date
CN113157988A CN113157988A (en) 2021-07-23
CN113157988B true CN113157988B (en) 2024-05-24

Family

ID=76878680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110077360.1A Active CN113157988B (en) 2021-01-20 2021-01-20 Method and device for representing geographic information by OFD format file

Country Status (1)

Country Link
CN (1) CN113157988B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656633B (en) * 2021-10-20 2022-03-08 北京道达天际科技有限公司 Geographical space information transmission method and device based on OFD (office file format) file
CN114018243B (en) * 2021-11-05 2024-09-10 苍穹数码技术股份有限公司 Map data processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681595A (en) * 2018-02-08 2018-10-19 中国人民解放军61540部队 Geographical PDF maps mixing plane coordinate system model and its construction method
CN108711356A (en) * 2018-02-08 2018-10-26 中国人民解放军61540部队 Geography target and symbol figure method for registering in vectorial geographical PDF cartographies
CN109859109A (en) * 2018-12-29 2019-06-07 中国人民解放军61540部队 A kind of Serial Scale PDF map seamless organization and display methods
CN110516015A (en) * 2019-07-24 2019-11-29 中国人民解放军61540部队 Method based on map graph data and DLG production geography PDF map

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060285152A1 (en) * 2005-06-17 2006-12-21 Skillen William A Method and system for embedding native shape file and mapping data within a portable document format file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681595A (en) * 2018-02-08 2018-10-19 中国人民解放军61540部队 Geographical PDF maps mixing plane coordinate system model and its construction method
CN108711356A (en) * 2018-02-08 2018-10-26 中国人民解放军61540部队 Geography target and symbol figure method for registering in vectorial geographical PDF cartographies
CN109859109A (en) * 2018-12-29 2019-06-07 中国人民解放军61540部队 A kind of Serial Scale PDF map seamless organization and display methods
CN110516015A (en) * 2019-07-24 2019-11-29 中国人民解放军61540部队 Method based on map graph data and DLG production geography PDF map

Also Published As

Publication number Publication date
CN113157988A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
Huisman et al. Principles of geographic information systems
CN102117497B (en) Method and system for three-dimensional terrain modeling
CN108389255B (en) Terrain geometric parameter extraction method based on layered elevation cloud chart
CN104835202A (en) Quick three-dimensional virtual scene constructing method
CN107967702A (en) The thermodynamic chart method for visualizing of reverse color applying drawing
CN108681595B (en) Geographical PDF map mixed plane coordinate system model and construction method thereof
CN113157988B (en) Method and device for representing geographic information by OFD format file
Zhao et al. Mapping 3D visibility in an urban street environment from mobile LiDAR point clouds
CN113628331B (en) Data organization and scheduling method for photogrammetry model in illusion engine
CN110516015B (en) Method for manufacturing geographical PDF map based on map graphic data and DLG
Sandvik Using KML for thematic mapping
CN112184908A (en) 3D Tiles format model bounding box data generation method for realizing oblique photography model based on Cesum
CN103177103A (en) Three-dimensional geographical information system management platform
CN115239784A (en) Point cloud generation method and device, computer equipment and storage medium
Wu et al. [Retracted] Intelligent City 3D Modeling Model Based on Multisource Data Point Cloud Algorithm
Pucha-Cofrep et al. Fundamentals of GIS: applications with ArcGIS
Xie et al. Using contour lines to generate digital elevation models for steep slope areas: a case study of the Loess Plateau in North China
Gold Spatial context: an introduction to fundamental computer algorithms for spatial analysis
Li et al. Geo-feature modeling uncertainties in discrete global grids: a case study of downtown Calgary, Canada
Bak et al. Density equalizing distortion of large geographic point sets
CN111915281B (en) Block evaluation approval method and system based on geological disaster easily-issued subarea, intelligent terminal and storage medium
Amiraghdam et al. LOOPS: LOcally Optimized Polygon Simplification
Murtojärvi et al. Quantifying distances from points to polygons—applications in determining fetch in coastal environments
Pucha-Cofrep et al. Fundamentals of GIS
Sugianto et al. 3D Modelling Building of District Johar Baru Using ArcGIS Pro and CityEngine

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