[go: up one dir, main page]

CN107798103A - Search method and device of space vector data, readable medium and storage controller - Google Patents

Search method and device of space vector data, readable medium and storage controller Download PDF

Info

Publication number
CN107798103A
CN107798103A CN201711044661.4A CN201711044661A CN107798103A CN 107798103 A CN107798103 A CN 107798103A CN 201711044661 A CN201711044661 A CN 201711044661A CN 107798103 A CN107798103 A CN 107798103A
Authority
CN
China
Prior art keywords
vector data
space vector
attribute information
target
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711044661.4A
Other languages
Chinese (zh)
Inventor
陈建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201711044661.4A priority Critical patent/CN107798103A/en
Publication of CN107798103A publication Critical patent/CN107798103A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device, a readable medium and a storage controller for searching space vector data, wherein the method comprises the following steps: acquiring at least one space vector data, and setting corresponding attribute information for each space vector data; acquiring a search keyword; according to the search keywords, determining target attribute information corresponding to the search keywords from attribute information corresponding to each space vector data; and searching target space vector data from the at least one space vector data according to the determined target attribute information. The scheme can improve the search efficiency of the space vector data.

Description

一种空间矢量数据的搜索方法、装置、可读介质及存储控制器A search method, device, readable medium and storage controller for space vector data

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种空间矢量数据的搜索方法、装置、可读介质及存储控制器。The invention relates to the field of computer technology, in particular to a search method, device, readable medium and storage controller for space vector data.

背景技术Background technique

随着信息技术的发展,各种来源的空间矢量数据的数量日益增加,如何从众多空间矢量数据中快速准确地搜索到目标数据,是当前有待解决的重要问题。With the development of information technology, the number of space vector data from various sources is increasing day by day. How to quickly and accurately search the target data from a large number of space vector data is an important problem to be solved at present.

目前,在对大量空间矢量数据进行搜索时,需要逐个遍历各个空间矢量数据对应的图层,从各个图层中确定出目标数据。At present, when searching a large amount of space vector data, it is necessary to traverse the layers corresponding to each space vector data one by one, and determine the target data from each layer.

由于空间矢量数据的数量较大,通过遍历查找方式对空间矢量数据进行搜索的效率较低。Due to the large amount of space vector data, the efficiency of searching the space vector data by traversal search is low.

发明内容Contents of the invention

本发明实施例提供了一种空间矢量数据的搜索方法、装置、可读介质及存储控制器,能提高空间矢量数据的搜索效率。The embodiment of the present invention provides a space vector data search method, device, readable medium and storage controller, which can improve the space vector data search efficiency.

第一方面,本发明实施例提供了一种空间矢量数据的搜索方法,包括:In a first aspect, an embodiment of the present invention provides a search method for space vector data, including:

获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;Obtain at least one space vector data, and set corresponding attribute information for each space vector data;

获取搜索关键词;Get search keywords;

根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息;According to the search keyword, from the attribute information corresponding to each of the space vector data, determine the target attribute information corresponding to the search keyword;

根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。Searching for object space vector data from the at least one piece of space vector data according to the determined object attribute information.

优选地,Preferably,

在所述为每一个所述空间矢量数据设置对应的属性信息之后,进一步包括:After setting the corresponding attribute information for each of the space vector data, it further includes:

确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;determining a service address corresponding to each of the attribute information, and storing each of the space vector data and the attribute information and service address corresponding to each of the space vector data;

所述根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据,包括:The searching out the target space vector data from the at least one space vector data according to the determined target attribute information includes:

根据所述目标属性信息,确定目标服务地址;Determine the target service address according to the target attribute information;

根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。According to the determined service address, the target space vector data is retrieved from the stored space vector data.

优选地,Preferably,

在所述根据确定出的目标属性信息从所述至少一个空间矢量数据中搜索出目标空间矢量数据之后,进一步包括:After searching out the target space vector data from the at least one space vector data according to the determined target attribute information, it further includes:

