CN114706931A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN114706931A
CN114706931A CN202210325408.0A CN202210325408A CN114706931A CN 114706931 A CN114706931 A CN 114706931A CN 202210325408 A CN202210325408 A CN 202210325408A CN 114706931 A CN114706931 A CN 114706931A
Authority
CN
China
Prior art keywords
data
map
grid object
determining
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210325408.0A
Other languages
Chinese (zh)
Inventor
王泓铵
蔡耀
汤金辉
杨春晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Shilian Communication Technology Co ltd
Original Assignee
Hainan Shilian Communication 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 Hainan Shilian Communication Technology Co ltd filed Critical Hainan Shilian Communication Technology Co ltd
Priority to CN202210325408.0A priority Critical patent/CN114706931A/en
Publication of CN114706931A publication Critical patent/CN114706931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

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

Abstract

The embodiment of the invention provides a data processing method and a data processing device, wherein the method comprises the following steps: presetting map data, and creating a grid object based on the map data; determining a plurality of first position points corresponding to the grid object in the map data, and determining a map area corresponding to the grid object in the map data according to the first position points; and determining target third-party data positioned in the map area corresponding to the grid object, and binding the target third-party data and the grid object. According to the embodiment of the invention, third-party data binding based on gridding is realized, data resources are integrated, the refinement degree of data management is improved, and the method and the device can be suitable for third-party data.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for data processing.
Background
In the process of regional management, a map system for the region can be applied, and the map system can display related data based on a map of the region, such as a monitoring video of the display region, so that a user can intuitively know the related data conditions of people, places, things and objects in the region.
However, the existing graph system is not managed finely, so that the user cannot view or use the graph system accurately, and the graph system is usually only used for data of the user and cannot be applied to third-party data.
Disclosure of Invention
In view of the above, it is proposed to provide a method and apparatus for data processing that overcomes or at least partially solves the above mentioned problems, comprising:
a method of data processing, the method comprising:
presetting map data, and creating a grid object based on the map data;
determining a plurality of first position points of the grid object in the map data, and determining a map area of the grid object in the map data according to the first position points;
and determining target third-party data with the position located in the map area corresponding to the grid object, and binding the target third-party data and the grid object.
Optionally, the method further comprises:
and responding to the operation of the user on the grid object in the visual interface of the map data, and providing the target third-party data bound by the grid object to the user.
Optionally, determining a map area corresponding to the grid object in the map data according to the plurality of first location points includes:
determining a starting point from the plurality of first position points, and starting from the starting point, establishing a connection relationship which sequentially passes through other first position points and returns to the starting point;
and determining a corresponding map area of the grid object in the map data according to the plurality of first position points and the connection relation.
Optionally, determining target third-party data whose position is located in the map region corresponding to the grid object includes:
determining a plurality of second position points positioned on the boundary in a map area corresponding to the grid object;
determining a position range according to the plurality of second position points, and determining one or more candidate third party data with the position within the position range;
and determining target third-party data with the position located in the map area corresponding to the grid object from the one or more candidate third-party data.
Optionally, creating a mesh object based on the map data, comprising:
visualizing the map data;
the grid object is created in the map data in response to a user operation in a visualization interface of the map data.
Optionally, the binding the target third party data with the grid object includes:
and binding the target third-party data and the grid object by adopting a multithreading mechanism.
Optionally, the third party data is data generated or collected or transmitted based on the video networking.
An apparatus for data processing, the apparatus comprising:
the grid object creating module is used for presetting map data and creating a grid object based on the map data;
the map area determining module is used for determining that the grid object corresponds to a plurality of first position points in the map data and determining a map area corresponding to the grid object in the map data according to the plurality of first position points;
and the data binding module is used for determining target third-party data positioned in the map area corresponding to the grid object and binding the target third-party data and the grid object.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of data processing as described above.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method of data processing as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a map data is preset, a grid object is created based on the map data, a plurality of first position points of the grid object in the map data are determined, a map area of the grid object in the map data is determined according to the first position points, target third-party data with the position located in the map area corresponding to the grid object is determined, and the target third-party data and the grid object are bound, so that third-party data binding based on gridding is realized, data resources are integrated, the refinement degree of data management is improved, and the method and the device can be applied to the third-party data.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the description of the present invention will be briefly introduced below, and it is apparent 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 that other drawings may be obtained according to the drawings without inventive labor.
FIG. 1 is a flow chart illustrating steps of a method for data processing according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of a graphical rendering provided by an embodiment of the present invention;
FIG. 2b is a geometric graph corresponding to a mesh according to an embodiment of the present invention;
FIG. 2c is a geometric diagram of another grid according to an embodiment of the present invention;
FIG. 3 is a flow chart of steps in another method of data processing according to an embodiment of the invention;
FIG. 4 is a flow chart of steps in another method of data processing according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating steps of a data binding instance according to an embodiment of the present invention;
fig. 6 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all 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.
Referring to fig. 1, a flowchart illustrating steps of a data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, map data is preset, and a grid object is created based on the map data.
In a map system for regional management, map data for the region may be preset, and data related to the region, such as related data of monitoring, terminal equipment, personnel early warning, vehicle early warning, location early warning, and the like, may be displayed based on the map data, and may be third-party data from a third-party platform.
In an example, the third-party data may be data generated or acquired or transmitted based on a video network, and a video network platform is combined in a graph system for regional governance, so as to integrate video network terminals, streaming media services, conference scheduling, and the like therein, to implement functions such as real-time monitoring play, video playback, frame-pulling and meeting, and further to respectively display video network data of different regions in a graph system.
In order to realize the fine management of the related data in the area, a gridding mode can be applied to create grid objects on the basis of the map data, and one grid object is in one area in the map.
In an embodiment of the present invention, creating a mesh object based on map data may include:
a substep 11 of visualizing the map data; the grid object is created in the map data in response to a user operation in a visualization interface of the map data.
After a user logs in a map system for regional management through a client, the map data can be visualized, and the user can operate in a visualization interface of the map data to further create a grid object in the map data. Specifically, a user may mark a plurality of vertices in a visualization interface of the map data, and may further create the mesh object according to the marked vertices.
Step 102, determining a plurality of first position points corresponding to the grid object in the map data, and determining a map area corresponding to the grid object in the map data according to the plurality of first position points.
After the mesh object is created, mesh information for the mesh object may be acquired, the mesh information may include position information of a plurality of vertices previously marked, and then a corresponding plurality of first position points, i.e., a set of vertices, may be determined in the map data according to the position information of the plurality of vertices.
Specifically, after obtaining the mesh information, a plurality of first location points may be created through a Point2D class, where a Point2D class is a basic type in JAVA language and is a part of a basic tool for drawing geometric figures, and functions to create a Point located at a position in a coordinate system with given x and y coordinates, and the created Point is called a Point2D object. Based on this, a corresponding set of Point2D objects, i.e. a plurality of first location points, may be generated from the locations of the plurality of vertices marked in the mesh information.
After the plurality of first position points are determined, the plurality of first position points can be connected in the map data, and then the map area corresponding to the grid object can be drawn in a geometric figure drawing mode.
In an example, the mesh object may be created in advance and obtained by data synchronization, the mesh information may also be information of the mesh object created in advance, and the mesh information may also include position information of a center point of the mesh object, maintenance staff information of the mesh object, and the like.
In an embodiment of the present invention, determining a map area corresponding to the grid object in the map data according to the plurality of first location points may include:
a substep 21, determining a starting point from the plurality of first position points, and starting from the starting point, establishing a connection relationship sequentially passing through other first position points and returning to the starting point; and determining a corresponding map area of the grid object in the map data according to the plurality of first position points and the connection relation.
After determining the plurality of first location points, one first location point may be determined from the set of the determined plurality of first location points as a starting point, and then a connection relationship may be established from the starting point, sequentially via the other first location points and back to the starting point, and based on the connection relationship, a map area corresponding to the mesh object, which may be a polygon having the first location point as a vertex, may be drawn in the map data.
Specifically, the specified position point can be moved by the moveTo method in the GeneralPath class, which is also a part of the geometric drawing tool, which is used to draw a polygon line, the moveTo method in the GeneralPath object is to move the current position point on the path to a given position point, and the lineTo method is to draw a straight line from the current position point to a new position point.
Based on this, as shown in fig. 2a, a first position Point may be determined from a set of multiple first position points (a set of Point2D objects), set as a starting Point by the moveTo method, then sequentially take new position points from the set, draw a straight line between two position points by the lineTo method, sequentially traverse all the position points, and finally return to the starting Point by the closePath method, which is to draw a straight line between the last position Point and the starting Point, and draw a closed geometric polygon.
Step 103, determining target third party data with the position located in the map area corresponding to the grid object, and binding the target third party data with the grid object.
For each third-party data, the uploaded third-party data carries corresponding position information, such as longitude and latitude, for video data collected by a monitoring camera, the position information can be the position information of the monitoring camera, after a map area is drawn, whether the position of the third-party data is in the map area corresponding to the grid object or not can be judged, if the position of the third-party data is not in the map area corresponding to the grid object, no processing is carried out, and if the position of the third-party data is in the map area corresponding to the grid object, the third-party data is determined to be target third-party data and then bound with the grid object, and a binding relationship is established.
In an example, the binding relationship may be stored for a long time, specifically, the grid object and the target third party data may be stored in an association table through a database table, and for example, the monitoring, the device terminal, and the like may be stored in an association table corresponding to the grid object. In another example, the binding relationship may be temporarily stored, and specifically, the target third party data belonging to the grid object may be stored in a cache.
In an embodiment of the present invention, determining the target third party data whose position is located in the map region corresponding to the grid object may include:
a substep 31 of determining a plurality of second location points located at the boundary in the map region corresponding to the mesh object; determining a position range according to the plurality of second position points, and determining one or more candidate third party data with the position within the position range; and determining target third-party data with the position located in the map area corresponding to the grid object from the one or more candidate third-party data.
After the map area is drawn, as described above, the map area is a polygon, and the first location point is a vertex of the polygon, a second location point located on a boundary of the polygon area may be determined from the plurality of first location points by comparing longitude and latitude, and a location range may be determined according to the longitude and latitude of the second location point, where the location range may be formed by the minimum longitude and latitude and the maximum longitude and latitude of the plurality of first location points, and the map area corresponding to the mesh object is within the location range.
As shown in fig. 2b, in the polygon corresponding to the map area, there are a plurality of first position points whose latitudes and longitudes are (116.341, 39.921), (116.346, 39.926), (116.357, 39.922), (116.353, 39.918), (116.345, 39.910), and through latitude and longitude comparison, (116.341, 39.921), (116.346, 39.926), (116.357, 39.922), (116.345, 39.910) are position points of the polygon boundary, that is, second position points. After the second location point is determined, a location range can be determined according to the second location point, as shown in fig. 2c, a rectangle is formed by the second location point, and the polygon is within the rectangle.
Since the map area corresponding to the grid object is within the position range, for the third-party data, it may be determined first whether the position of the third-party data is within the position range, to obtain one or more candidate third-party data whose position is within the position range, as shown in fig. 2c, it may be determined first whether the position of the third-party data is within the rectangle.
For candidate third-party data whose position is within the position range, the candidate third-party data is not necessarily within the map area range corresponding to the grid object, and as shown in fig. 2c, the candidate third-party data is not necessarily within the polygonal area but within the rectangular area, whether the candidate third-party data is within the map area range corresponding to the grid object or not can be further judged, and then the target third-party data whose position is within the map area corresponding to the grid object is obtained.
In an example, the positions of the third-party data may be imported by calling a contacts method, and the contacts method may determine whether the positions are within the area range, specifically, determine whether the positions are within the polygonal area corresponding to the area range by calculating the area, and in a case that the positions are within the polygonal area corresponding to the area range, determine that the positions are the target third-party data.
In an embodiment of the present invention, the binding the target third party data and the grid object may include:
and a substep 41 of binding the target third party data with the grid object by using a multithreading mechanism.
When there is batch third party data to be bound, in order to increase the processing speed of data binding, the target third party data and the grid object may be bound through a multithreading mechanism.
For example, for different types of third-party data such as monitoring, equipment terminals, personnel information, vehicle early warning information and the like, different threads can be started to perform binding with the grid object, so that the performance of the application program can be improved, the execution time can be shortened, the binding of the data and the grid can be completed under the condition that a user does not sense the data, and the experience of the user is improved.
In an embodiment of the present invention, the method may further include:
and responding to the operation of the user on the grid object in the visual interface of the map data, and providing the target third-party data bound by the grid object to the user.
Because the data are bound into the corresponding grid objects by a gridding mode and a digital management means, when a user needs to check the data corresponding to a certain grid object, the certain grid object can be selected in a visual interface of the map data, and further the bound target third-party data can be found according to the pre-established binding relationship and presented to the user in the visual interface, so that the requirement of the user on accurately checking or using the data in a map system is met.
In the embodiment of the invention, a map data is preset, a grid object is created based on the map data, a plurality of first position points of the grid object in the map data are determined, a map area of the grid object in the map data is determined according to the first position points, target third-party data with the position located in the map area corresponding to the grid object is determined, and the target third-party data and the grid object are bound, so that third-party data binding based on gridding is realized, data resources are integrated, the refinement degree of data management is improved, and the method and the device can be applied to the third-party data.
Referring to fig. 3, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 301, map data is preset, and a mesh object is created based on the map data.
In a map system for regional management, map data for the region may be preset, and data related to the region, such as related data of monitoring, terminal equipment, personnel early warning, vehicle early warning, location early warning, and the like, may be displayed based on the map data, and may be third-party data from a third-party platform.
In an example, the third-party data may be data generated, acquired, or transmitted based on a video network, and further, a video network platform may be combined in a graph system for regional governance, and a video network terminal, a streaming media service, a conference schedule, and the like therein are fused, so that functions such as real-time monitoring play, video playback, frame-pulling and group meeting are realized, and further, related data of different regions may be respectively displayed in a graph system.
In order to realize the fine management of the related data in the area, a gridding mode can be adopted to create grid objects on the basis of the map data, and one grid object is in one area in the map.
Step 302, a plurality of first location points of the grid object in the map data are determined.
After the mesh object is created, mesh information for the mesh object may be obtained, the mesh information may include position information of a plurality of vertices marked previously, and then a corresponding plurality of first position points, i.e., a set of vertices, may be determined in the map data according to the position information of the plurality of vertices in the mesh information.
Specifically, after obtaining the mesh information, a plurality of first location points may be created through a Point2D class, where a Point2D class is a basic type in JAVA language and is a part of a basic tool for drawing geometric figures, and functions to create a Point located at a position in a coordinate system with given x and y coordinates, and the created Point is called a Point2D object. Based on this, a corresponding set of Point2D objects, i.e. a plurality of first location points, may be generated from the locations of the plurality of vertices marked in the mesh information.
Step 303, determining a starting point from the plurality of first position points, and starting from the starting point, establishing a connection relationship sequentially passing through other first position points and returning to the starting point.
After determining the plurality of first location points, one first location point may be determined from the set of the determined plurality of first location points as a starting point, and then starting from the starting point, a connection relationship may be established sequentially via the other first location points and back to the starting point.
And step 304, determining a map area corresponding to the grid object in the map data according to the plurality of first position points and the connection relation.
After determining the connection relationship, a map area corresponding to the mesh object, which may be a polygon having the first location point as a vertex, may be drawn in the map data based on the connection relationship.
Specifically, the specified position point can be moved by the moveTo method in the GeneralPath class, which is also a part of the geometric drawing tool, which is used to draw a polygon line, the moveTo method in the GeneralPath object is to move the current position point on the path to a given position point, and the lineTo method is to draw a straight line from the current position point to a new position point.
Based on this, as shown in fig. 2a, a first position Point may be determined from a set of multiple first position points (a set of Point2D objects), the first position Point is set as a starting Point by the moveTo method, then new position points are sequentially fetched from the set, a straight line between two position points is drawn by the lineTo method, all the position points are sequentially traversed, and finally the starting Point is returned by the closePath method, which is to draw a straight line between the last position Point and the starting Point to draw a closed geometric polygon.
Step 305, a plurality of second position points located at the boundary in the map area corresponding to the grid object are determined.
After the map area is drawn, as described above, the map area is a polygon, and the first position points are vertices of the polygon, so that the second position points located on the boundary of the polygon area can be determined from the plurality of first position points by comparing longitude and latitude.
Step 306, determining a position range according to the plurality of second position points, and determining one or more candidate third party data with the position within the position range.
After determining the second location point, a location range may be determined according to the longitude and latitude of the second location point, where, for example, the location range may be formed by the minimum longitude and latitude and the maximum longitude and latitude of the plurality of first location points, and the map area corresponding to the mesh object is within the location range.
As shown in fig. 2b, in the polygon corresponding to the map area, there are a plurality of first position points whose latitudes and longitudes are (116.341, 39.921), (116.346, 39.926), (116.357, 39.922), (116.353, 39.918), (116.345, 39.910), and by latitude and longitude comparison, (116.341, 39.921), (116.346, 39.926), (116.357, 39.922), (116.345, 39.910) are position points of the polygon boundary, that is, second position points. After the second location point is determined, a location range can be determined according to the second location point, as shown in fig. 2c, a rectangle is formed by the second location point, and the polygon is within the rectangle.
Since the map area corresponding to the grid object is within the position range, for the third-party data, it may be determined first whether the position of the third-party data is within the position range, to obtain one or more candidate third-party data whose position is within the position range, as shown in fig. 2c, it may be determined first whether the position of the third-party data is within a rectangle.
Step 307, determining target third party data with a position located in the map region corresponding to the grid object from the one or more candidate third party data.
For candidate third-party data whose position is within the position range, the candidate third-party data is not necessarily within the map area range corresponding to the grid object, and as shown in fig. 2c, the candidate third-party data is not necessarily within the polygonal area but within the rectangular area, whether the candidate third-party data is within the map area range corresponding to the grid object or not can be further judged, and then the target third-party data whose position is within the map area corresponding to the grid object is obtained.
In an example, the positions of the third-party data may be imported by calling a contacts method, and the contacts method may determine whether the positions are within the area range, specifically, determine whether the positions are within the polygonal area corresponding to the area range by calculating the area, and in a case that the positions are within the polygonal area corresponding to the area range, determine that the positions are the target third-party data.
Step 308, binding the target third party data with the grid object.
And if the position of the third-party data is located in the map area corresponding to the grid object, determining the third-party data as target third-party data, and then binding the third-party data with the grid object to establish a binding relationship.
Referring to fig. 4, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 401, map data is preset.
In a map system for regional management, map data for the region can be preset, and data related to the region, such as related data of monitoring, terminal equipment, personnel early warning, vehicle early warning, place early warning and the like, can be displayed based on the map data, and can be third-party data from a third-party platform.
In an example, the third-party data may be data generated, acquired, or transmitted based on a video network, and further, a video network platform may be combined in a graph system for regional governance, and a video network terminal, a streaming media service, a conference schedule, and the like therein are fused, so that functions such as real-time monitoring play, video playback, frame-pulling and group meeting are realized, and further, related data of different regions may be respectively displayed in a graph system.
Step 402, map data is visualized, and a grid object is created in the map data in response to an operation of a user in a visualization interface of the map data.
After a user logs in a map system for regional governance through a client, the map data can be visualized, and the user can operate in a visualization interface of the map data to further create a grid object in the map data. Specifically, a user may mark a plurality of vertices in a visualization interface of the map data, and may further create the mesh object according to the marked vertices.
Step 403, determining a plurality of first position points corresponding to the grid object in the map data, and determining a map area corresponding to the grid object in the map data according to the plurality of first position points.
After the mesh object is created, mesh information for the mesh object may be acquired, the mesh information may include position information of a plurality of vertices marked previously, and then a corresponding plurality of first position points, i.e., a set of vertices, may be determined in the map data according to the position information of the plurality of vertices in the mesh information.
Specifically, after obtaining the mesh information, a plurality of first location points may be created through a Point2D class, where a Point2D class is a basic type in JAVA language and is a part of a basic tool for drawing geometric figures, and functions to create a Point located at a position in a coordinate system with given x and y coordinates, and the created Point is called a Point2D object. Based on this, a corresponding set of Point2D objects, i.e. a plurality of first location points, may be generated from the locations of the plurality of vertices marked in the mesh information.
After the plurality of first position points are determined, the plurality of first position points can be connected in the map data, and further, the map area corresponding to the grid object can be drawn in a geometric figure drawing mode.
Step 404, determining target third party data with a position located in the map area corresponding to the grid object, and binding the target third party data with the grid object.
For each third-party data, the uploaded third-party data carries corresponding position information, such as longitude and latitude, for video data collected by a monitoring camera, the position information can be the position information of the monitoring camera, after a map area is drawn, whether the position of the third-party data is in the map area corresponding to the grid object or not can be judged, if the position of the third-party data is not in the map area corresponding to the grid object, no processing is carried out, and if the position of the third-party data is in the map area corresponding to the grid object, the third-party data is determined to be target third-party data and then bound with the grid object, and a binding relationship is established.
Step 405, responding to the operation of the user on the grid object in the visual interface of the map data, and providing the target third party data bound by the grid object for the user.
Due to the fact that the data are bound to the corresponding grid objects in a gridding mode and a digital management means is used, when a user needs to check the data corresponding to a certain grid object, the certain grid object can be selected in a visual interface of the map data, the bound target third-party data can be found according to the pre-established binding relation, the bound target third-party data can be presented to the user in the visual interface, and the requirement that the user accurately checks or uses the data in a map system is met.
The invention is illustrated below with reference to fig. 5:
1. the method comprises the steps that a map system for urban social governance is configured, data interaction can be carried out between the map system and a third-party platform to obtain third-party data, a user can log in the map system through a client, and then a grid object can be created manually or a grid object created in advance is synchronized.
2. For the created mesh object, corresponding mesh information, such as information of each vertex coordinate, mesh center point coordinate, maintenance personnel, and the like corresponding to the mesh can be acquired.
3. And drawing a corresponding geometric figure (namely a map area corresponding to the grid object) by using a code according to the vertex (namely the first position point) parameters in the grid information, such as longitude and latitude.
4. And preliminarily screening data (namely obtaining candidate third-party data) from the data such as monitoring, early warning and the like according to the minimum longitude and the maximum latitude (namely the position range) of the grid.
5. For the preliminary screening data, it is further determined whether the location is within the rendered geometry (i.e., the target third party data whose location is within the map region corresponding to the grid object is determined).
6. For data located within the geometry, it may then be bound to the mesh object.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
the grid object creating module 601 may be configured to preset a map data and create a grid object based on the map data.
The map area determining module 602 may be configured to determine that the grid object corresponds to a plurality of first location points in the map data, and determine a map area corresponding to the grid object in the map data according to the plurality of first location points.
The data binding module 603 may be configured to determine target third-party data whose location is within a map area corresponding to the grid object, and bind the target third-party data and the grid object.
In an embodiment of the present invention, the method may further include:
and the target third-party data providing module can be used for responding to the operation of the user on the grid object in the visual interface of the map data and providing the target third-party data bound by the grid object to the user.
In an embodiment of the present invention, the map area determining module 602 may include:
the connection relation establishing submodule can be used for determining a starting point from the plurality of first position points and establishing a connection relation which sequentially passes through other first position points and returns to the starting point from the starting point.
And the map area connection determination submodule can be used for determining the corresponding map area of the grid object in the map data according to the plurality of first position points and the connection relation.
In an embodiment of the present invention, the data binding module 603 may include:
and the second position point determining submodule can be used for determining a plurality of second position points positioned on the boundary in the map area corresponding to the grid object.
And the candidate third-party data determining submodule can be used for determining a position range according to the plurality of second position points and determining one or more candidate third-party data of which the positions are within the position range.
And the target third-party data determining submodule can be used for determining the target third-party data of which the position is located in the map area corresponding to the grid object from the one or more candidate third-party data.
In an embodiment of the present invention, the grid object creating module 601 may include:
and the map data visualization submodule can be used for visualizing the map data.
And the user operation creation grid submodule can be used for responding to the operation of the user in the visual interface of the map data and creating the grid object in the map data.
In an embodiment of the present invention, the data binding module 603 may include:
and the multithreading binding submodule can be used for binding the target third-party data and the grid object by adopting a multithreading mechanism.
In an embodiment of the invention, the third party data may be data generated or collected or transmitted based on the video networking.
In the embodiment of the invention, a map data is preset, a grid object is created based on the map data, a plurality of first position points of the grid object in the map data are determined, a map area of the grid object in the map data is determined according to the first position points, target third-party data with the position located in the map area corresponding to the grid object is determined, and the target third-party data and the grid object are bound, so that third-party data binding based on gridding is realized, data resources are integrated, the refinement degree of data management is improved, and the method and the device can be applied to the third-party data.
An embodiment of the present invention also provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when executed by the processor, the computer program implements the method for processing data as above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above data processing method.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and apparatus for data processing provided above are described in detail, and a specific example is applied herein to illustrate the principles and embodiments of the present invention, and the above description of the embodiment is only used to help understand the method and core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data processing, the method comprising:
presetting map data, and creating a grid object based on the map data;
determining a plurality of first position points corresponding to the grid object in the map data, and determining a map area corresponding to the grid object in the map data according to the first position points;
and determining target third-party data with the position located in the map area corresponding to the grid object, and binding the target third-party data and the grid object.
2. The method of claim 1, further comprising:
and responding to the operation of the user on the grid object in the visual interface of the map data, and providing the target third-party data bound by the grid object to the user.
3. The method of claim 1 or 2, wherein said determining a corresponding map region of said mesh object in said map data based on said plurality of first location points comprises:
determining a starting point from the plurality of first position points, and starting from the starting point, establishing a connection relationship which sequentially passes through other first position points and returns to the starting point;
and determining a map area corresponding to the grid object in the map data according to the plurality of first position points and the connection relation.
4. The method of claim 1, wherein determining the target third party data whose location is within the map region corresponding to the grid object comprises:
determining a plurality of second position points positioned on the boundary in a map area corresponding to the grid object;
determining a position range according to the plurality of second position points, and determining one or more candidate third party data with the position within the position range;
and determining target third-party data with the position located in the map area corresponding to the grid object from the one or more candidate third-party data.
5. The method of claim 1, wherein creating a mesh object based on the map data comprises:
visualizing the map data;
and creating a grid object in the map data in response to an operation of a user in a visual interface of the map data.
6. The method of claim 1, wherein said binding said target third party data to said grid object comprises:
and binding the target third-party data and the grid object by adopting a multithreading mechanism.
7. The method of claim 1, wherein the third party data is data generated or collected or transmitted based on a visual networking.
8. An apparatus for data processing, the apparatus comprising:
the grid object creating module is used for presetting map data and creating a grid object based on the map data;
the map area determining module is used for determining that the grid object corresponds to a plurality of first position points in the map data and determining a map area corresponding to the grid object in the map data according to the first position points;
and the data binding module is used for determining target third-party data positioned in the map area corresponding to the grid object and binding the target third-party data and the grid object.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of data processing according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of data processing according to any one of claims 1 to 7.
CN202210325408.0A 2022-03-30 2022-03-30 Data processing method and device Pending CN114706931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210325408.0A CN114706931A (en) 2022-03-30 2022-03-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210325408.0A CN114706931A (en) 2022-03-30 2022-03-30 Data processing method and device

