Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an agricultural machine service method and system based on farmland conditions, so as to facilitate the running and operation of agricultural machines in farmland areas.
The technical scheme of the invention discloses an agricultural machinery service method based on farmland conditions, which comprises the following steps:
an agricultural machinery vehicle-mounted terminal installed on an agricultural machinery sends a farmland geographic data acquisition request carrying map scale information and current position information of the agricultural machinery vehicle-mounted terminal;
after receiving the farmland geographic data acquisition request, the agricultural machinery service platform determines a query geographic range according to the position information carried in the request and the map scale information, and returns farmland geographic data in the query geographic range, and the method comprises the following steps: spatial data of the road sections and the nodes, and attribute data of the road sections; wherein the attribute data of the road segment includes: a name, an area, an elevation, a starting position, and an ending position of a field adjacent to the road segment;
after receiving the returned farmland geographic data, the agricultural machinery vehicle-mounted terminal draws a road section topological structure according to the spatial data of road sections and nodes in the farmland geographic data, draws farmlands adjacent to each road section according to the attribute data of the road sections, displays the drawn road section topological structure and farmlands on a map, and calibrates the current position information on the map.
Preferably, after the map display is performed on the road section topology structure to be drawn and the farmland, the method further includes:
the agricultural machinery vehicle-mounted terminal sends a work route query request; the operation route query request carries position information of an operation starting point and an operation ending point and a name of a farmland needing to be passed through;
after receiving the operation route query request, the agricultural machinery service platform analyzes position information of an operation starting point and an operation end point and a name of a farmland needing to be passed through from the operation route query request; determining a road section adjacent to the farmland according to the analyzed farmland name; respectively determining road sections to which the operation starting point and the operation end point belong according to the analyzed position information of the operation starting point and the operation end point; after an operation route comprising all the determined road sections is planned, returning to the operation route and farmland geographic data comprising the operation route;
after receiving the returned operation route and farmland geographic data containing the operation route, the agricultural machinery vehicle-mounted terminal draws a road section topological structure according to the spatial data of road sections and nodes in the farmland geographic data containing the operation route, draws farmlands adjacent to the road sections according to the attribute data of the road sections, displays the drawn road section topological structure and farmlands on a map, and then displays the operation route in a display screen in a highlighted mode.
Preferably, after the map display is performed on the road section topology structure to be drawn and the farmland, the method further includes:
the agricultural machinery vehicle-mounted terminal sends a farmland query request carrying the name of a farmland;
after receiving the farmland query request, the agricultural machinery service platform finds out the position information of the corresponding farmland according to the name of the farmland analyzed from the farmland query request; returning farmland geographic data in the geographic range according to the geographic range determined by the searched position information of the farmland and preset map scale information;
and the agricultural machinery vehicle-mounted terminal displays a map according to the returned farmland geographic data.
Preferably, the spatial data of the road segment specifically includes: coordinate positions of the starting point and the ending point, and information of nodes adjacent to the road section; and
the spatial data of the nodes specifically include: the coordinate position of the node, and information of a road section adjacent to the node.
Preferably, the attribute data of the road segment further includes: a link width of the link, a display level of the link.
Preferably, the map display of the road section topology structure to be drawn and the farmland specifically includes:
the agricultural machinery vehicle-mounted terminal determines a display level and a road section width range corresponding to the proportion according to the proportion of the map to be displayed; selecting the road sections meeting the conditions from the drawn road section topological structure according to the determined display level and the road section width range; and displaying the map of the drawn farmland and the selected road sections.
Preferably, the spatial data of the road section further includes: the coordinate position of the intermediate keypoints.
Preferably, the farmland geographic data further comprises: attribute data of the nodes; and the attribute data of the node specifically includes: congestion, whether turning, topography.
Preferably, the querying farmland geographic data in the geographic range further comprises:
inquiring attribute information of each farmland in the geographical range; wherein, the attribute information of the farmland includes: the name, the area, the position information of a farmland starting point and a farmland ending point, the topography information of a farmland and the condition of farmland crops; and
after receiving the returned farmland geographic data, the agricultural machinery vehicle-mounted terminal further comprises:
and the agricultural machine vehicle-mounted terminal plans an operation path between a farmland starting point and a farmland terminal point of each farmland in the farmland geographic data according to the attribute information of the farmland.
The technical scheme of the invention also discloses an agricultural machinery service system based on farmland conditions, which comprises the following steps:
the agricultural machinery vehicle-mounted terminal is installed on an agricultural machinery and used for sending a farmland geographic data acquisition request carrying map scale information and current position information of the agricultural machinery vehicle-mounted terminal;
the agricultural machinery service platform is used for determining a query geographical range according to the position information and the map scale information carried in the request after receiving the request for obtaining the farmland geographical data, and returning the farmland geographical data in the query geographical range, and comprises: the spatial data of the road sections and the nodes in the geographic range and the attribute data of the road sections are inquired; wherein the attribute data of the road segment includes: a name, an area, a starting position, and an ending position of a farmland adjacent to the road segment;
and the agricultural machinery vehicle-mounted terminal is also used for drawing a road section topological structure according to the spatial data of the road sections and the nodes in the returned farmland geographic data after receiving the returned farmland geographic data, drawing farmlands adjacent to each road section according to the attribute data of the road sections, displaying the drawn road section topological structure and farmlands, and calibrating the current position information on the map.
Preferably, the agricultural vehicle-mounted terminal is further configured to send a work route query request; the operation route query request carries position information of an operation starting point and an operation ending point and a name of a farmland needing to be passed through;
the agricultural machinery service platform is also used for analyzing position information of an operation starting point and an operation ending point and names of farmlands needing to be passed through after receiving the operation route query request; determining road sections adjacent to the corresponding farmland according to the analyzed farmland names; respectively determining road sections to which the operation starting point and the operation end point belong according to the analyzed position information of the operation starting point and the operation end point; then planning an operation route containing all the determined road sections; returning the operation route and farmland geographic data comprising the operation route;
and the agricultural machinery vehicle-mounted terminal is also used for drawing a road section topological structure according to the spatial data of road sections and nodes in the farmland geographic data containing the operation route after receiving the returned operation route and the farmland geographic data containing the operation route, drawing farmlands adjacent to each road section according to the attribute data of the road sections, displaying the drawn road section topological structure and farmlands, and displaying the operation route in a display screen in a highlighted manner.
Preferably, the agricultural machinery vehicle-mounted terminal is further configured to send a farmland query request carrying a name of a farmland;
the agricultural machinery service platform is also used for searching the position information of the corresponding farmland according to the name of the farmland analyzed from the received farmland query request; and returning farmland geographic data in the geographic range according to the geographic range determined by the searched position information of the farmland and preset map scale information.
Preferably, the querying farmland geographic data in the geographic range further comprises:
inquiring attribute information of each farmland in the geographical range; wherein, the attribute information of the farmland includes: the name, the area, the position information of a farmland starting point and a farmland ending point, the topography information of a farmland and the condition of farmland crops; and
and the agricultural machine vehicle-mounted terminal is also used for planning an operation path between a farmland starting point and a farmland ending point of each farmland in the farmland geographic data according to the attribute information of the farmland after receiving the returned farmland geographic data.
Further, the technical scheme of the invention also provides an agricultural machinery vehicle-mounted terminal, which comprises:
the satellite positioning module is used for positioning the agricultural machinery vehicle-mounted terminal and outputting the current position information of the agricultural machinery vehicle-mounted terminal;
the request sending module is used for obtaining the current position information of the agricultural machinery vehicle-mounted terminal from the satellite positioning module and sending a farmland geographic data obtaining request carrying map scale information and the current position information of the agricultural machinery vehicle-mounted terminal to an agricultural machinery service platform;
and the map display module is used for drawing a road section topological structure according to the spatial data of road sections and nodes in the farmland geographic data returned by the agricultural machinery service platform, drawing farmlands adjacent to each road section according to the attribute data of the road sections, displaying the drawn road section topological structure and farmlands, and calibrating the current position information on the map.
Preferably, the request sending module is further configured to send a work route query request to the agricultural machinery service platform; the operation route query request carries position information of an operation starting point and an operation ending point and a name of a farmland needing to be passed through;
and the map display module is also used for displaying the operation route in a display screen after receiving the operation route returned by the agricultural machinery service platform and farmland geographic data containing the operation route and displaying the drawn road section topological structure and the farmland.
Preferably, the request sending module is further configured to send a farmland query request carrying a name of a farmland to the agricultural machinery service platform.
Preferably, the spatial data of the road segment specifically includes: coordinate positions of the starting point and the ending point, and information of nodes adjacent to the road section; and
the spatial data of the nodes specifically include: the coordinate position of the node, and information of a road section adjacent to the node.
Preferably, the attribute data of the road segment further includes: a link width of the link, a display level of the link.
Preferably, the map display module is specifically configured to draw a road segment topological structure according to spatial data of road segments and nodes therein after receiving farmland geographic data returned by the agricultural machinery service platform, and draw a farmland adjacent to each road segment according to attribute data of the road segments; determining a display level and a road section width range corresponding to the proportion according to the proportion of the map to be displayed; selecting the road sections meeting the conditions from the drawn road section topological structure according to the determined display level and the road section width range; and displaying the map of the drawn farmland and the selected road sections.
The technical scheme of the invention also provides an agricultural machinery service platform, which comprises: the system comprises a service layer sub-platform, a plurality of application nodes distributed everywhere and a resource layer sub-platform for storing farmland geographic data; wherein,
the application node is used for analyzing position information and map scale information from a farmland geographic data acquisition request sent by an agricultural machinery vehicle-mounted terminal after receiving the farmland geographic data acquisition request; when the map data query service of the service layer sub-platform is called, the analyzed position information and the map scale information are used as transmission parameters;
the service layer sub-platform is used for acquiring farmland geographic data in the query geographic range from the resource layer sub-platform and returning the farmland geographic data to the application node after determining the query geographic range according to the position information in the transmission parameters and the map scale information when the map data query service is called;
and the application node is also used for returning farmland geographic data returned by the service layer sub-platform to the agricultural vehicle-mounted terminal.
Preferably, the application node is further configured to, after receiving a work route query request sent by the agricultural vehicle-mounted terminal, parse out position information of a work start point and a work end point and a name of a farmland to be passed through from the work route query request; when the route planning service of the service layer sub-platform is called, the analyzed position information of the operation starting point and the operation end point and the name of the farmland needing to be passed through are used as transfer parameters;
the service layer sub-platform is used for determining a road section adjacent to the corresponding farmland according to the name in the transmission parameter when the route planning service is called; determining road sections to which the operation starting point and the operation end point belong respectively according to the position information of the operation starting point and the operation end point in the transmission parameters; then planning an operation route containing all the determined road sections; returning the operation route and farmland geographic data comprising the operation route;
the application node is also used for returning the operation route returned by the service layer sub-platform and the farmland geographic data containing the operation route to the agricultural machinery vehicle-mounted terminal.
Preferably, the application node is further configured to find the location information of the corresponding farmland according to the name of the farmland analyzed from the farmland query request sent by the agricultural vehicle-mounted terminal after receiving the farmland query request; and when the map data query service of the service layer sub-platform is called, the searched position information of the farmland and preset map scale information are used as transfer parameters.
Preferably, the service layer sub-platform is a service layer server or a service layer node cluster.
Preferably, the resource layer sub-platform is a resource layer server or a resource layer node cluster.
In the technical scheme of the invention, a farmland field road data structure is defined in a field block/node mode, and farmland geographic data comprising space data of road sections and nodes and attribute data of the road sections and the nodes are formed; the agricultural machinery service system can draw a road section topological structure of a farmland area and farmlands adjacent to each road section based on the obtained farmland geographic data and perform map display so as to provide farmland map service for agricultural machinery drivers; furthermore, the prompting service of the agricultural machine driving route in the farmland field can be provided according to the position information of the operation starting point and the operation ending point of the agricultural machine and the name of the farmland needing to be accessed, so that the agricultural machine can conveniently drive and operate in the farmland area.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings by way of examples of preferred embodiments. It should be noted, however, that the numerous details set forth in the description are merely for the purpose of providing the reader with a thorough understanding of one or more aspects of the present invention, which may be practiced without these specific details.
As used in this application, the terms "module," "system," and the like are intended to include a computer-related entity, such as but not limited to hardware, firmware, a combination of hardware and software, or software in execution. For example, a module may be, but is not limited to: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. For example, an application running on a computing device and the computing device may both be a module. One or more modules may reside within a process and/or thread of execution and a module may be localized on one computer and/or distributed between two or more computers.
The inventor of the invention considers various characteristics of the farmland and defines a farmland field road data structure in a field block/node mode, so that an agricultural machine service system can provide farmland map service for agricultural machine drivers and prompt service of agricultural machine driving routes in the farmland field based on the road data structure, and driving and operation of agricultural machines in the farmland area are facilitated.
The method comprises the following steps that after a geographical range to be inquired is determined by an agricultural machinery service system, according to farmland geographical data in the geographical range to be inquired, a road section topological structure in the geographical range to be inquired and farmlands adjacent to all road sections are drawn, map display is carried out, current position information of agricultural machinery is calibrated on corresponding positions of a map, and therefore map service of the farmlands is provided for agricultural machinery drivers.
Furthermore, the operation route of the agricultural machine and the farmland geographic data thereof can be determined according to the position information of the operation starting point and the operation end point of the agricultural machine and the name of the farmland needing to be accessed; and according to the operation route of the agricultural machine and farmland geographic data thereof, a road section topological structure on the operation route and farmlands adjacent to each road section of the operation route are drawn and mapped to display so as to provide prompting service of the driving route of the agricultural machine and facilitate driving and operation of the agricultural machine between farmland areas.
The technical scheme of the invention is explained in detail in the following with the accompanying drawings.
As shown in fig. 1, the agricultural machinery service system based on farmland conditions provided by the specific embodiment of the present invention may specifically include: an agricultural machinery vehicle-mounted terminal 101 installed on an agricultural machinery and an agricultural machinery service platform 102.
The agricultural machinery vehicle-mounted terminal 101 may send a farmland geographic data acquisition request carrying map scale information and current position information of the agricultural machinery vehicle-mounted terminal to the agricultural machinery service platform 102.
After receiving the farmland geographic data acquisition request sent by the agricultural machinery vehicle-mounted terminal 101, the agricultural machinery service platform 102 can determine an inquiry geographic range according to the position information and the map scale information carried in the farmland geographic data acquisition request, and return the farmland geographic data within the inquiry geographic range.
In practical application, the farmland geographic data in the agricultural machinery service platform 102 is collected and stored in advance, and specifically may include: spatial data of road segments and nodes within a certain geographical range, and attribute data of the road segments. The attribute data of the road segment may specifically include: the name, area, starting position and ending position of the farmland adjacent to the road segment.
In this way, after receiving farmland geographic data returned by the agricultural machinery service platform 102, the agricultural machinery vehicle-mounted terminal 101 draws a road section topological structure according to spatial data of road sections and nodes therein, and draws farmlands adjacent to each road section according to attribute data of the road sections; and performing map display on the drawn road section topological structure and the farmland, and calibrating the current position information on the map. How to draw a topological structure of a road section according to spatial data of the road section and a node and how to draw a farmland adjacent to each road section according to attribute data of the road section are well known to those skilled in the art and are not described herein again.
Further, the farmland geographic data in the query geographic range returned by the agricultural machinery service platform 102 can also include attribute information of each farmland in the query geographic range. Wherein, the attribute information of the farmland specifically may include: the name, area, position information of the operation starting point and the operation ending point, the topography information of the farmland, the condition of the farmland crops, the condition of the farmland obstacles and the like of the farmland. For example, the farmland terrain information may specifically be the slope, the dryness and the wetness of the farmland; the farmland crop condition can be the crop type, maturity, current operation state, expected operation time and the like of the farmland. In practical application, the attribute information of the farmland in the agricultural machinery service platform 102 can be collected and uploaded by a sensor installed on the agricultural machinery vehicle-mounted terminal 101 in advance. Thus, after receiving the returned farmland geographic data, the agricultural machinery vehicle-mounted terminal 102 can plan the operation path between the operation starting point and the operation end point of each farmland in the farmland geographic data according to the attribute information of the farmland, thereby facilitating the operation of agricultural machinery in the farmland. However, the technical means commonly used by those skilled in the art can be adopted to plan the operation path between the operation starting point and the operation ending point of the farmland according to the attribute information of the farmland, and the detailed description is omitted here.
Specifically, the flow of the specific process of the agricultural machinery service system based on the farmland condition for agricultural machinery service is shown in fig. 2, and the specific process comprises the following steps:
s201: the agricultural machinery vehicle-mounted terminal 101 sends a farmland geographic data acquisition request carrying map scale information and current position information of the agricultural machinery vehicle-mounted terminal.
Specifically, in order to obtain a farmland map of the current location of the agricultural machinery vehicle-mounted terminal 101, a farmland geographic data obtaining request carrying map scale information and current location information of the agricultural machinery vehicle-mounted terminal may be sent to the agricultural machinery service platform 102. The map scale information specifically includes a required map range and a scale of a map to be displayed.
In practical applications, the agricultural vehicle-mounted terminal 101 may specifically be a PC (Personal Computer), a PDA (Personal Digital Assistant), a palmtop Computer, or a TCU (Transmission Control Unit). The agricultural vehicle-mounted terminal 101 is provided with a satellite positioning module, and the position information of the agricultural vehicle-mounted terminal 101 can be acquired in real time through the positioning module and a positioning satellite.
S202: the agricultural machinery service platform 102 determines the inquiry geographical range of the agricultural machinery vehicle-mounted terminal 101 according to the received farmland geographical data acquisition request, and returns farmland geographical data in the inquiry geographical range to the agricultural machinery vehicle-mounted terminal 101.
Specifically, after receiving a farmland geographic data acquisition request sent by the agricultural machinery vehicle-mounted terminal 101, the agricultural machinery service platform 102 determines a query geographic range according to the position information and the map scale information carried therein. That is, the agricultural machinery service platform 102 may determine a query geographical range according to the map scale information analyzed from the farmland geographic data acquisition request and the current location information of the agricultural machinery vehicle-mounted terminal.
Then, the agricultural machinery service platform 102 acquires farmland geographic data in the inquiry geographic range and returns the farmland geographic data to the agricultural machinery vehicle-mounted terminal 101. The method for inquiring farmland geographic data in the geographic range returned to the agricultural vehicle-mounted terminal 101 specifically comprises the following steps: spatial data of the road sections and the nodes, and attribute data of the road sections; furthermore, the farmland geographic data can also comprise attribute data of the nodes.
In practical application, the invention defines a road data structure in a mode of 'field block/node', divides all roads into road sections according to intersections and initial positions, and defines each intersection, the initial point and the end point of each road section as nodes; and each road segment and node has attribute data and spatial data derived from the raw terrain data.
The spatial data of the road segment may specifically include: the coordinate position of the start point, the coordinate position of the end point of the road segment, the coordinate position of the middle key point of the road segment (for example, the position of the large turning arc in the road segment), and the information of the nodes adjacent to the road segment; the spatial data of the node may specifically include: the coordinate position of the node, and information of road segments adjacent to the node. By means of the mutually associated arc segment/node definition relationship, the road segment topological structure can be described clearly and accurately.
Further, the attribute data of the road segment mainly includes: the name, area, starting position and ending position of the farmland adjacent to the road section; the attribute data of the nodes mainly comprises: congestion at the node, whether a turn is present, and topography.
S203: the agricultural machinery vehicle-mounted terminal 101 draws a road section topological structure and farmlands adjacent to each road section according to returned farmland geographic data, displays a map, and calibrates the current position information on the map.
Specifically, after receiving farmland geographic data returned by the agricultural machinery service platform 102, the agricultural machinery vehicle-mounted terminal 101 can draw a road section topological structure according to spatial data of road sections and nodes in the farmland geographic data; meanwhile, farmlands adjacent to each road section can be drawn according to the attribute data of the road sections; and displaying the map of the drawn road section topological structure and the farmland, and then calibrating the current position information on the map. In this way, the agricultural vehicle-mounted terminal 101 can show the condition of the surrounding farmland to the driver.
In practical application, in consideration of the limitation of the display information in the map, the display information in the map can be displayed in multiple stages, namely, the display content can be dynamically adjusted according to the scale when the map is displayed. For example, more specific farmland information is displayed when the scale is large, and links with low levels and small widths are not displayed when the scale is small.
Therefore, preferably, in the farmland geographic data received by the agricultural machinery vehicle-mounted terminal 101, further, the attribute data of the road segment may further include: link width of the link and display level of the link. In this way, the agricultural vehicle-mounted terminal 101 can determine the display level and the road section width range corresponding to the scale of the map to be displayed. For various display ratios, a display level and a link width range corresponding to the ratio may be set in advance in the agricultural vehicle-mounted terminal 101; the links whose display levels and link widths both correspond to the display levels and link width ranges corresponding to the scale may be displayed in the map at the scale.
Then, the agricultural machinery vehicle-mounted terminal 101 selects a road section meeting the conditions from the drawn road section topological structure according to the determined display level and the road section width range; and displaying the map of the drawn farmland and the selected road sections. For example, for a link selected from the mapped link topology, the display level is equal to the display level of the determined link, and the link width is within the determined link width. The proportion of the map to be displayed can be input by a driver, so that the agricultural machinery vehicle-mounted terminal 101 can dynamically adjust the farmland and road sections displayed on the map according to the display requirements of the driver, and the agricultural machinery can be conveniently driven in the farmland area.
In addition, it is considered that after the driver observes the map displayed by the agricultural vehicle-mounted terminal 101, some farmlands may need to be queried and displayed. Therefore, preferably, in the embodiment of the present invention, as shown in fig. 3, after the map display is performed on the drawn road segment topology and farmlands, some farmlands may be queried and subjected to map display through the following steps:
s301: the agricultural machinery vehicle-mounted terminal 101 sends a farmland query request carrying the name of the farmland.
S302: after receiving the farmland query request, the agricultural machinery service platform 102 finds the position information of the corresponding farmland according to the name of the farmland analyzed from the farmland query request; and returning farmland geographic data in the geographic range according to the searched position information of the farmland and the geographic range determined by the preset map scale information aiming at the received farmland query request. The preset map scale information may be a default map scale information of the agricultural machinery service platform 102.
S303: the agricultural machinery vehicle-mounted terminal 101 displays a map according to the returned farmland geographic data.
Specifically, after receiving the farmland geographic data returned by the agricultural machinery service platform 102 for the farmland query request, the agricultural machinery vehicle-mounted terminal 101 displays a map according to the received farmland geographic data.
Furthermore, the returned farmland geographic data comprises the inquired farmland position information, so that the inquired farmland position information can be calibrated and highlighted on a map after the map is displayed according to the received farmland geographic data.
The inventor of the present invention has taken into account the fact that agricultural machines are usually operated not only on one farm but also on a plurality of farms during a single working cycle. The farmland needing to be operated can be called an approach-needed farmland in the text; in practical applications, the required approaches to farmlands are usually dispersed in regions, and in order to save operation time, it is necessary to display a short-distance preferred operation route for drivers.
Therefore, the embodiment of the present invention provides a better implementation manner, as shown in fig. 4, after the map display is performed on the drawn road topology and farmland, the operation route can be optimized and displayed for the agricultural machinery through the following steps:
s401: the agricultural machinery vehicle-mounted terminal 101 transmits a work route inquiry request.
Specifically, the driver can input the work start point, the position information of the work end point, and the name of the required farmland of the agricultural machine in the agricultural machine vehicle-mounted terminal 101 in advance. In this way, the agricultural vehicle-mounted terminal 101 can send a work route query request carrying position information of a work start point and a work end point and a name of a farmland to be passed to the agricultural service platform 102.
S402: after receiving the operation route query request, the agricultural machinery service platform 102 analyzes position information of an operation starting point and an operation end point and a name of a farmland needing to be passed through from the operation route query request; and determining the road section adjacent to the farmland according to the analyzed farmland name.
S403: the agricultural machinery service platform 102 determines road sections to which the operation starting point and the operation end point belong respectively according to the analyzed position information of the operation starting point and the operation end point; and after an operation route comprising all the determined road sections is planned, returning to the operation route and farmland geographic data comprising the operation route.
S404: the agricultural machinery vehicle-mounted terminal 101 draws a road section topological structure and farmlands adjacent to each road section according to returned farmland geographic data; and after the drawn road section topological structure and the farmland are subjected to map display, a returned operation route is highlighted and displayed in a display screen.
Specifically, after receiving the returned operation route and the farmland geographic data including the operation route, the agricultural machinery vehicle-mounted terminal 101 draws a road section topological structure according to spatial data of road sections and nodes in the farmland geographic data including the operation route, draws farmlands adjacent to the road sections according to attribute data of the road sections, displays the drawn road section topological structure and farmlands on a map, and then displays the operation route in a display screen in a highlighted manner.
In the embodiment of the present invention, as shown in fig. 5, the internal structure of the agricultural vehicle-mounted terminal 101 specifically includes: a satellite positioning module 501, a request sending module 502 and a map display module 503.
The satellite positioning module 501 is configured to position the agricultural vehicle-mounted terminal and output current position information of the agricultural vehicle-mounted terminal.
The request sending module 502 is configured to obtain current position information of the agricultural vehicle-mounted terminal from the satellite positioning module 501, and send a request for obtaining farmland geographic data, which carries map scale information and the current position information of the agricultural vehicle-mounted terminal, to the agricultural service platform.
The map display module 503 is configured to draw a road segment topological structure according to spatial data of road segments and nodes therein after receiving farmland geographic data returned by the agricultural machinery service platform, draw farmlands adjacent to each road segment according to attribute data of the road segments, display the drawn road segment topological structure and farmlands, and calibrate current position information on a map.
The spatial data of the road sections in the farmland geographic data specifically comprise: the coordinate positions of the start point and the end point of the road section, and the information of the nodes adjacent to the road section. The spatial data of the nodes in the farmland geographic data specifically include: the coordinate position of the node, and information of the road section adjacent to the node.
Preferably, the attribute data of the road segment in the farmland geographic data further comprises: link width of the link and display level of the link. Thus, after receiving farmland geographic data returned by the agricultural machinery service platform, the map display module 503 draws a road section topological structure according to spatial data of road sections and nodes therein, and draws farmlands adjacent to each road section according to attribute data of the road sections; determining a display level and a road section width range corresponding to the proportion according to the proportion of the map to be displayed; selecting the road sections meeting the conditions from the drawn road section topological structure according to the determined display level and the road section width range; and displaying the map of the drawn farmland and the selected road sections.
Further, the request sending module 502 can also send a work route query request to the agricultural machinery service platform. The operation route query request carries position information of an operation starting point and an operation ending point and names of farmlands needing to be passed through.
Correspondingly, after receiving the operation route returned by the agricultural machinery service platform in response to the operation route query request sent by the request sending module 502 and the farmland geographic data including the operation route, the map display module 503 displays the drawn road segment topology structure and farmland, and then displays the operation route in a display screen.
Preferably, the request sending module 502 is further configured to send a farmland query request carrying a name of a farmland to the agricultural machinery service platform. Furthermore, the map display module 503 displays a map according to farmland geographic data returned by the farm machinery server platform in response to the farmland query request sent by the request sending module 502.
In the embodiment of the present invention, as shown in fig. 6, the internal structure of the agricultural machinery service platform specifically includes: a service layer sub-platform 601, a plurality of application nodes 602 distributed throughout, and a resource layer sub-platform 603 for storing farmland geographic data.
The application node 602 is configured to, after receiving a farmland geographic data acquisition request sent by the agricultural machinery vehicle-mounted terminal 101, analyze position information and map scale information from the farmland geographic data acquisition request; when the map data query service of the service layer sub-platform 601 is called, the parsed position information and the map scale information are used as transfer parameters. In practical applications, the application node 602 may be embodied as a Servlet running on a server.
The service layer sub-platform 601 is configured to, when the map data query service is invoked, determine a query geographic range according to the position information in the transmission parameter and the map scale information, acquire farmland geographic data within the query geographic range from the resource layer sub-platform 603, and return the farmland geographic data to the application node 602. In this way, the application node 602 may return the farmland geographic data returned by the service layer sub-platform 601 to the agricultural vehicle-mounted terminal 101.
In practical application, the service layer sub-platform 601 may be a service layer server or a service layer node cluster; that is, the service layer sub-platform 601 may be a single server or a cluster composed of a plurality of server nodes.
The resource layer sub-platform 603 may specifically be a resource layer server or a resource layer node cluster; that is, the resource layer sub-platform 603 may be a single server or a cluster composed of a plurality of server nodes.
Further, the application node 602 is further configured to, after receiving a work route query request sent by the agricultural vehicle-mounted terminal 101, parse out position information of a work start point and a work end point and a name of a farmland to be passed through from the work route query request; and when the route planning service of the service layer sub-platform 601 is called, the analyzed position information of the operation starting point and the operation end point and the name of the farmland needing to be passed through are used as transfer parameters.
Thus, when the route planning service of the service layer sub-platform 601 is called, the road section adjacent to the corresponding farmland can be determined according to the name in the transmission parameter; and determining the road sections to which the operation starting point and the operation end point belong respectively according to the position information of the operation starting point and the operation end point in the transmission parameters. Then planning an operation route containing all the determined road sections; and returns the planned work route, and the geographical data of the farmland containing the work route, to the application node 602. Further, the application node 602 may return the work route returned by the service layer sub-platform 601 and the farmland geographic data including the work route to the agricultural vehicle-mounted terminal 101.
In the embodiment of the present invention, as to how each module in the agricultural machinery vehicle-mounted terminal, each sub-platform and each application node in the agricultural machinery service platform specifically implement agricultural machinery service, reference may be made to the specific method of the above-mentioned flow.
In the technical scheme of the invention, a farmland field road data structure is defined in a field block/node mode, and farmland geographic data comprising space data of road sections and nodes and attribute data of the road sections and the nodes are formed; the agricultural machinery service system can draw a road section topological structure of a farmland area and farmlands adjacent to each road section based on the obtained farmland geographic data and perform map display so as to provide farmland map service for agricultural machinery drivers; furthermore, the prompting service of the driving route of the agricultural machine in the farmland can be provided, so that the driving and the operation of the agricultural machine in the farmland are facilitated.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer readable storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.