确定与所述目标空间矢量数据对应的位置坐标;determining position coordinates corresponding to the target space vector data;

根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。Marking is performed in a preset map template according to the position coordinates, and the marked map template is output.

优选地,Preferably,

在所述根据确定出的目标属性信息从所述至少一个空间矢量数据中搜索出目标空间矢量数据之后,进一步包括:After searching out the target space vector data from the at least one space vector data according to the determined target attribute information, it further includes:

获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;Acquiring at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information;

根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;sorting each of the resource information according to the time information corresponding to each of the resource information;

根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。Outputting the at least one piece of resource information corresponding to the target space vector data according to the sorting result.

第二方面,本发明实施例提供了一种空间矢量数据的搜索装置,包括:设置单元、获取单元和搜索单元;其中,In a second aspect, an embodiment of the present invention provides a search device for space vector data, including: a setting unit, an acquisition unit, and a search unit; wherein,

所述设置单元,用于获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;The setting unit is configured to obtain at least one space vector data, and set corresponding attribute information for each space vector data;

所述获取单元,用于获取搜索关键词;The obtaining unit is used to obtain search keywords;

所述搜索单元,用于根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。The search unit is configured to determine target attribute information corresponding to the search keyword from the attribute information corresponding to each of the space vector data according to the search keyword, and according to the determined target attribute information, Target space vector data is searched from the at least one space vector data.

优选地,Preferably,

所述设置单元,进一步用于确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;The setting unit is further configured to determine a service address corresponding to each of the attribute information, and store each of the space vector data and the attribute information and service address corresponding to each of the space vector data;

所述搜索单元,用于根据所述目标属性信息,确定目标服务地址,并根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。The search unit is configured to determine a target service address according to the target attribute information, and retrieve the target space vector data from each of the stored space vector data according to the determined service address.

优选地,Preferably,

进一步包括:标记单元;其中,Further comprising: marking unit; wherein,

所述标记单元,用于确定与所述目标空间矢量数据对应的位置坐标;根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。The marking unit is configured to determine position coordinates corresponding to the target space vector data; mark in a preset map template according to the position coordinates, and output the marked map template.

优选地,Preferably,

进一步包括:资源输出单元;其中,Further comprising: a resource output unit; wherein,

所述资源输出单元,用于获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。The resource output unit is configured to obtain at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information; according to the time information corresponding to each resource information, each The resource information is sorted; according to the sorting result, the at least one resource information corresponding to the target space vector data is output.

第三方面,本发明实施例提供了一种可读介质,包括执行指令,当存储控制器的处理器执行所述执行指令时,所述存储控制器执行本发明上述任一实施例提供的方法。In a third aspect, an embodiment of the present invention provides a readable medium, including execution instructions, and when the processor of the storage controller executes the execution instructions, the storage controller executes the method provided in any of the above-mentioned embodiments of the present invention .

第四方面,本发明实施例提供了一种存储控制器,包括:处理器、存储器和总线;所述存储器用于存储执行指令,所述处理器与所述存储器通过所述总线连接,当所述存储控制器运行时,所述处理器执行所述存储器存储的所述执行指令,以使所述存储控制器执行本发明上述任一实施例提供的方法。In a fourth aspect, an embodiment of the present invention provides a memory controller, including: a processor, a memory, and a bus; the memory is used to store and execute instructions, and the processor and the memory are connected through the bus. When the storage controller is running, the processor executes the execution instruction stored in the memory, so that the storage controller executes the method provided by any one of the above embodiments of the present invention.

