CN115880447A - Drawing method and device for simulation situation entity military standard - Google Patents

Drawing method and device for simulation situation entity military standard Download PDF

Info

Publication number
CN115880447A
CN115880447A CN202211184689.9A CN202211184689A CN115880447A CN 115880447 A CN115880447 A CN 115880447A CN 202211184689 A CN202211184689 A CN 202211184689A CN 115880447 A CN115880447 A CN 115880447A
Authority
CN
China
Prior art keywords
entity
map
military standard
configuration information
primitives
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211184689.9A
Other languages
Chinese (zh)
Other versions
CN115880447B (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 HUARU TECHNOLOGY CO LTD
Original Assignee
BEIJING HUARU 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 HUARU TECHNOLOGY CO LTD filed Critical BEIJING HUARU TECHNOLOGY CO LTD
Priority to CN202211184689.9A priority Critical patent/CN115880447B/en
Publication of CN115880447A publication Critical patent/CN115880447A/en
Application granted granted Critical
Publication of CN115880447B publication Critical patent/CN115880447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Abstract

The invention discloses a method and a device for drawing a simulation situation entity military standard, wherein the method comprises the following steps: acquiring a map range of an entity military standard map, and acquiring and loading geographic information system data; drawing an entity military standard map base map within the range of the entity military standard map; acquiring entity position information in the scenario, and converting the geographic coordinates into entity military standard map coordinates to obtain simulation position information of each entity in the current entity military standard map; acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value; and finishing the drawing of the simulation situation entity military standard on the entity military standard map base map according to the multi-detail-level configuration information value and the simulation position information. Therefore, the method can extract the spatial feature points which can represent the original data from a large number of primitives, retain the original spatial distribution features, compress the number of the primitives to be drawn, beautify the display effect and improve the drawing efficiency.

Description

Method and device for drawing simulated situation entity military standard
Technical Field
The invention relates to the technical field of geographic information systems and military plotting systems, in particular to a method and a device for drawing a simulation situation entity military standard.
Background
The Level of detail (LOD) multi-Level of detail technology refers to determining the resource allocation of object rendering according to the position and the importance of the node of an object model in the display environment, and reducing the number of faces and the Details of non-important objects, thereby obtaining high-efficiency rendering operation.
The Geographic Information System (GIS) provides various spatial and dynamic Geographic Information in real time by using a Geographic model analysis method based on Geographic space, and is a computer technology System for Geographic research and Geographic decision-making. Its basic function is to convert tabular form data (whether it comes from a database, spreadsheet file, or directly entered in a program) into a geographic graphic display, and then to browse, manipulate, and analyze the display results. The display range can be from intercontinental maps to very detailed block maps, and the display objects comprise population, sales, transportation lines and other contents.
In the existing simulation system, in order to visually display an entity in a simulation scene, a map is usually used as a background, and in combination with geographical position information of the entity, entity primitives are drawn at a position corresponding to the map, so as to meet the requirement of a user for visually knowing the battlefield situation. For example, the geographic information system is utilized in the United states to simulate the mobility of troops and vehicles, estimate the diffusion range of chemical weapons, simulate the effect of smoke shielding battlefield, provide the point positions required by water source detection, evaluate the influence of terrain on the weapon performance, and provide decision basis for military operations. When the simulation scale is gradually increased, the scale of an entity to be centered may be changed from several to ten thousand, and to visually present a large-scale scene, it may involve drawing primitives of ten thousand entities on a map, which may have two consequences:
(1) A large number of military standard piles exist at the position where the entity is densely distributed, so that the attractiveness is affected, when the quantity of entity primitives reaches a certain scale, a user does not need to distinguish the quantity by naked eyes, and the quantity of the entities cannot be accurately identified by the piled primitives;
(2) The drawing efficiency is low, all primitives can be drawn again due to the map moving operation every time, the drawing time is too long when the magnitude of the primitive is huge, the system response time is long, the operation is not smooth, and the user experience is not good.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a device for drawing an entity military logo in a simulation situation, which can solve the problem Of low dynamic visualization efficiency Of multiple entity primitives in a large-scale simulation scene, extract spatial feature points capable Of representing original data from a large number Of primitives by using the thought Of a Level Of Detail (LOD) technology, retain the original spatial distribution features, compress the number Of the primitives to be drawn, save the drawing work Of overlapped icons, beautify the display effect and improve the drawing efficiency.
In order to solve the technical problem, a first aspect of the embodiment of the present invention discloses a method for drawing a military standard of a simulation situation entity, where the method includes:
s1, acquiring a map range of a simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the simulation situation entity military standard map range by using the geographic information system data to obtain an entity military standard map base map;
s2, acquiring entity position information in the planning, and converting geographic coordinates into entity military standard map coordinates by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity primitives in a simulation situation entity military standard map;
s3, acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value;
s4, according to the multi-detail level configuration information values and the simulation position information, all entity primitives are uniformly drawn on the entity military standard map base map, or entity primitives are drawn by using a first drawing model, so that drawing of the simulation situation entity military standard is completed;
the first rendering model is capable of extracting representative physical primitives from the physical primitives.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the map range of the military standard map of the simulation situation entity is obtained, and geographic information system data is obtained and loaded; drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map, wherein the drawing comprises the following steps:
acquiring and loading geographic information system data; the geographic information system data comprises graphical elements including point elements, line elements, and face elements, the graphical elements having explicit position coordinates;
and processing the graphic elements by utilizing a three-party library interface for graphical drawing, drawing various base map graphic elements on the map, and finishing the base map drawing of the entity military standard map.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the obtaining of position information of the entity in the scenario, and performing conversion from a geographic coordinate to a coordinate of the entity military standard map by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain simulation position information of each entity in the current simulation situation entity military standard map includes:
acquiring the position information of the entity in the plan, wherein the position information of the entity is the geographical coordinate of the entity;
acquiring pixel information of an entity military standard map base map, actual geographic length information represented by the entity military standard map base map and a real geographic coordinate corresponding to the entity military standard map base map;
and processing the geographic coordinates of the entity by using a preset coordinate conversion model to obtain the geographic coordinates of the entity represented by any point on the base map of the entity military standard map.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the obtaining multi-detail-level configuration information and processing the multi-detail-level configuration information to obtain a multi-detail-level configuration information value includes:
acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value, wherein the multi-detail level configuration information value is used for triggering the drawing of entity primitives, and the multi-detail level configuration information value is FALSE or TRUE.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the uniformly drawing all entity primitives, or drawing entity primitives by using a first drawing model includes:
if the multi-detail level configuration information value is FALSE, drawing all entity primitives uniformly;
and if the multi-detail level configuration information value is TRUE, drawing the entity primitive by using the first drawing model.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, if the multi-level-of-detail configuration information value is TRUE, performing entity primitive drawing by using the first drawing model includes:
s41, if the multi-detail level configuration information value is TRUE, processing the entity primitive to obtain a drawable entity primitive set A and a non-drawable entity primitive set B;
s42, storing a first entity primitive a to be drawn and in a base map of the current entity military standard map as a reference primitive in a conversion process from the geographic coordinates to the coordinates of the entity military standard map into a drawable entity primitive set A;
s43, presetting a distance threshold delta, traversing other entity primitives in the range of the entity military standard map base map in the wanted process, calculating the distance between the entity primitive and the entity primitive a, storing the entity primitive into a non-drawable entity primitive set B when the distance is less than or equal to the preset distance threshold delta, and otherwise, storing the entity primitive into a drawable entity primitive set A;
storing entity primitives which are not in the range of the entity military standard map base map into an entity primitive set B which cannot be drawn;
s44, displaying and processing the entity graphic primitives in the entity graphic primitive set A by utilizing a three-party library interface for graphical drawing;
and hiding the entity primitive set B which cannot be drawn to finish the drawing of the entity military standard in the simulation situation.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
if the map is zoomed, moved and refreshed, the map drawing of the corresponding interval and the corresponding scale is carried out on the map base map of the entity military standard map again according to the map range of the current entity military standard map;
and executing the steps S41, S42, S43 and S44 to finish the drawing of the entity military standard in the simulation situation.
The second aspect of the embodiment of the invention discloses a device for drawing a simulation situation entity military standard, which comprises:
the map base map drawing module is used for acquiring the map range of the simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map;
the coordinate conversion module is used for acquiring the position information of the entity in the plan, and converting the geographic coordinates into the coordinates of the entity military standard map by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain the simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity graphic elements in a simulation situation entity military standard map;
the configuration information acquisition module is used for acquiring multi-detail-level configuration information and processing the multi-detail-level configuration information to obtain a multi-detail-level configuration information value;
the entity military standard map plotting module is used for uniformly plotting all entity primitives on the entity military standard map base map according to the multi-detail level configuration information values and the simulation position information, or plotting the entity primitives by utilizing a first plotting model to finish the plotting of the simulation situation entity military standard map;
the first rendering model is capable of extracting representative physical primitives from the physical primitives.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the map range of the military standard map of the simulation situation entity is obtained, and the geographic information system data is obtained and loaded; drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map, wherein the drawing comprises the following steps:
acquiring and loading geographic information system data; the geographic information system data comprises graphical elements including point elements, line elements, and face elements, the graphical elements having explicit position coordinates;
and processing the graphic elements by using a three-party library interface for graphical drawing, drawing various base map graphic elements on the map, and finishing the base map drawing of the entity military standard map.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the obtaining of the position information of the entity in the scenario, and performing conversion from the geographic coordinate to the coordinate of the entity military standard map by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain the simulation position information of each entity in the current simulation situation entity military standard map includes:
acquiring the position information of the entity in the plan, wherein the position information of the entity is the geographical coordinate of the entity;
acquiring pixel information of an entity military standard map base map, actual geographic length information represented by the entity military standard map base map and a real geographic coordinate corresponding to the entity military standard map base map;
and processing the geographic coordinates of the entity by using a preset coordinate conversion model to obtain the geographic coordinates of the entity represented by any point on the base map of the entity military standard map.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the obtaining multi-detail-level configuration information and processing the multi-detail-level configuration information to obtain a multi-detail-level configuration information value includes:
acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value, wherein the multi-detail level configuration information value is used for triggering the drawing of entity primitives, and the multi-detail level configuration information value is FALSE or TRUE.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the uniformly drawing all entity primitives, or drawing entity primitives by using the first drawing model includes:
if the configuration information value of the multiple detail levels is FALSE, drawing all entity primitives uniformly;
and if the multi-detail level configuration information value is TRUE, drawing the entity primitive by using the first drawing model.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, if the multi-level-of-detail configuration information value is TRUE, performing entity primitive drawing by using the first drawing model includes:
s41, if the configuration information value of the multiple levels of detail is TRUE, processing the entity primitive to obtain a drawable entity primitive set A and a non-drawable entity primitive set B;
s42, storing the entity primitive a which is to be drawn and is on the base map of the current entity military standard map and is the first entity primitive a to be drawn in the conversion process from the geographic coordinates to the coordinates of the entity military standard map into a drawable entity primitive set A as a reference primitive;
s43, presetting a distance threshold delta, traversing other entity primitives in the range of the entity military standard map base map in the wanted process, calculating the distance between the entity primitive and the entity primitive a, storing the entity primitive into a non-drawable entity primitive set B when the distance is less than or equal to the preset distance threshold delta, and otherwise, storing the entity primitive into a drawable entity primitive set A;
storing entity primitives which are not in the range of the entity military standard map base map into an entity primitive set B which cannot be drawn;
s44, displaying and processing the entity graphic primitives in the entity graphic primitive set A by utilizing a three-party library interface for graphical drawing;
and hiding the entity primitive set B which cannot be drawn to finish the drawing of the entity military standard in the simulation situation.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
if the map is zoomed, moved and refreshed, the map drawing of the corresponding interval and the corresponding scale is carried out on the map base map of the entity military standard map again according to the map range of the current entity military standard map;
and executing the steps S41, S42, S43 and S44 to finish the drawing of the entity military standard in the simulation situation.
The third aspect of the invention discloses another device for drawing a simulation situation entity military standard, which comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the method for drawing the simulation situation entity military standard disclosed by the first aspect of the embodiment of the invention.
The fourth aspect of the present invention discloses a computer storage medium, where a computer instruction is stored, and when the computer instruction is called, the computer instruction is used to execute the method for drawing the simulated situation entity military standard disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in order to solve the problem Of low dynamic visualization efficiency Of multi-entity primitives in a large-scale simulation scene, by using the thought Of a Level Of Detail (LOD) technology, the method extracts spatial feature points capable Of representing original data from a large number Of primitives, retains the original spatial distribution features, compresses the number Of the primitives to be drawn, beautifies the display effect and improves the drawing efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for drawing a military standard of a simulation situation entity, which is disclosed by the embodiment of the invention;
fig. 2 is a schematic structural diagram of a device for drawing a military standard of a simulated situation entity, which is disclosed by the embodiment of the invention;
fig. 3 is a schematic structural diagram of another device for drawing a military standard of a simulation situation entity, which is disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements recited, but may alternatively include other steps or elements not expressly listed or inherent to such process, method, product, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method and a device for drawing a simulation situation entity military standard, which can acquire the map range of an entity military standard map, acquire and load geographic information system data; drawing within the range of the entity military standard map to obtain a base map of the entity military standard map; acquiring entity position information in the scenario, and converting the geographic coordinates into entity military standard map coordinates to obtain simulation position information of each entity in the current entity military standard map; the entity is composed of entity primitives; acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value; and finishing the drawing of the simulation situation entity military standard on the entity military standard map base map according to the multi-detail-level configuration information value and the simulation position information. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for drawing a military standard of a simulation situation entity according to an embodiment of the present invention. The method for drawing the simulated situation entity military standard depicted in fig. 1 can enrich battlefield information, improve battlefield cognition efficiency, assist commanders in making a battle plan, and can be applied to the technical field of military plotting or map drawing, without limitation. As shown in fig. 1, the method for drawing the military standard of the simulation situation entity may include the following operations:
s1, acquiring a map range of a simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map;
the geographic information system data is mainly used for describing maps, and generally speaking, various shapes are drawn through some graphical elements such as points, lines or faces, and the like, and represent national boundaries, provincial boundaries, rivers, mountains, lakes and the like on the earth respectively. Graphic elements have definite position coordinates, different graphics have various topological relations, and geographic information system data describes the elements and the relations among the elements. After the geographic information system data is loaded, an electronic map can be drawn on a display screen to serve as a base map/background map for displaying the derived situation.
Drawing graphics may be through invoking some graphical drawing three-way library interfaces, such as Qt, for example, and the invention is not limited.
S2, acquiring entity position information in the planning, and converting geographic coordinates into entity military standard map coordinates by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity primitives in a simulation situation entity military standard map;
s3, acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value;
s4, according to the multi-detail level configuration information values and the simulation position information, all entity primitives are uniformly drawn on the entity military standard map base map, or entity primitives are drawn by using a first drawing model, so that drawing of the simulation situation entity military standard is completed;
the first rendering model is capable of extracting representative solid primitives from the solid primitives.
Optionally, the map range of the entity military standard map is obtained, and geographic information system data is obtained and loaded; drawing within the range of the entity military standard map by using the geographic information system data to obtain an entity military standard map base map, wherein the drawing comprises the following steps:
acquiring and loading geographic information system data; the geographic information system data comprises graphical elements including point elements, line elements, and face elements, the graphical elements having explicit position coordinates;
and processing the graphic elements by using a three-party library interface for graphical drawing, drawing various shapes representing national boundaries, provincial boundaries, rivers, mountains and lakes, and finishing the drawing of the entity military standard map base map.
Optionally, obtaining entity location information in the scenario, and performing conversion from a geographic coordinate to an entity military standard map coordinate by combining the map range of the entity military standard map and the entity geographic location information to obtain simulation location information of each entity in the current entity military standard map, including:
acquiring the position information of the entity in the plan, wherein the position information of the entity is the geographical coordinate of the entity;
acquiring pixel information of a base map of an entity military standard map, actual geographic length information represented by the base map of the entity military standard map and actual geographic coordinates corresponding to the base map of the entity military standard map;
and carrying out geometric conversion on the geographic coordinates of the entity by using a conversion interface provided by the geographic information system to obtain the geographic coordinates of the entity represented by any point on the base map of the entity military standard map.
Optionally, the conversion between the geographic coordinates, the longitude and latitude coordinates, and the screen coordinates (here, the screen coordinates are the coordinates of the ground map of the entity military standard in the present invention) is as follows.
The geographic coordinate definition rule is:
the X-axis (representing longitude) increases to the right and the Y-axis (latitude) increases upward;
the screen coordinate definition rule is:
the X axis is increased in a right increasing way, and the Y axis is increased in a lower increasing way;
the geographic coordinates differ from the screen coordinates only in that the Y-axis increment direction is reversed.
Knowing the height (y) and width (h) of the screen, the area range of geographic coordinates is (maxlon, minlon, maxlat, minlat); the longitude and latitude represented by each pixel can be calculated by the formula:
scaleX = h/((maxlon-minlon) 3600) - - -longitude seconds represented per pixel on X axis
scaleY = Y/((maxlat-minlat) × 3600) - - -latitudinal seconds represented per pixel on the Y-axis
The coordinates of any point (lon, lat) on the geographical coordinate area on the screen are:
screen X = lon 3600/scaleX-screen coordinate X-axis coordinate
screen Y = lat x 3600/scale Y-screen coordinate Y-axis coordinate
minx = minlon 3600/scaleX- - -leftmost end to the left of the region
minY = minlat 3600/scale Y- - -area on top of it
When the geographic range area occupies the whole screen, the formula of any point in the area is calculated by using two parameters of screen X and screen Y:
X=screenX-minX=(lon-minlon)*3600/scaleX
since the direction of latitude is opposite to the Y-axis of the screen
screenMaxlat=(mxlat-minlat)*3600/scaleY
screenlat=(lat-minlat)*3600/scaleY
Y=screenMaxlat-screenlat=(maxlat-lat)scaleY
The formula for converting longitude and latitude into screen coordinates is as follows:
X=(lon-minlon)*3600/scaleX
Y=(maxlat-lat)*3600/scaleY
the formula for converting the screen coordinate into the longitude and latitude coordinate is as follows:
lon=X*scaleX/3600+minlon
lat=maxlat-y*scaleY/3600
optionally, obtaining multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value, includes:
and acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value of FALSE or TRUE.
Optionally, the step of drawing all entity primitives in a unified manner, or drawing the entity primitives by using the first drawing model, includes:
if the multi-detail level configuration information value is FALSE, drawing all entity primitives uniformly;
and if the multi-detail level configuration information value is TRUE, drawing the entity primitive by using the first drawing model.
Optionally, if the multi-level-of-detail configuration information value is TRUE, performing entity primitive drawing by using the first drawing model, including:
s41, if the configuration information value of the multiple levels of detail is TRUE, processing the entity primitive to obtain a drawable entity primitive set A and a non-drawable entity primitive set B;
s42, storing a first entity primitive a to be drawn and in a base map of the current entity military standard map as a reference primitive in a conversion process from the geographic coordinates to the coordinates of the entity military standard map into a drawable entity primitive set A;
s43, presetting a distance threshold delta, traversing other entity primitives in the range of the entity military standard map base map in the wanted process, calculating the distance between the entity primitive and the entity primitive a, storing the entity primitive into a non-drawable entity primitive set B when the distance is less than or equal to the preset distance threshold delta, and otherwise, storing the entity primitive into a drawable entity primitive set A;
the method for calculating the distance between entity primitives comprises the following steps:
assuming that the coordinates of the entity primitive a in the entity military standard map base are (x 0, y 0), the coordinates of the entity primitive b in the entity military standard map base are (x 1, y 1), and the Distance calculation formula between the entity primitives a and b is as follows:
Distance=0.5[2(x1-x0)+2(y1-y0)]
the distance threshold value delta is set by an operator according to experience freely, the larger the value is, the more military marks are not drawn, the higher the drawing efficiency is, and the smaller the drawing efficiency is. But the larger the size, the better the size, and the smaller the size, the military personnel need to grasp the device by themselves according to the needs.
Storing entity primitives which are not in the range of the entity military standard map base map into an entity primitive set B which cannot be drawn;
s44, displaying and processing entity primitives in the entity primitive set A which can be drawn by utilizing a three-party library interface for graphical drawing;
and hiding the entity primitive set B which cannot be drawn to finish drawing the entity military standard in the simulation situation.
Optionally, if the map is zoomed and moved to refresh, the map of the corresponding interval and the corresponding scale is drawn on the entity military standard map again according to the map range displayed by the current entity military standard map;
and executing the steps S41, S42, S43 and S44 to finish the drawing of the entity military standard in the simulation situation.
Example two
Referring to fig. 2, fig. 2 is a schematic diagram of a device for drawing a military standard of a simulated situation entity according to an embodiment of the present invention. The device comprises:
the map base map drawing module S301 is used for acquiring the map range of the simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map;
the coordinate conversion module S302 is used for acquiring the position information of the entity in the planning, and converting the geographic coordinates into the coordinates of the entity military standard map by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain the simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity graphic elements in a simulation situation entity military standard map;
the configuration information obtaining module S303 is configured to obtain multi-detail-level configuration information, and process the multi-detail-level configuration information to obtain a multi-detail-level configuration information value;
the entity military standard plotting module S304 is used for uniformly plotting all entity primitives on the base map of the entity military standard map or plotting the entity primitives by utilizing a first plotting model according to the multi-detail level configuration information values and the simulation position information to finish the plotting of the simulation situation entity military standard;
the first rendering model is capable of extracting representative physical primitives from the physical primitives.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic diagram of another device for drawing a military standard of a simulated situation entity according to an embodiment of the present invention, as shown in fig. 3, the device may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 for executing the steps of the method for drawing the military standard of the simulation situation entity described in the first embodiment.
Example four
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps in the method for drawing the simulated situation entity military standard described in the first embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, wherein the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
Finally, it should be noted that: the method and the device for drawing the military standard of the simulation situation entity disclosed in the embodiment of the invention are only the preferred embodiment of the invention, and are only used for illustrating the technical scheme of the invention, but not limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for drawing a simulation situation entity military standard is characterized by comprising the following steps:
s1, acquiring a map range of a simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map;
s2, acquiring entity position information in the scenario, and converting geographic coordinates into entity military standard map coordinates by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity primitives in a simulation situation entity military standard map;
s3, acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value;
s4, according to the multi-detail level configuration information values and the simulation position information, all entity primitives are uniformly drawn on the entity military standard map base map, or entity primitives are drawn by using a first drawing model, so that drawing of a simulation situation entity military standard is completed;
the first rendering model is capable of extracting representative solid primitives from the solid primitives.
2. The method for drawing the simulated situation entity military standard according to claim 1, wherein the map range of the simulated situation entity military standard map is obtained, and geographic information system data is obtained and loaded; drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map, wherein the drawing comprises the following steps:
acquiring and loading geographic information system data; the geographic information system data includes graphical elements including point elements, line elements, and face elements, the graphical elements having explicit location coordinates;
and processing the graphic elements by utilizing a three-party library interface for graphical drawing, drawing various base map graphic elements on the map, and finishing the base map drawing of the entity military standard map.
3. The method for drawing a simulation situation entity military standard according to claim 1, wherein the obtaining of entity position information in a planned central situation, the conversion from geographic coordinates to entity military standard map coordinates by combining the map range of the simulation situation entity military standard map and the entity geographic position information, and the obtaining of the simulation position information of each entity in the current simulation situation entity military standard map comprises:
acquiring the position information of the entity in the plan, wherein the position information of the entity is the geographical coordinate of the entity;
acquiring pixel information of an entity military standard map base map, actual geographic length information represented by the entity military standard map base map and a real geographic coordinate corresponding to the entity military standard map base map;
and processing the geographic coordinates of the entity by using a preset coordinate conversion model to obtain the geographic coordinates of the entity represented by any point on the base map of the entity military standard map.
4. The method for drawing the military standard of the simulation situation entity according to claim 1, wherein the obtaining the configuration information of multiple levels of detail, and processing the configuration information of multiple levels of detail to obtain the configuration information value of multiple levels of detail comprises:
acquiring multi-detail level configuration information, and processing the multi-detail level configuration information to obtain a multi-detail level configuration information value, wherein the multi-detail level configuration information value is used for triggering the drawing of entity primitives, and the multi-detail level configuration information value is FALSE or TRUE.
5. The method for drawing the simulated situation entity military standard according to claim 1, wherein the step of drawing all entity primitives in a unified manner or drawing the entity primitives by using the first drawing model comprises:
if the multi-detail level configuration information value is FALSE, drawing all entity primitives uniformly;
and if the multi-detail level configuration information value is TRUE, drawing the entity primitive by using the first drawing model.
6. The method for drawing the entity military standard of simulation situation according to claim 5, wherein if the configuration information value of multiple levels of detail is TRUE, the drawing of the entity primitive by using the first drawing model comprises:
s41, if the configuration information value of the multiple levels of detail is TRUE, processing the entity primitive to obtain a drawable entity primitive set A and a non-drawable entity primitive set B;
s42, storing a first entity primitive a to be drawn and in a base map of the current entity military standard map as a reference primitive in a conversion process from the geographic coordinates to the coordinates of the entity military standard map into a drawable entity primitive set A;
s43, presetting a distance threshold delta, traversing other entity primitives in the range of the entity military standard map base map in the thought, calculating the distance between the entity primitive and the entity primitive a, storing the entity primitive into a non-drawable entity primitive set B when the distance is less than or equal to the preset distance threshold delta, and otherwise, storing the entity primitive into a drawable entity primitive set A;
storing entity primitives which are not in the range of the entity military standard map base map into an entity primitive set B which cannot be drawn;
s44, displaying and processing the entity graphic primitives in the entity graphic primitive set A by utilizing a three-party library interface for graphical drawing;
and hiding the entity primitive set B which cannot be drawn to finish the drawing of the entity military standard in the simulation situation.
7. The method for drawing the simulated situation entity military standard according to claim 1 or 6, wherein the method further comprises:
if the map is zoomed, moved and refreshed, the map drawing of the corresponding interval and the corresponding scale is carried out on the map base map of the entity military standard map again according to the map range of the current entity military standard map;
and executing the steps S41, S42, S43 and S44 to finish the drawing of the entity military standard in the simulation situation.
8. An apparatus for drawing a military standard of a simulation situation entity, the apparatus comprising:
the map base map drawing module is used for acquiring the map range of the simulation situation entity military standard map, and acquiring and loading geographic information system data;
drawing within the range of the simulation situation entity military standard map by using the geographic information system data to obtain an entity military standard map base map;
the coordinate conversion module is used for acquiring the position information of the entity in the plan, and converting the geographic coordinates into the coordinates of the entity military standard map by combining the map range of the simulation situation entity military standard map and the entity geographic position information to obtain the simulation position information of each entity in the current simulation situation entity military standard map; the entity is represented by entity primitives in a simulation situation entity military standard map;
the configuration information acquisition module is used for acquiring multi-detail-level configuration information and processing the multi-detail-level configuration information to obtain a multi-detail-level configuration information value;
the entity military standard map plotting module is used for uniformly plotting all entity primitives on the entity military standard map base map according to the multi-detail level configuration information value and the simulation position information, or plotting the entity primitives by using a first plotting model to finish the plotting of the simulation situation entity military standard map;
the first rendering model is capable of extracting representative physical primitives from the physical primitives.
9. An apparatus for drawing a military standard of a simulation situation entity, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the drawing method of the simulation situation entity military standard according to any one of claims 1-7.
10. A computer-readable medium storing computer instructions which, when invoked, perform the method of drawing a simulated situational entity military standard of any one of claims 1-7.
CN202211184689.9A 2022-09-27 2022-09-27 Simulation situation entity army label drawing method and device Active CN115880447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211184689.9A CN115880447B (en) 2022-09-27 2022-09-27 Simulation situation entity army label drawing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211184689.9A CN115880447B (en) 2022-09-27 2022-09-27 Simulation situation entity army label drawing method and device

Publications (2)

Publication Number Publication Date
CN115880447A true CN115880447A (en) 2023-03-31
CN115880447B CN115880447B (en) 2023-08-01

Family

ID=85770110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211184689.9A Active CN115880447B (en) 2022-09-27 2022-09-27 Simulation situation entity army label drawing method and device

Country Status (1)

Country Link
CN (1) CN115880447B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050073532A1 (en) * 2000-03-29 2005-04-07 Scott Dan Martin System and method for georeferencing maps
US20130057550A1 (en) * 2010-03-11 2013-03-07 Geo Technical Laboratory Co., Ltd. Three-dimensional map drawing system
CN104063158A (en) * 2014-06-05 2014-09-24 北京东进航空科技股份有限公司 Vector map drawing method and device
CN105930454A (en) * 2016-04-21 2016-09-07 浪潮通信信息系统有限公司 Position displaying method and device of network element entity
CN107330975A (en) * 2017-05-15 2017-11-07 河北中科恒运软件科技股份有限公司 A kind of three-dimensional military marker mapping system
US9892762B1 (en) * 2011-11-30 2018-02-13 Western Digital Technologies, Inc. Self retaining elastomeric seal
CN110457725A (en) * 2018-05-08 2019-11-15 北京德馨同创科技发展有限责任公司 Military Simulation deduction method, computer program, storage medium and electronic equipment
CN111325812A (en) * 2020-02-03 2020-06-23 深圳震有科技股份有限公司 Dynamic calculation and drawing method and device for jawed arrow mark in military mark symbol plotting
CN112528915A (en) * 2020-12-18 2021-03-19 北京华如科技股份有限公司 Intelligent plotting method based on 'pan magic' recognition model and storage medium thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050073532A1 (en) * 2000-03-29 2005-04-07 Scott Dan Martin System and method for georeferencing maps
US20130057550A1 (en) * 2010-03-11 2013-03-07 Geo Technical Laboratory Co., Ltd. Three-dimensional map drawing system
US9892762B1 (en) * 2011-11-30 2018-02-13 Western Digital Technologies, Inc. Self retaining elastomeric seal
CN104063158A (en) * 2014-06-05 2014-09-24 北京东进航空科技股份有限公司 Vector map drawing method and device
CN105930454A (en) * 2016-04-21 2016-09-07 浪潮通信信息系统有限公司 Position displaying method and device of network element entity
CN107330975A (en) * 2017-05-15 2017-11-07 河北中科恒运软件科技股份有限公司 A kind of three-dimensional military marker mapping system
CN110457725A (en) * 2018-05-08 2019-11-15 北京德馨同创科技发展有限责任公司 Military Simulation deduction method, computer program, storage medium and electronic equipment
CN111325812A (en) * 2020-02-03 2020-06-23 深圳震有科技股份有限公司 Dynamic calculation and drawing method and device for jawed arrow mark in military mark symbol plotting
CN112528915A (en) * 2020-12-18 2021-03-19 北京华如科技股份有限公司 Intelligent plotting method based on 'pan magic' recognition model and storage medium thereof

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
WANG YUN CHENG: "Two-Dimensional Situation Modeling and Simulation of Battlefield Environment", PROCEEDINGS OF THE 38TH CHINESE CONTROL CONFERENCE, pages 7197 - 7200 *
何利明: "二维军标生成与态势标绘技术研究", 中国优秀硕士论文电子期刊网, pages 032 - 2 *
周陆旺: "面向复杂军事信息表达的军队标号设计与实现", 中国优秀硕士论文电子期刊网, pages 112 - 15 *
席靓;乔海明;李娟;王晓杰;: "MapX在战场态势可视化中的应用", 微计算机信息, no. 01, pages 42 - 43 *
朱英浩: "分布式战场三维态势交互控制研究", 建模余仿真方法, pages 73 - 77 *
王妮;钟志农;李军;景宁;: "基于MapObjects的军事标图系统", 兵工自动化, no. 08, pages 41 - 42 *

Also Published As

Publication number Publication date
CN115880447B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN110675728B (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN110990516B (en) Map data processing method, device and server
CN108776952B (en) Sea chart coordinate conversion method for hydrological meteorological monitoring
CN112233240B (en) Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN107451150B (en) Geographic data presentation method and device
CN111369657A (en) Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
CN111880210A (en) Ground disaster monitoring and processing method and device for power transmission line, early warning system and equipment
CN115796712B (en) Regional land ecosystem carbon reserve estimation method and device and electronic equipment
CN110597940A (en) WeChat-based natural resource field check method and system, server and medium
CN115375868A (en) Map display method, remote sensing map display method, computing device and storage medium
CN112765299B (en) Visualization method and device for irregular raster data, electronic equipment and storage medium
CN106485654B (en) Vector data processing method and device
CN111325812B (en) Dynamic calculation and drawing method and device for pincer arrow in military symbol plotting
CN113096251A (en) Model processing method, device and equipment based on CIM and storage medium
CN115880447B (en) Simulation situation entity army label drawing method and device
CN114897965B (en) Method and system for analyzing three-dimensional scene openness
CN115328320A (en) Hydraulic engineering online learning method and system
CN112669426B (en) Three-dimensional geographic information model rendering method and system based on generation countermeasure network
CN115239784A (en) Point cloud generation method and device, computer equipment and storage medium
CN115018536A (en) Region determination method and device, electronic equipment and readable storage medium
CN111915281B (en) Block evaluation approval method and system based on geological disaster easily-issued subarea, intelligent terminal and storage medium
CN115168479A (en) Method and device for dynamically generating and displaying geographic space grid
CN102074004A (en) Method and device for determining type of barrier of spatial entity
CN111489443A (en) Construction site construction scene three-dimensional visualization method and device
CN115774896B (en) Data simulation method, device, equipment and storage medium

Legal Events

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