Method, device and equipment for processing maritime target playback data
By working collaboratively between the client and server, and employing a segmented caching and deletion mechanism to process maritime target playback data, the problems of delayed playback of nautical chart vessel trajectories and discontinuous target movement were solved, enabling fast and continuous trajectory display.
Patent Information
- Application Number
- CN202411206926.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the field of nautical charts and ships, existing technologies suffer from display delays and discontinuous target movement when replaying ship trajectories, especially during fast-forward and rewind playback, which requires data re-acquisition and causes stuttering.
The client sends a replay data push request to the server, including the geographic range of the nautical chart, the query duration density, and the request cache duration. The server queries and pushes multiple target replay data segments according to the query duration density. The client caches the data in the full data cache in chronological order. A segmented caching mechanism and a cache deletion mechanism are used to optimize data processing.
It enables faster playback of ship trajectories on nautical charts and continuous target movement, reduces the burden of server data transmission and client rendering pressure, and avoids lag caused by repeated data requests.
Smart Images

Figure CN119299767A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer information technology processing technology, and in particular to a method, device and equipment for processing marine target playback data. Background Art
[0002] In the existing field of nautical charts and ships, when users observe the playback of ship tracks within a certain period of time, they need to be able to quickly display the playback target and the track of the playback target. During the playback process, the front end needs to obtain track data separately and regularly. The amount of track data is large and the acquisition time is long. The user needs to wait for the network request to succeed before rendering; and when the user fast-forwards and rewinds the playback, it is also necessary to re-acquire the playback data and wait for the network to succeed before rendering. This results in slower display of tracks and targets, and easy playback jams; and because only the data of the current playback time point is requested each time, it is impossible to use multiple position points of the target within a certain period of time to make the target move continuously. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method, device and equipment for processing marine target playback data, which can play back chart ship trajectories faster and ensure the continuity of target movement.
[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0005] A method for processing marine target playback data, applied to a client, the method comprising:
[0006] Sending a playback data push request to the server, the push request including: the geographical scope of the nautical chart of the playback data, the query duration density and the request cache duration of the playback data;
[0007] receiving a plurality of target playback data segments pushed by the server according to the push request, wherein the plurality of target playback data segments are multiple target playback data segments queried by the server in a database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data;
[0008] According to the identification of the marine target, the data of the plurality of target playback data segments are cached in a full data cache in chronological order.
[0009] Optionally, the method for processing the marine target playback data further includes:
[0010] Sending updated query duration density to the server;
[0011] Receive at least one target playback data segment that has been most recently queried and pushed by the server in the database according to the updated query duration density, wherein the start time of the at least one target playback data segment that has been most recently queried is the current playback time playTime of the client, and the end time is playTime+N, where N is a positive integer.
[0012] Optionally, the method for processing the marine target playback data further includes:
[0013] Sending the updated geographic range of the nautical chart to the server;
[0014] Receive at least one target playback data segment that is most recently found and pushed by the server in the database according to the updated geographic range of the nautical chart.
[0015] Optionally, the method for processing the marine target playback data further includes:
[0016] Determine the playback cache duration;
[0017] According to the playback buffer duration, obtaining target playback data from the full data buffer;
[0018] Play the target playback data.
[0019] The present invention also provides a method for processing marine target playback data, which is applied to a server and includes:
[0020] Receive a playback data push request sent by a client, the push request including: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data;
[0021] According to the push request, playback data is queried in the database according to the query duration density, and multiple target playback data segments are queried; the target location at sea of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data;
[0022] The multiple target playback data segments are pushed to the client, so that the client caches the data of the multiple target playback data segments in a full data cache in chronological order according to the identification of the offshore target.
[0023] Optionally, the method for processing the marine target playback data further includes:
[0024] Receiving the updated query duration density sent by the client;
[0025] According to the updated query duration density, at least one target playback data segment newly queried is queried in the database and pushed to the client, wherein the start time of at least one target playback data segment newly queried is the client's current playback time playTime, and the end time is playTime+N, where N is a positive integer.
[0026] Optionally, the method for processing the marine target playback data further includes:
[0027] Receiving the updated geographic range of the nautical chart sent by the client;
[0028] According to the updated geographic range of the nautical chart, at least one target playback data segment that has been most recently queried is queried in the database and pushed to the client.
[0029] The present invention also provides a processing device for marine target playback data, which is applied to a client and includes:
[0030] A sending module, used to send a playback data push request to the server, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data;
[0031] A processing module is used to receive multiple target playback data segments pushed by the server according to the push request, wherein the multiple target playback data segments are multiple target playback data segments queried by the server in a database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density of the preset query time period is less than the requested cache duration of the playback data; and according to the identification of the maritime target, the data of the multiple target playback data segments are cached in chronological order into the full data cache.
[0032] The present invention also provides a processing device for marine target playback data, which is applied to a server and includes:
[0033] An acquisition module, used to receive a playback data push request sent by a client, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data;
[0034] A processing module is used to query the playback data in the database according to the push request according to the query duration density, and query multiple target playback data segments; the sea target position of the target playback data segment is within the geographical range of the nautical chart, and the query duration density is less than the request cache duration of the playback data; push the multiple target playback data segments to the client, so that the client caches the data of the multiple target playback data segments in chronological order into the full data cache according to the identification of the sea target.
[0035] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is run by the processor, the method as described above is executed.
[0036] The above solution of the present invention includes at least the following beneficial effects:
[0037] In the above scheme of the present invention, in the method on the client side, a playback data push request is sent from the client to the server, and the push request includes: the geographical scope of the nautical chart of the playback data, the query time density and the request cache time of the playback data; multiple target playback data segments pushed by the server according to the push request are received, and the multiple target playback data segments are multiple target playback data segments queried by the server in the database according to the query time density; the sea target position of the target playback data segment is within the geographical scope of the nautical chart, and the query time density is less than the request cache time of the playback data; according to the identification of the sea target, the data of the multiple target playback data segments are cached in the full data cache in chronological order. This allows the client to play back the chart ship trajectory faster and ensure the continuity of the target movement. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a first flow chart of a method for processing marine target playback data according to an embodiment of the present invention;
[0039] Figure 2 is a second flow chart of the method for processing marine target playback data according to an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of a ship chart playback interface according to an embodiment of the present invention;
[0041] Figure 4 is a first structural diagram of a device for processing marine target playback data according to an embodiment of the present invention;
[0042] Figure 5 It is a second structural diagram of the device for processing marine target playback data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0044] like Figure 1As shown, an embodiment of the present invention provides a method for processing marine target playback data, which is applied to a client, and the method includes:
[0045] Step 11, sending a playback data push request to the server, the push request including: the geographical range of the nautical chart of the playback data, the query duration density and the request cache duration of the playback data;
[0046] Step 12, receiving a plurality of target playback data segments pushed by the server according to the push request, wherein the plurality of target playback data segments are the plurality of target playback data segments queried by the server in a database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data;
[0047] Step 13: Cache the data of the multiple target playback data segments into the full data cache in chronological order according to the identification of the marine target.
[0048] In this embodiment, the specific method of step 11 includes:
[0049] Initialization: The user selects the geographic scope of the chart, selects the playback time period (the start time is recorded as startTime, and the end time is recorded as endTime), and starts the target playback; in this application, the target generally refers to the ship, and the target playback is the chart ship playback, including the playback of the ship target position and the ship's track route in the chart, etc.;
[0050] After starting playback, the client creates a websocket (a network communication protocol) connection through javascript and listens to the onopen event of the websocket (the open event in the webSocket object scheduling. Once the server responds to the webSocket connection request, the open event is triggered and a connection is established. The callback function corresponding to the open event is called onopen.) After receiving the connection request, the server-side java service sends a connection success message to the client, triggering the client's onopen event.
[0051] At this point, the client starts sending playback data push requests to the server, and the client websocket sends the user-selected parameters to the server, including the geographic range of the chart, the query duration density, and the request cache duration for the playback data.
[0052] The geographic scope of the nautical chart is the geographic scope of the nautical chart selected by the user at the initialization; the query duration density determines the density of the track points when the chart ship track is played back (the ship track is composed of multiple track points). Track density is divided into sparse, moderate and original. For example, when the query duration density is 200 seconds, the track density is sparse. The requested cache duration of the playback data refers to the time span of the requested playback data when the client requests playback data from the server once. The requested cache duration of the playback data is defined by the cache start time cacheStartTime and the cache end time cacheEndTime. Among them, the cache start time cacheStartTime = startTime, the cache end time cacheEndTime = Math.min(cacheStartTime+1h,endTime), where min is the minimum value, that is, the cache end time is equal to the minimum value between the cache start time plus one hour and the end time endTime. In other words, in this application, the client caches a maximum of one hour of data at a time. By splitting the time between startTime and endTime into multiple time periods, the burden of sending data on the server can be reduced and the pressure of client rendering can be reduced. When the playback time period selected by the user is less than 1 hour, all data within the playback time period will be cached at once, and the cache end time cacheEndTime = endTime. The cache start time cacheStartTime and cache end time cacheEndTime will be sent to the server via websocket after the client and the server establish a connection.
[0053] In this application, after the client sends the chart geographic range, query duration density and request cache duration of playback data to the server in step 11, the server queries the target playback data in the database according to the chart geographic range, query duration density and request cache duration of playback data, and the target playback data is divided into multiple target playback data segments, and the server sends the multiple target playback data segments to the client. Specifically, it includes:
[0054] The server divides the request cache duration of the playback data sent by the client into multiple continuous query time periods (the query time period is the query time density, and the query time period value is equal to the query time density), and the query time period defaults to 200 seconds. The server queries the StarRocks database for data whose location is within the geographic range of the chart and whose target update time is within 200 seconds in each period, where only the last point within 200 seconds is taken for each ship. The queried target playback data is the information of multiple ships, and the fields of each ship include identification ID, longitude and latitude, update time and target type. After the data query of a query time period is completed, the data of a target playback data segment is obtained, and the data of the target playback data segment is sent to the client. The data of the target playback data segment includes the start time and end time of the query time period and the location data of multiple ships. Taking the trajectory density as sparse and the query time period (query time density) as 200 seconds as an example, the data of a target playback data segment includes the start time, end time and location data of multiple ships (generally longitude and latitude data) of 200 seconds.
[0055] The server divides the request cache duration of the playback data into multiple query time periods. For example, if the request cache duration of the playback data is 1 hour and the query time period is 200 seconds, it is divided into 18 query time periods. The server queries 18 target playback data segments and sends the 18 target playback data segments to the client in sequence.
[0056] In step 13, the client uses a Map (a non-relational database) to store data. The key of the Map is the ship ID, and the value is an Array. Each item in the Array is a ship position data, and the ship position data is sorted by update time.
[0057] At the same time, the client will also record the cache start time allCacheStartTime and end time allCacheEndTime of multiple target playback data segments returned by the backend. In a playback cache, when the server sends the target playback data of the first query time period, allCacheStartTime = cacheStartTime, allCacheEndTime = cacheStartTime + 200 seconds. Each time the client receives the data of the target playback data segment sent by the server, it updates the end time allCacheEndTime, while allCacheStartTime remains unchanged. In other words, when the playback data with a cache start time cacheStartTime and a cache end time cacheEndTime is cached, allCacheStartTime = cacheStartTime, allCacheEndTime = cacheEndTime. Each time the data with the same ship ID is pushed, it will be added to the Array of the same ID corresponding to the Map in chronological order.
[0058] In an optional embodiment of the present invention, the method for processing marine target playback data further includes:
[0059] Step 141, sending the updated query duration density to the server;
[0060] Step 142, receiving the at least one target playback data segment that has been most recently queried and pushed by the server in the database according to the updated query duration density, wherein the start time of the at least one target playback data segment that has been most recently queried is the current playback time playTime of the client, and the end time is playTime+N, where N is a positive integer.
[0061] In this embodiment, during the playback of targets at sea, the user can change the query duration density at any time, and adjust the density of track points on the chart interface by changing the query duration density. In this application, preferably, three query duration densities are provided, namely 200 seconds, 100 seconds and 3 seconds. Among them, 200 seconds corresponds to a sparse track, 100 seconds corresponds to a moderate track, and 3 seconds corresponds to an original track. After the user modifies the query duration density, the client will clean up all cached data in the full data cache, re-cache, and reset allCacheStartTime and allCacheEndTime to empty. The client sends the updated query duration density to the server via websocket. The query start time is the current play time playTime, and the end time is playTime+N. Preferably, N is 1 hour. After receiving the parameters, the server modifies the query time period and re-queries the data and pushes it to the client.
[0062] In an optional embodiment of the present invention, the method for processing marine target playback data further includes:
[0063] Step 151, sending the updated geographic range of the nautical chart to the server;
[0064] Step 152, receiving at least one target playback data segment that is newly found and pushed by the server in the database according to the updated geographic range of the nautical chart.
[0065] In this embodiment, if the user does not select the chart geographic range when the system is initialized, the current field of view is used as the chart geographic range. If the user drags the map during playback, the new field of view is sent to the server via websocket as the chart geographic range, and the request cache time of the playback data remains unchanged, and the value before the field of view changes is still maintained. Then the client queries data in the database according to the new chart geographic range and pushes the queried new at least one target playback data segment to the client.
[0066] In an optional embodiment of the present invention, the method for processing marine target playback data further includes:
[0067] Step 161, determining the playback buffer duration;
[0068] Here, the playback buffer duration is preferably 5 minutes.
[0069] Step 162, acquiring target playback data from the full data cache according to the playback cache duration;
[0070] Step 163: play the target playback data.
[0071] In this embodiment, the client plays the cached target playback data on the nautical chart. Specifically, it includes: the client continuously obtains the playback cache (i.e., the target playback data) from the full cache data, and the start time of the playback cache is the current playback time playTime, and the end time is playTime + 5 minutes. Traverse each ship point in the full cache, obtain the data of the ship update time within the playback cache start time and the playback cache end time, and use it as the playback cache. When playTime is greater than the end time of the playback cache, clear the playback cache and re-acquire the playback cache. The data structure of the playback cache is the same as that of the full cache. In this application, by taking out the playback cache duration data from the full cache each time, it is possible to avoid calculating the target position from the full cache each time, thereby increasing the amount of calculation.
[0072] In an optional embodiment of the present invention, step 163 may include:
[0073] Step 1631, based on the relationship between the target update time in the target playback data and the current playback time, the sea target corresponding to the target playback data is displayed on the nautical chart.
[0074] The client uses the obtained playback cache (target playback data) to draw the target on the chart. During playback, the current playback time playTime increases at a certain speed, traversing the playback cache. When the update time of the target is less than playTime, and the update time of the next point is greater than playTime, the target data is drawn on the chart, and the target layer is created through openlayer's webglpointlayer. Then, a target feature is created through openlayer's Feature class, the feature position is set through the latitude and longitude fields, the feature icon style is set through the target type, and the feature id is set to the ship target ID. The ship target drawn in the chart is as follows: Figure 3 shown.
[0075] In an optional embodiment of the present invention, step 163 may further include:
[0076] Step 1632: According to the relationship between the target update time in the target playback data and the current playback time, the track points with the same target identification ID in the target playback data are connected to obtain a track line.
[0077] When the user turns on the trajectory switch, all playback cache data will be traversed to obtain points where the target update time is less than playTime. Points with the same target Id are connected into line data in chronological order, and the data is drawn into a line through the lineString method of openlayer. When the user sets different query duration densities, due to different densities of buffered trajectories, trajectory lines with different sparsity levels will also be drawn. The trajectory line is as Figure 3 shown.
[0078] In an optional embodiment of the present invention, the method for processing maritime target playback data further includes:
[0079] Step 17, when the current playback time moves within the client cache time range, the positions of maritime targets within the chart geographical range change along with the current playback time.
[0080] During the target playback process, when the user drags the time progress bar within the cache time range, that is, playTime>allCacheStartTime and playTime<allCacheEndTime, playTime will change as the user drags, and all targets will be re-rendered.
[0081] In an optional embodiment of the present invention, the method for processing maritime target playback data further includes:
[0082] Step 18, when the client receives a target playback data segment with a preset identifier, determine whether to continue caching data according to the duration of the playback data in the client's full-data cache and the current playback time.
[0083] In the above method of the present invention, when the server finishes pushing data of multiple target playback data segments within the requested cache duration range of the playback data, the server will push data with a preset identifier to the client. The preset identifier is preferably the isOver identifier. After receiving the data with the isOver identifier, the client will determine whether to continue caching data.
[0084] When the difference between the cache end time and the current playback time is less than 2 hours, and the difference between the cache end time and the cache start time of the playback data received by the client is less than 8 hours, that is, playTime>cacheEndTime-2h, and allCacheEndTime-allCacheStartTime is less than 8 hours, then continue caching.
[0085] The setting logic of the request cache duration of the playback data to be cached is cacheStartTime = allCacheEndTime of the last cache, cacheEndTime = Math.min(cacheStartTime+1h,endTime). The calculated request cache duration of the latest playback data is sent to the server through websocket. The server again divides the request cache duration of the playback data into multiple query time periods, and then queries the playback data in the database in turn and sends the queried multiple target playback data segments to the client. The client displays its trajectory and target along with the current playback time.
[0086] In an optional embodiment of the present invention, the method for processing marine target playback data further includes:
[0087] Step 19: when the duration of the playback data in the client's full data cache exceeds a first preset threshold, and the current play time and the time range of the playback data meet a first preset condition, delete part of the playback data in the client's full data cache according to a preset rule.
[0088] In this embodiment, since the time range of the chart ship trajectory data is very wide, the user may need to continuously observe the ship trajectory playback for many days. In this application, the amount of data cached by the client is limited, usually set to 8 hours, that is, the client only caches a maximum of 8 hours of playback data. This setting can be implemented through the timer timing query method, that is, during the client playback process, javascript starts a timer through setInterval, and checks once a second whether a cache needs to be deleted. When the current playback time playTime>allCacheStartTime+1h, and allCacheEndTime-allCacheStartTime is greater than or equal to 8 hours, the cache deletion logic is triggered. Delete the first 5min data of the cache, set the start time of the cache to allCacheStartTime=allCacheStartTime-5min, and repeat the judgment whether to continue caching.
[0089] The above method of the present invention uses the client cache data to draw the ship target and the ship target track during the playback of the chart ship track, updates the target and displays the target track more quickly, and avoids repeated requests for server data. When the user drags the progress bar to fast forward or rewind, the cache can be used to quickly update the target and track, and the target and track can be quickly updated, avoiding playback jams caused by repeated data acquisition.
[0090] like Figure 2As shown, an embodiment of the present invention further provides a method for processing marine target playback data, which is applied to a server, and the method includes:
[0091] Step 21, receiving a playback data push request sent by the client, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data;
[0092] Step 22, querying the playback data in the database according to the push request according to the query duration density, and querying a plurality of target playback data segments; the target position at sea of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data;
[0093] Step 23: Push the multiple target playback data segments to the client, so that the client caches the data of the multiple target playback data segments in a full data cache in chronological order according to the identification of the offshore target.
[0094] In an optional embodiment of the present invention, the method for processing marine target playback data, applied to a server, further includes:
[0095] Step 241, receiving the updated query duration density sent by the client;
[0096] Step 242, based on the updated query duration density, query in the database and push to the client at least one target playback data segment that has been most recently queried, wherein the start time of the at least one target playback data segment that has been most recently queried is the client's current playback time playTime, and the end time is playTime+N, where N is a positive integer.
[0097] In an optional embodiment of the present invention, the method for processing marine target playback data, applied to a server, further includes:
[0098] Step 251, receiving the updated geographic range of the nautical chart sent by the client;
[0099] Step 252: According to the updated geographic range of the nautical chart, query the database and push the latest at least one target playback data segment to the client.
[0100] In an optional embodiment of the present invention, the method for processing marine target playback data further includes:
[0101] Step 26: When the server completes querying the multiple target playback data segments within the requested cache duration of the playback data, the server pushes the target playback data segment with a preset identifier to the client.
[0102] The embodiments of the method for processing playback data of maritime targets applied to the server of the present invention can be understood that all the embodiments of the method for processing playback data of maritime targets applied to the client are applicable to the method for processing playback data of maritime targets applied to the server, and can achieve the same technical effect.
[0103] The above method of the present invention has the following beneficial effects:
[0104] 1. Using the segmented caching mechanism, the server pushes data in segments of 200 seconds, which makes data push faster.
[0105] 2. The client only caches data for one hour at a time, which can reduce the burden on the server to send data and reduce the pressure on client rendering.
[0106] 3. Adopt a cache deletion mechanism. When the cache exceeds 8 hours, the cache deletion logic will be triggered. Only 5 minutes will be deleted each time to prevent performance problems caused by too much cache.
[0107] By caching data on the client, when the user repeatedly plays back the cached data within a certain period of time, the cache can be used to quickly calculate the target position and trajectory data, and the target and trajectory can be quickly displayed without requesting data. In addition, the multiple trajectory point data cached by the client can be used to ensure the continuity of the target movement.
[0108] The embodiment of the present invention further provides a processing device 40 for replaying marine target data, which is applied to a client and includes:
[0109] The sending module 41 is used to send a playback data push request to the server, wherein the push request includes: the geographical range of the nautical chart of the playback data, the query duration density and the request cache duration of the playback data;
[0110] The processing module 42 is used to receive multiple target playback data segments pushed by the server according to the push request, wherein the multiple target playback data segments are multiple target playback data segments queried by the server in the database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density of the preset query time period is less than the requested cache duration of the playback data; according to the identification of the maritime target, the data of the multiple target playback data segments are cached in chronological order into the full data cache.
[0111] Optionally, the processing module is further configured to:
[0112] Sending updated query duration density to the server;
[0113] Receive at least one target playback data segment that has been most recently queried and pushed by the server in the database according to the updated query duration density, wherein the start time of the at least one target playback data segment that has been most recently queried is the current playback time playTime of the client, and the end time is playTime+N, where N is a positive integer.
[0114] Optionally, the processing module is further configured to:
[0115] Sending the updated geographic range of the nautical chart to the server;
[0116] Receive at least one target playback data segment that is most recently found and pushed by the server in the database according to the updated geographic range of the nautical chart.
[0117] Optionally, the processing module is further configured to:
[0118] Determine the playback cache duration;
[0119] According to the playback buffer duration, obtaining target playback data from the full data buffer;
[0120] Play the target playback data.
[0121] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0122] The embodiment of the present invention further provides a processing device 50 for replaying marine target data, which is applied to a server and includes:
[0123] The acquisition module 51 is used to receive a playback data push request sent by a client, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data;
[0124] The processing module 52 is used to query the playback data in the database according to the push request according to the query duration density, and query multiple target playback data segments; the sea target position of the target playback data segment is within the geographical range of the nautical chart, and the query duration density is less than the request cache duration of the playback data; push the multiple target playback data segments to the client, so that the client caches the data of the multiple target playback data segments in chronological order into the full data cache according to the identification of the sea target.
[0125] Optionally, the processing module is further configured to:
[0126] Receiving the updated query duration density sent by the client;
[0127] According to the updated query duration density, at least one target playback data segment newly queried is queried in the database and pushed to the client, wherein the start time of at least one target playback data segment newly queried is the client's current playback time playTime, and the end time is playTime+N, where N is a positive integer.
[0128] Optionally, the processing module is further configured to:
[0129] Receiving the updated geographic range of the nautical chart sent by the client;
[0130] According to the updated geographic range of the nautical chart, at least one target playback data segment that has been most recently queried is queried in the database and pushed to the client.
[0131] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0132] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0133] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0134] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0135] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0138] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0139] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0140] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0141] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing marine target playback data, characterized in that: Applied to a client, the method comprises: Sending a playback data push request to the server, the push request including: the geographical scope of the nautical chart of the playback data, the query duration density and the request cache duration of the playback data; receiving a plurality of target playback data segments pushed by the server according to the push request, wherein the plurality of target playback data segments are multiple target playback data segments queried by the server in a database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data; According to the identification of the marine target, the data of the plurality of target playback data segments are cached in a full data cache in chronological order.
2. The method for processing marine target playback data according to claim 1, characterized in that: Also includes: Sending updated query duration density to the server; Receive at least one target playback data segment that has been most recently queried and pushed by the server in the database according to the updated query duration density, wherein the start time of the at least one target playback data segment that has been most recently queried is the current playback time playTime of the client, and the end time is playTime+N, where N is a positive integer.
3. The method for processing marine target playback data according to claim 1, characterized in that: Also includes: Sending the updated geographic range of the nautical chart to the server; Receive at least one target playback data segment that is most recently found and pushed by the server in the database according to the updated geographic range of the nautical chart.
4. The method for processing marine target playback data according to any one of claims 1 to 3, characterized in that: Also includes: Determine the playback cache duration; According to the playback buffer duration, obtaining target playback data from the full data buffer; Play the target playback data.
5. A method for processing marine target playback data, characterized in that: Applied to the server, the method includes: Receive a playback data push request sent by a client, the push request including: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data; According to the push request, playback data is queried in the database according to the query duration density, and multiple target playback data segments are queried; the target location at sea of the target playback data segment is within the geographic range of the nautical chart, and the query duration density is less than the request cache duration of the playback data; The multiple target playback data segments are pushed to the client, so that the client caches the data of the multiple target playback data segments in a full data cache in chronological order according to the identification of the offshore target.
6. The method for processing marine target playback data according to claim 5, characterized in that: Also includes: Receiving the updated query duration density sent by the client; According to the updated query duration density, at least one target playback data segment newly queried is queried in the database and pushed to the client, wherein the start time of at least one target playback data segment newly queried is the client's current playback time playTime, and the end time is playTime+N, where N is a positive integer.
7. The method for processing marine target playback data according to claim 5, characterized in that: Also includes: Receiving the updated geographic range of the nautical chart sent by the client; According to the updated geographic range of the nautical chart, at least one target playback data segment that has been most recently queried is queried in the database and pushed to the client.
8. A processing device for replaying data of marine targets, characterized in that: Applied to the client, including: A sending module, used to send a playback data push request to the server, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data; A processing module is used to receive multiple target playback data segments pushed by the server according to the push request, wherein the multiple target playback data segments are multiple target playback data segments queried by the server in a database according to the query duration density; the maritime target position of the target playback data segment is within the geographic range of the nautical chart, and the query duration density of the preset query time period is less than the requested cache duration of the playback data; and according to the identification of the maritime target, the data of the multiple target playback data segments are cached in chronological order into the full data cache.
9. A processing device for replaying data of marine targets, characterized in that: Applied to the server, including: An acquisition module, used to receive a playback data push request sent by a client, wherein the push request includes: a chart geographic range of the playback data, a query duration density, and a request cache duration of the playback data; A processing module is used to query the playback data in the database according to the push request according to the query duration density, and query multiple target playback data segments; the sea target position of the target playback data segment is within the geographical range of the nautical chart, and the query duration density is less than the request cache duration of the playback data; push the multiple target playback data segments to the client, so that the client caches the data of the multiple target playback data segments in chronological order into the full data cache according to the identification of the sea target.
10. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Database-based playback method and system, server and client
CN110858223A
Data query method and device
CN112395316A
Data searching method and device, equipment and storage medium
CN113763099A
Marine target trajectory continuous processing method, device and equipment
CN117970313A
System And Method For Ship Inquiry Based On area And Baseline
KR1020170092805A
Cited By
Data query method, data query link system, electronic equipment and storage medium
CN119621738A