本发明实施例提供了一种空间矢量数据的搜索方法、装置、可读介质及存储控制器,首先为每一个空间矢量数据设置对应的属性信息,在获取到搜索关键词时,从各个属性信息中确定出与搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,搜索出目标空间矢量数据。由此,根据各个空间矢量数据对应的属性信息进行分布式搜索,而无需通过遍历查找方式从各个图层中确定目标空间矢量数据,从而提高了空间矢量数据的搜索效率。Embodiments of the present invention provide a space vector data search method, device, readable medium, and storage controller. First, set corresponding attribute information for each space vector data. Determine the target attribute information corresponding to the search keyword, and search out the target space vector data according to the determined target attribute information. In this way, the distributed search is performed according to the attribute information corresponding to each space vector data, without traversing and searching to determine the target space vector data from each layer, thereby improving the search efficiency of the space vector data.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明一个实施例提供的一种空间矢量数据的搜索方法的流程图;Fig. 1 is a flow chart of a search method for space vector data provided by an embodiment of the present invention;

图2是本发明一个实施例提供的一种空间矢量数据的搜索装置的结构示意图;Fig. 2 is a schematic structural diagram of a search device for space vector data provided by an embodiment of the present invention;

图3是本发明另一个实施例提供的一种空间矢量数据的搜索装置的结构示意图;Fig. 3 is a schematic structural diagram of a search device for space vector data provided by another embodiment of the present invention;

图4是本发明又一个实施例提供的一种空间矢量数据的搜索装置的结构示意图。Fig. 4 is a schematic structural diagram of a search device for space vector data provided by another embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

如图1所示,本发明实施例提供了一种空间矢量数据的搜索方法,该方法可以包括以下步骤:As shown in Figure 1, the embodiment of the present invention provides a search method for space vector data, the method may include the following steps:

步骤101:获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;Step 101: Obtain at least one space vector data, and set corresponding attribute information for each space vector data;

步骤102:获取搜索关键词;Step 102: Obtain search keywords;

步骤103:根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息;Step 103: According to the search keyword, from the attribute information corresponding to each of the space vector data, determine the target attribute information corresponding to the search keyword;

步骤104:根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。Step 104: Search for target space vector data from the at least one space vector data according to the determined target attribute information.

上述实施例中,首先为每一个空间矢量数据设置对应的属性信息,在获取到搜索关键词时,从各个属性信息中确定出与搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,搜索出目标空间矢量数据。由此,根据各个空间矢量数据对应的属性信息进行分布式搜索,而无需通过遍历查找方式从各个图层中确定目标空间矢量数据,从而提高了空间矢量数据的搜索效率。In the above-mentioned embodiment, the corresponding attribute information is firstly set for each space vector data, and when the search keyword is obtained, the target attribute information corresponding to the search keyword is determined from each attribute information, and according to the determined target Attribute information, search out the target space vector data. In this way, the distributed search is performed according to the attribute information corresponding to each space vector data, without traversing and searching to determine the target space vector data from each layer, thereby improving the search efficiency of the space vector data.

本发明一个实施例中,在步骤101之后,可以进一步包括:In one embodiment of the present invention, after step 101, it may further include:

确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;determining a service address corresponding to each of the attribute information, and storing each of the space vector data and the attribute information and service address corresponding to each of the space vector data;

步骤104的具体实施方式,可以包括:The specific implementation manner of step 104 may include:

根据所述目标属性信息,确定目标服务地址;Determine the target service address according to the target attribute information;

根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。According to the determined service address, the target space vector data is retrieved from the stored space vector data.