Publications (1)

Publication Number Publication Date
CN114706931A true CN114706931A (en) 2022-07-05

Family

ID=82169925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210325408.0A Pending CN114706931A (en) 2022-03-30 2022-03-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN114706931A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108352080A (en) * 2015-11-13 2018-07-31 微软技术许可有限责任公司 Shape interpolation is carried out using polar coordinates embedding distortion grid
CN110493333A (en) * 2019-08-15 2019-11-22 腾讯科技(深圳)有限公司 A kind of determination method, apparatus, equipment and the storage medium of source location
CN112527916A (en) * 2020-11-27 2021-03-19 北京国信云服科技有限公司 Grid visual definition and intelligent feature analysis method based on remote sensing image
KR20210079246A (en) * 2020-06-10 2021-06-29 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Map data processing method, device, equipment and storage medium
CN113223164A (en) * 2021-05-10 2021-08-06 西安空天仿真科技有限公司 Large-terrain data batch processing method
CN114240715A (en) * 2021-11-25 2022-03-25 红火蚁科技有限公司 Pest cloud data processing method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108352080A (en) * 2015-11-13 2018-07-31 微软技术许可有限责任公司 Shape interpolation is carried out using polar coordinates embedding distortion grid
CN110493333A (en) * 2019-08-15 2019-11-22 腾讯科技(深圳)有限公司 A kind of determination method, apparatus, equipment and the storage medium of source location
KR20210079246A (en) * 2020-06-10 2021-06-29 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Map data processing method, device, equipment and storage medium
CN112527916A (en) * 2020-11-27 2021-03-19 北京国信云服科技有限公司 Grid visual definition and intelligent feature analysis method based on remote sensing image
CN113223164A (en) * 2021-05-10 2021-08-06 西安空天仿真科技有限公司 Large-terrain data batch processing method
CN114240715A (en) * 2021-11-25 2022-03-25 红火蚁科技有限公司 Pest cloud data processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙华芬等: ""金属非金属露天矿山高陡边坡监测预警预报理论及应用", 31 March 2021, 北京:冶金工业出版社, pages: 59 *