举例来说,从ArcGIS抽取空间矢量数据到分布式文件系统(Hadoop DistributedFile System,HDFS)中,在抽取过程中对每一个空间矢量数据添加属性信息和关键值,此关键值与该空间矢量数据的服务地址相对应,然后将空间矢量数据及其对应的属性信息和服务地址进行组合存储。存储时,将空间矢量数据的空间属性转换为WKT字符串,同时还可依据空间矢量数据的分类,将各个空间矢量数据划分为卡片。则在搜索时,可采用ElasticSearch自身的属性检索功能,将与搜索关键词对应的属性信息搜索出来,并根据对应的服务地址,调取对应的目空间矢量数据。由此,将空间矢量数据的属性信息和服务地址进行组合存储,搜索时可搜索出与搜索关键词对应的目标服务地址,并根据目标服务地址直接调用目标空间矢量数据,从而进一步提高空间矢量数据的搜索效率。For example, the spatial vector data is extracted from ArcGIS to the distributed file system (Hadoop DistributedFile System, HDFS), and attribute information and key values are added to each spatial vector data during the extraction process. The service address is corresponding, and then the space vector data and its corresponding attribute information are combined and stored with the service address. When storing, the spatial attribute of the space vector data is converted into a WKT character string, and at the same time, each space vector data can be divided into cards according to the classification of the space vector data. When searching, you can use the attribute retrieval function of ElasticSearch to search out the attribute information corresponding to the search keyword, and retrieve the corresponding object space vector data according to the corresponding service address. Therefore, the attribute information and service address of the space vector data are combined and stored, and the target service address corresponding to the search keyword can be searched out when searching, and the target space vector data can be directly invoked according to the target service address, thereby further improving the efficiency of the space vector data. search efficiency.

本发明一个实施例中,在步骤104之后,可以进一步包括:In one embodiment of the present invention, after step 104, may further include:

确定与所述目标空间矢量数据对应的位置坐标;determining position coordinates corresponding to the target space vector data;

根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。Marking is performed in a preset map template according to the position coordinates, and the marked map template is output.

在这里,在检索出目标空间矢量数据之后,调用ArcGIS API for JavaScript的服务接口,将目标空间矢量数据对应的位置坐标在地图模板中进行标记,以将搜索结果的服务加载并在地图上展现和定位,从而便于用户查看,提高用户体验。Here, after retrieving the target space vector data, call the service interface of ArcGIS API for JavaScript, and mark the position coordinates corresponding to the target space vector data in the map template, so as to load the search result service and display it on the map and Positioning is convenient for users to view and improve user experience.

本发明一个实施例中,在步骤104之后,可以进一步包括:In one embodiment of the present invention, after step 104, may further include:

获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;Acquiring at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information;

根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;sorting each of the resource information according to the time information corresponding to each of the resource information;

根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。Outputting the at least one piece of resource information corresponding to the target space vector data according to the sorting result.

在本实施例中,确定出目标空间矢量数据之后,再获取此目标空间矢量数据对应的资源信息,并将对应的资源信息按时间顺序进行排序,再根据排序结果,输出对应的资源信息,从而便于用户查看与目标空间矢量数据想对应的其他相关资源信息,进一步提高用户体验。例如,确定出目标空间矢量数据之后,获取该目标空间矢量数据对应的国土领域的全生命周期的资源信息,包括“批、供、用、补、查”等资源信息,将这些资源信息按时间顺序,即批-供-用-补-查的顺序进行展示,以利于用户查看。In this embodiment, after the target space vector data is determined, the resource information corresponding to the target space vector data is obtained, and the corresponding resource information is sorted in chronological order, and then the corresponding resource information is output according to the sorting result, so that It is convenient for users to view other related resource information corresponding to the target space vector data, further improving user experience. For example, after determining the target space vector data, obtain the resource information of the entire life cycle of the national land domain corresponding to the target space vector data, including resource information such as "approval, supply, use, supplement, and inquiry", and sort these resource information by time Order, that is, the order of batch-supply-use-replenishment-check is displayed, which is convenient for users to view.

如图2所示,本发明实施例提供了一种空间矢量数据的搜索装置,包括:设置单元201、获取单元202和搜索单元203;其中,As shown in FIG. 2 , an embodiment of the present invention provides a search device for space vector data, including: a setting unit 201, an acquisition unit 202, and a search unit 203; wherein,

所述设置单元201,用于获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;The setting unit 201 is configured to acquire at least one space vector data, and set corresponding attribute information for each space vector data;

所述获取单元202,用于获取搜索关键词;The acquiring unit 202 is configured to acquire search keywords;

所述搜索单元203,用于根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。The search unit 203 is configured to determine target attribute information corresponding to the search keyword from the attribute information corresponding to each of the space vector data according to the search keyword, and determine the target attribute information according to the determined target attribute information , searching for target space vector data from the at least one space vector data.

本发明一个实施例中,所述设置单元201,进一步用于确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;In one embodiment of the present invention, the setting unit 201 is further configured to determine the service address corresponding to each of the attribute information, and combine each of the space vector data and the attribute information and service address corresponding to each of the space vector data The address is stored;

所述搜索单元203,用于根据所述目标属性信息,确定目标服务地址,并根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。The search unit 203 is configured to determine a target service address according to the target attribute information, and retrieve the target space vector data from each of the stored space vector data according to the determined service address.

如图3所示,本发明一个实施例中,进一步包括:标记单元301;其中,As shown in FIG. 3 , in an embodiment of the present invention, it further includes: a marking unit 301; wherein,

所述标记单元301,用于确定与所述目标空间矢量数据对应的位置坐标;根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。The marking unit 301 is configured to determine position coordinates corresponding to the target space vector data; mark in a preset map template according to the position coordinates, and output the marked map template.

如图4所示,本发明一个实施例中,进一步包括:资源输出单元401;其中,As shown in FIG. 4, in one embodiment of the present invention, it further includes: a resource output unit 401; wherein,

所述资源输出单元401,用于获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。The resource output unit 401 is configured to obtain at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information; according to the time information corresponding to each resource information, the The resource information is sorted; according to the sorting result, the at least one resource information corresponding to the target space vector data is output.

上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.

本发明实施例还提供了一种可读介质,包括执行指令,当存储控制器的处理器执行所述执行指令时,所述存储控制器执行本发明上述任一实施例提供的方法。An embodiment of the present invention also provides a readable medium, including an execution instruction. When a processor of the storage controller executes the execution instruction, the storage controller executes the method provided in any one of the foregoing embodiments of the present invention.

本发明实施例还提供了一种存储控制器,包括:处理器、存储器和总线;所述存储器用于存储执行指令,所述处理器与所述存储器通过所述总线连接,当所述存储控制器运行时,所述处理器执行所述存储器存储的所述执行指令,以使所述存储控制器执行本发明上述任一实施例提供的方法。The embodiment of the present invention also provides a storage controller, including: a processor, a memory, and a bus; the memory is used to store and execute instructions, the processor and the memory are connected through the bus, and when the storage control When the processor is running, the processor executes the execution instruction stored in the memory, so that the memory controller executes the method provided by any one of the above-mentioned embodiments of the present invention.

综上所述,本发明以上各个实施例至少具有如下有益效果:In summary, the above embodiments of the present invention have at least the following beneficial effects:

1、在本发明实施例中,首先为每一个空间矢量数据设置对应的属性信息,在获取到搜索关键词时,从各个属性信息中确定出与搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,搜索出目标空间矢量数据。由此,根据各个空间矢量数据对应的属性信息进行分布式搜索,而无需通过遍历查找方式从各个图层中确定目标空间矢量数据,从而提高了空间矢量数据的搜索效率。1. In the embodiment of the present invention, first set the corresponding attribute information for each space vector data, and when the search keyword is obtained, determine the target attribute information corresponding to the search keyword from each attribute information, and according to The determined target attribute information is searched for the target space vector data. In this way, the distributed search is performed according to the attribute information corresponding to each space vector data, without traversing and searching to determine the target space vector data from each layer, thereby improving the search efficiency of the space vector data.

2、在本发明实施例中,将空间矢量数据的属性信息和服务地址进行组合存储,搜索时可搜索出与搜索关键词对应的目标服务地址,并根据目标服务地址直接调用目标空间矢量数据,从而进一步提高空间矢量数据的搜索效率。2. In the embodiment of the present invention, the attribute information of the space vector data and the service address are combined and stored, and the target service address corresponding to the search keyword can be searched out during the search, and the target space vector data is directly invoked according to the target service address, Therefore, the search efficiency of space vector data is further improved.