Similar Documents

Publication Publication Date Title
US9786037B2 (en) System, method, and apparatus for data processing and display
US12074940B2 (en) Utility network project modeling and management
CN111177222B (en) Model testing method and device, computing equipment and storage medium
CN109359170B (en) Method and apparatus for generating information
US20140046716A1 (en) Automated management of physical resource scheduling
CN111506942B (en) Model data processing method, device, equipment and computer storage medium
CN112437272B (en) Method, device, server and computer storage medium for area monitoring
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN113312563B (en) Information recommendation method, device, equipment and storage medium
CN111479321A (en) Grid construction method and device, electronic equipment and storage medium
CN111737376B (en) Visualized information comparison method and device, electronic equipment and storage medium
CN112634452A (en) Railway BIM model lightweight method and device
CN114722131A (en) Map checking method, map checking device, terminal equipment and storage medium
CN105354326B (en) Spatial position indexing method and system
CN110992501B (en) Data monitoring method, device, equipment and computer readable storage medium
CN114706931A (en) Data processing method and device
CN108427935B (en) Street view comparison image generation method and device
CN116628967A (en) Intelligent factory digital twin system
CN116225877A (en) Performance test method and device, electronic equipment and storage medium
CN110719325A (en) Method and device for responding to user request
CN108491440B (en) GNSS non-real-time data tracing visualization method and system
CN114187416A (en) Conference room reservation method and device
CN107016044B (en) Data visualization processing method and device
CN108427706B (en) Information publishing method and device
CN111127161A (en) Data processing method, system, electronic device and readable storage medium

Legal Events

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