3、在本发明实施例中,在检索出目标空间矢量数据之后,将目标空间矢量数据对应的位置坐标在地图模板中进行标记,以将搜索结果的服务加载并在地图上展现和定位,从而便于用户查看,提高用户体验。3. In the embodiment of the present invention, after the target space vector data is retrieved, the position coordinates corresponding to the target space vector data are marked in the map template, so that the search result service is loaded and displayed and positioned on the map, thereby It is convenient for users to view and improve user experience.

4、在本发明实施例中,确定出目标空间矢量数据之后,再获取此目标空间矢量数据对应的资源信息,并将对应的资源信息按时间顺序进行排序,再根据排序结果,输出对应的资源信息,从而便于用户查看与目标空间矢量数据想对应的其他相关资源信息,进一步提高用户体验。4. In the embodiment of the present invention, after the target space vector data is determined, the resource information corresponding to the target space vector data is obtained, and the corresponding resource information is sorted in chronological order, and then the corresponding resource is output according to the sorting result Information, so that users can view other related resource information corresponding to the target space vector data, and further improve user experience.

需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by program instructions related hardware, and the aforementioned programs can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1.一种空间矢量数据的搜索方法,其特征在于,包括:1. A search method for space vector data, comprising: 获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;Obtain at least one space vector data, and set corresponding attribute information for each space vector data; 还包括:Also includes: 获取搜索关键词;Get search keywords; 根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息;According to the search keyword, from the attribute information corresponding to each of the space vector data, determine the target attribute information corresponding to the search keyword; 根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。Searching for object space vector data from the at least one piece of space vector data according to the determined object attribute information. 2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein, 在所述为每一个所述空间矢量数据设置对应的属性信息之后,进一步包括:After setting the corresponding attribute information for each of the space vector data, it further includes: 确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;determining a service address corresponding to each of the attribute information, and storing each of the space vector data and the attribute information and service address corresponding to each of the space vector data; 所述根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据,包括:The searching out the target space vector data from the at least one space vector data according to the determined target attribute information includes: 根据所述目标属性信息,确定目标服务地址;Determine the target service address according to the target attribute information; 根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。According to the determined service address, the target space vector data is retrieved from the stored space vector data. 3.根据权利要求1所述的方法,其特征在于,3. The method of claim 1, wherein, 在所述根据确定出的目标属性信息从所述至少一个空间矢量数据中搜索出目标空间矢量数据之后,进一步包括:After searching out the target space vector data from the at least one space vector data according to the determined target attribute information, it further includes: 确定与所述目标空间矢量数据对应的位置坐标;determining position coordinates corresponding to the target space vector data; 根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。Marking is performed in a preset map template according to the position coordinates, and the marked map template is output. 4.根据权利要求1所述的方法,其特征在于,4. The method of claim 1, wherein, 在所述根据确定出的目标属性信息从所述至少一个空间矢量数据中搜索出目标空间矢量数据之后,进一步包括:After searching out the target space vector data from the at least one space vector data according to the determined target attribute information, it further includes: 获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;Acquiring at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information; 根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;sorting each of the resource information according to the time information corresponding to each of the resource information; 根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。Outputting the at least one piece of resource information corresponding to the target space vector data according to the sorting result. 5.一种空间矢量数据的搜索装置,其特征在于,包括:设置单元、获取单元和搜索单元;其中,5. A search device for space vector data, comprising: a setting unit, an acquisition unit and a search unit; wherein, 所述设置单元,用于获取至少一个空间矢量数据,并为每一个所述空间矢量数据设置对应的属性信息;The setting unit is configured to obtain at least one space vector data, and set corresponding attribute information for each space vector data; 所述获取单元,用于获取搜索关键词;The obtaining unit is used to obtain search keywords; 所述搜索单元,用于根据所述搜索关键词,从各个所述空间矢量数据对应的属性信息中,确定与所述搜索关键词相对应的目标属性信息,并根据确定出的目标属性信息,从所述至少一个空间矢量数据中搜索出目标空间矢量数据。The search unit is configured to determine target attribute information corresponding to the search keyword from the attribute information corresponding to each of the space vector data according to the search keyword, and according to the determined target attribute information, Target space vector data is searched from the at least one space vector data. 6.根据权利要求5所述的装置,其特征在于,6. The device according to claim 5, characterized in that, 所述设置单元,进一步用于确定每一个所述属性信息对应的服务地址,并将各个所述空间矢量数据以及每个所述空间矢量数据对应的属性信息和服务地址进行存储;The setting unit is further configured to determine a service address corresponding to each of the attribute information, and store each of the space vector data and the attribute information and service address corresponding to each of the space vector data; 所述搜索单元,用于根据所述目标属性信息,确定目标服务地址,并根据确定出的服务地址,从存储的各个所述空间矢量数据中调取所述目标空间矢量数据。The search unit is configured to determine a target service address according to the target attribute information, and retrieve the target space vector data from each of the stored space vector data according to the determined service address. 7.根据权利要求5所述的装置,其特征在于,7. The device of claim 5, wherein: 进一步包括:标记单元;其中,Further comprising: marking unit; wherein, 所述标记单元,用于确定与所述目标空间矢量数据对应的位置坐标;根据所述位置坐标,在预设的地图模板中进行标记,并输出标记后的所述地图模板。The marking unit is configured to determine position coordinates corresponding to the target space vector data; mark in a preset map template according to the position coordinates, and output the marked map template. 8.根据权利要求5所述的装置,其特征在于,8. The device of claim 5, wherein: 进一步包括:资源输出单元;其中,Further comprising: a resource output unit; wherein, 所述资源输出单元,用于获取与所述目标空间矢量数据相对应的至少一个资源信息,以及每一个所述资源信息对应的时间信息;根据各个所述资源信息分别对应的时间信息,将各个所述资源信息进行排序;根据排序结果,输出所述目标空间矢量数据对应的所述至少一个资源信息。The resource output unit is configured to obtain at least one resource information corresponding to the target space vector data, and time information corresponding to each resource information; according to the time information corresponding to each resource information, each The resource information is sorted; according to the sorting result, the at least one resource information corresponding to the target space vector data is output. 9.一种可读介质,包括执行指令,当存储控制器的处理器执行所述执行指令时,所述存储控制器执行权利要求1至4中任一所述的方法。9. A readable medium, comprising execution instructions, and when a processor of the storage controller executes the execution instructions, the storage controller executes the method according to any one of claims 1 to 4. 10.一种存储控制器,包括:处理器、存储器和总线;所述存储器用于存储执行指令,所述处理器与所述存储器通过所述总线连接,当所述存储控制器运行时,所述处理器执行所述存储器存储的所述执行指令,以使所述存储控制器执行权利要求1至4中任一所述的方法。10. A storage controller, comprising: a processor, a memory, and a bus; the memory is used to store and execute instructions, the processor and the memory are connected through the bus, and when the storage controller is running, the The processor executes the execution instructions stored in the memory, so that the storage controller executes the method according to any one of claims 1 to 4.
CN201711044661.4A 2017-10-31 2017-10-31 Search method and device of space vector data, readable medium and storage controller Pending CN107798103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711044661.4A CN107798103A (en) 2017-10-31 2017-10-31 Search method and device of space vector data, readable medium and storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711044661.4A CN107798103A (en) 2017-10-31 2017-10-31 Search method and device of space vector data, readable medium and storage controller

Publications (1)

Publication Number Publication Date
CN107798103A true CN107798103A (en) 2018-03-13

Family

ID=61548693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711044661.4A Pending CN107798103A (en) 2017-10-31 2017-10-31 Search method and device of space vector data, readable medium and storage controller

Country Status (1)

Country Link
CN (1) CN107798103A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920684A (en) * 2018-07-11 2018-11-30 中国科学院地理科学与资源研究所 A kind of scientific and technological resources spatial data reorganization method and system
CN116414935A (en) * 2023-03-24 2023-07-11 山东浪潮新基建科技有限公司 Method for distributed Search space vector data based on Elastic Search

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326159A (en) * 2000-05-31 2001-12-12 三星电子株式会社 Index method for feature vector data space
CN1731394A (en) * 2005-08-18 2006-02-08 上海交通大学 Realization method of urban electronic map system with intelligent query function
US20070112842A1 (en) * 1999-11-02 2007-05-17 Gould Eric J Poly vectoral reverse navigation
CN104239525A (en) * 2014-09-18 2014-12-24 浪潮软件集团有限公司 Distributed storage method based on Internet
CN104750853A (en) * 2015-04-14 2015-07-01 浪潮集团有限公司 Method and device for searching heterogeneous data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070112842A1 (en) * 1999-11-02 2007-05-17 Gould Eric J Poly vectoral reverse navigation
CN1326159A (en) * 2000-05-31 2001-12-12 三星电子株式会社 Index method for feature vector data space
CN1731394A (en) * 2005-08-18 2006-02-08 上海交通大学 Realization method of urban electronic map system with intelligent query function
CN104239525A (en) * 2014-09-18 2014-12-24 浪潮软件集团有限公司 Distributed storage method based on Internet
CN104750853A (en) * 2015-04-14 2015-07-01 浪潮集团有限公司 Method and device for searching heterogeneous data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920684A (en) * 2018-07-11 2018-11-30 中国科学院地理科学与资源研究所 A kind of scientific and technological resources spatial data reorganization method and system
CN108920684B (en) * 2018-07-11 2021-03-23 中国科学院地理科学与资源研究所 Scientific and technological resource space data editing method and system
CN116414935A (en) * 2023-03-24 2023-07-11 山东浪潮新基建科技有限公司 Method for distributed Search space vector data based on Elastic Search

Similar Documents

Publication Publication Date Title
CN109977110B (en) Data cleaning method, device and equipment
US8468146B2 (en) System and method for creating search index on cloud database
US10002143B2 (en) Computer implemented method for storing unlimited amount of data as a mind map in relational database systems
US20140122455A1 (en) Systems and Methods for Intelligent Parallel Searching
CN105808609A (en) Discrimination method and equipment of point-of-information data redundancy
CN104462510B (en) Searching method based on user search intent and device
WO2019161645A1 (en) Shell-based data table extraction method, terminal, device, and storage medium
CN104331446A (en) Memory map-based mass data preprocessing method
US20180144061A1 (en) Edge store designs for graph databases
CN114328632A (en) User data analysis method and device based on bitmap and computer equipment
CN111078776A (en) Data table standardization method, device, equipment and storage medium
CN106970958B (en) A kind of inquiry of stream file and storage method and device
TWI673617B (en) Method and device for collecting user background information
CN109635260B (en) Method, apparatus, device and storage medium for generating article template
CN107908794A (en) A kind of method of data mining, system, equipment and computer-readable recording medium
WO2020108345A1 (en) Database index and database query processing method, apparatus, and device
CN105653635A (en) Database management method and apparatus
CN105760533A (en) A photo management method and device
CN108304585A (en) A kind of result data choosing method and relevant apparatus based on spatial key search
WO2022170047A1 (en) Managing custom attributes for domain objects defined within microservices
CN107798103A (en) Search method and device of space vector data, readable medium and storage controller
WO2018059430A1 (en) Database searching
CN106997354A (en) A kind of POI data search method and device
CN107783732A (en) A kind of data read-write method, system, equipment and computer-readable storage medium
CN112069273A (en) Classification method, device, electronic device and storage medium of address text

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313