WO2023185159A1 - Method and apparatus for determining spatial position relationship, and electronic device - Google Patents

Method and apparatus for determining spatial position relationship, and electronic device Download PDF

Info

Publication number
WO2023185159A1
WO2023185159A1 PCT/CN2022/143061 CN2022143061W WO2023185159A1 WO 2023185159 A1 WO2023185159 A1 WO 2023185159A1 CN 2022143061 W CN2022143061 W CN 2022143061W WO 2023185159 A1 WO2023185159 A1 WO 2023185159A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
list
data
surface data
block coding
Prior art date
Application number
PCT/CN2022/143061
Other languages
French (fr)
Chinese (zh)
Inventor
徐鹏飞
周轶凡
崔晓峰
王波
周文明
Original Assignee
杭州数梦工场科技有限公司
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 杭州数梦工场科技有限公司 filed Critical 杭州数梦工场科技有限公司
Publication of WO2023185159A1 publication Critical patent/WO2023185159A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9014Indexing; Data structures therefor; Storage structures hash tables

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)
  • Software Systems (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Analysis (AREA)

Abstract

The present application relates to the technical field of big data. Provided are a method and apparatus for determining a spatial position relationship, and an electronic device. The method comprises: acquiring a plane data list, wherein the plane data list comprises plane data of at least two plane shapes; for each piece of plane data, determining the number of blocks corresponding to the plane data and a block code list corresponding to the plane data under the number of blocks; according to the block code lists corresponding to at least two pieces of plane data, determining a data comparison relationship between the at least two pieces of plane data; and according to the at least two pieces of plane data and the data comparison relationship, determining a spatial position relationship between the at least two plane shapes. In this way, comparison of irrelevant plane data, i.e. two pieces of plane data without a data comparison relationship, is avoided, thereby reducing the number of comparisons, reducing the calculation complexity and improving the calculation efficiency.

Description

空间位置关系的确定方法、装置及电子设备Method, device and electronic equipment for determining spatial position relationship
相关申请的交叉引用Cross-references to related applications
本申请基于2022年3月30日提交的发明名称为“空间位置关系的测量方法、装置及电子设备”的中国专利申请CN202210333934.1,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本申请。This application is based on the Chinese patent application CN202210333934.1 with the invention title "Measurement method, device and electronic equipment of spatial position relationship" submitted on March 30, 2022, and claims the priority of this patent application, which is disclosed by reference All contents are incorporated into this application.
技术领域Technical field
本申请涉及大数据技术领域,具体涉及地理数据信息技术领域,尤其涉及一种空间位置关系的确定方法、装置及电子设备。The present application relates to the field of big data technology, specifically to the field of geographical data information technology, and in particular to a method, device and electronic equipment for determining spatial location relationships.
背景技术Background technique
相关技术中,在空间数据的应用场景中,需要先对空间数据进行治理,通过比较空间数据之间的位置关系,比如两个建筑物轮廓形状是否存在重叠关系,获取治理后的空间数据。由于位置关系比较的计算是空间数据的两两计算,在计算的空间数据量较大时,计算复杂度较大,计算性能差,效率低。In related technologies, in the application scenario of spatial data, the spatial data needs to be cured first, and the cured spatial data is obtained by comparing the positional relationship between the spatial data, such as whether there is an overlapping relationship in the outline shapes of two buildings. Since the calculation of positional relationship comparison is a pairwise calculation of spatial data, when the amount of spatial data to be calculated is large, the calculation complexity is large, the calculation performance is poor, and the efficiency is low.
发明内容Contents of the invention
本申请的目的旨在至少在一定程度上解决上述技术问题之一。The purpose of this application is to solve one of the above technical problems, at least to a certain extent.
为此,本申请实施例提出了一种空间位置关系的确定方法、装置及电子设备,通过获取面数据列表,确定与面数据对应的区块数量及区块数量下面数据 对应的区块编码列表,进一步确定至少两个面数据之间的数据对比关系,根据数据比对关系确定需要比对的面数据,进而进行比对处理确定至少两个面形状之间的空间位置关系,从而避免对不相关的,即没有数据比对关系的两个面数据进行比对,减少比对次数,从而降低计算复杂度,提高计算效率。To this end, embodiments of the present application propose a method, device and electronic device for determining spatial position relationships. By obtaining the surface data list, the number of blocks corresponding to the surface data and the block coding list corresponding to the data below the block number are determined. , further determine the data comparison relationship between at least two surface data, determine the surface data that needs to be compared according to the data comparison relationship, and then perform comparison processing to determine the spatial position relationship between at least two surface shapes, thereby avoiding inconsistency. Relevant, that is, comparing two surface data with no data comparison relationship, reducing the number of comparisons, thereby reducing computational complexity and improving computational efficiency.
本申请第一方面实施例提出了一种空间位置关系的确定方法,包括:获取面数据列表,其中,所述面数据列表中包括:至少两个面形状的面数据;针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表;根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系;根据至少两个所述面数据以及所述数据比对关系,确定至少两个所述面形状之间的空间位置关系。The first embodiment of the present application proposes a method for determining a spatial position relationship, which includes: obtaining a surface data list, wherein the surface data list includes: surface data of at least two surface shapes; for each surface data, determine the number of blocks corresponding to the surface data, and the block coding list corresponding to the surface data under the block number; determine at least two block coding lists corresponding to the surface data according to at least two and a data comparison relationship between at least two of the surface data; and determining a spatial position relationship between at least two of the surface shapes based on at least two of the surface data and the data comparison relationship.
在一示例性实施例中,所述针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表,包括:针对每个所述面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下所述面数据对应的候选区块编码列表;从至少一个所述候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。In an exemplary embodiment, for each of the surface data, determining the number of blocks corresponding to the surface data and the block coding list corresponding to the surface data under the block number include: For each of the surface data, determine the candidate block coding list corresponding to the surface data under each block coding length according to the coding length of each block in the block coding length list; from at least one of the candidate block coding lists Select the number of candidate blocks that meet the block constraint conditions from the number of candidate blocks; select the candidate with the longest candidate block coding length from at least one candidate block coding list corresponding to the number of candidate blocks that meet the block constraint conditions. Block coding list, as the block coding list corresponding to the surface data.
在一示例性实施例中,所述针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表,包括:确定区块编码长度列表,其中,所述区块编码长度列表中的各个区块编码长度升序排列;针对每个所述面数据,依次针对所述区块编码长度列表中的每个区块编码长度,按照所述区块编码长度,确定所述面数据对应的候选区块编码列表; 在所述候选区块编码列表的候选区块数量不满足区块约束条件时,获取所述区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表的候选区块数量满足所述区块约束条件;从满足所述区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。In an exemplary embodiment, for each of the surface data, determining the number of blocks corresponding to the surface data and the block coding list corresponding to the surface data under the block number include: Determine a block coding length list, wherein the block coding lengths in the block coding length list are arranged in ascending order; for each of the surface data, each block coding in the block coding length list is sequentially Length, according to the block coding length, determine the candidate block coding list corresponding to the surface data; when the number of candidate blocks in the candidate block coding list does not meet the block constraint conditions, obtain the block coding The next block encoding length in the length list is determined until the number of candidate blocks in the obtained candidate block encoding list satisfies the block constraint condition; from at least one corresponding to the number of candidate blocks that satisfy the block constraint condition Among the candidate block coding lists, the candidate block coding list with the longest candidate block coding length is selected as the block coding list corresponding to the surface data.
在一示例性实施例中,所述区块约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值。In an exemplary embodiment, the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold.
在一示例性实施例中,所述区块约束条件包括:第一约束条件和第二约束条件;其中,所述第一约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值;所述第二约束条件为,从满足所述第一约束条件的至少一个候选区块数量中取最大数量。In an exemplary embodiment, the block constraint conditions include: a first constraint condition and a second constraint condition; wherein the first constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the The number of candidate blocks is less than a second quantity threshold; the second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint.
在一示例性实施例中,所述根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系,包括:对至少两个所述面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系。In an exemplary embodiment, determining the data comparison relationship between at least two of the surface data based on the block coding lists corresponding to the at least two of the surface data includes: comparing at least two of the surface data. The block coding list corresponding to the data is integrated and deduplicated to obtain a full block coding list; based on the full block coding list and the block coding lists corresponding to at least two of the surface data, at least two of the surface data are determined. Data comparison relationship between data.
在一示例性实施例中,所述根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系,包括:针对所述全量区块编码列表中的每个待处理区块编码,获取所述待处理区块编码对应的第一区块编码,其中,所述第一区块编码为所述待处理区块编码的前缀;根据所述待处理区块编码以及所述第一区块编码,确定面数据集合,其中,所述面数据集合中的面数据对应的区块编码列表中包括所述待处理区块编码或者所述第一区块编码;确定所述面数据集合中任意两个面数据之间存在 数据比对关系。In an exemplary embodiment, determining a data comparison relationship between at least two of the surface data based on the full block coding list and the block coding lists corresponding to at least two of the surface data includes: : For each block code to be processed in the full block code list, obtain the first block code corresponding to the block code to be processed, wherein the first block code is the area to be processed. The prefix of the block code; according to the block code to be processed and the first block code, a surface data set is determined, wherein the block code list corresponding to the surface data in the surface data set includes the block code list to be processed Block coding or the first block coding; determining that there is a data comparison relationship between any two face data in the face data set.
本申请实施例的空间位置关系的确定方法,通过获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据;针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表;根据至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系;根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系,从而降低计算复杂度,提高计算效率。The method for determining the spatial position relationship in the embodiment of the present application obtains a surface data list, where the surface data list includes: surface data of at least two surface shapes; for each surface data, the number of blocks corresponding to the surface data is determined. , and the block coding list corresponding to the data below the number of blocks; determine the data comparison relationship between at least two surface data according to the block coding list corresponding to at least two surface data; determine the data comparison relationship between at least two surface data according to at least two surface data and the data comparison For the relationship, the spatial position relationship between at least two surface shapes is determined, thereby reducing the computational complexity and improving the computational efficiency.
本申请第二方面实施例提出了一种空间位置关系的确定装置,包括:获取模块,设置为获取面数据列表,其中,所述面数据列表中包括:至少两个面形状的面数据;第一确定模块,设置为针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表;第二确定模块,设置为根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系;第三确定模块,设置为根据至少两个所述面数据以及所述数据比对关系,确定至少两个所述面形状之间的空间位置关系。The second embodiment of the present application proposes a device for determining a spatial position relationship, including: an acquisition module configured to obtain a surface data list, wherein the surface data list includes: surface data of at least two surface shapes; A determination module, configured to determine, for each surface data, the number of blocks corresponding to the surface data, and a block coding list corresponding to the surface data under the block number; a second determination module, configured To determine the data comparison relationship between at least two of the surface data according to the block coding lists corresponding to the at least two of the surface data; a third determination module is configured to determine the data comparison relationship between the at least two of the surface data and the The data comparison relationship determines the spatial positional relationship between at least two of the surface shapes.
在一示例性实施例中,所述第一确定模块具体设置为,针对每个所述面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下所述面数据对应的候选区块编码列表;从至少一个所述候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。In an exemplary embodiment, the first determination module is specifically configured to, for each surface data, determine the corresponding surface data corresponding to each block coding length according to the coding length of each block in the block coding length list. candidate block coding list; select the number of candidate blocks that satisfy the block constraint conditions from the number of candidate blocks in at least one of the candidate block coding lists; select at least one candidate block number corresponding to the number of candidate blocks that satisfy the block constraint conditions Among the candidate block coding lists, the candidate block coding list with the longest candidate block coding length is selected as the block coding list corresponding to the surface data.
在一示例性实施例中,所述第一确定模块具体还设置为,确定区块编码长度列表,其中,所述区块编码长度列表中的各个区块编码长度升序排列;针对 每个所述面数据,依次针对所述区块编码长度列表中的每个区块编码长度,按照所述区块编码长度,确定所述面数据对应的候选区块编码列表;在所述候选区块编码列表的候选区块数量不满足区块约束条件时,获取所述区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表的候选区块数量满足所述区块约束条件;从满足所述区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。In an exemplary embodiment, the first determination module is specifically configured to determine a block coding length list, wherein the block coding lengths in the block coding length list are arranged in ascending order; for each of the Surface data, for each block coding length in the block coding length list, determine the candidate block coding list corresponding to the surface data according to the block coding length; in the candidate block coding list When the number of candidate blocks does not meet the block constraint, the next block coding length in the block coding length list is obtained until it is determined that the number of candidate blocks in the obtained candidate block coding list satisfies the block constraint. Condition: From at least one candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint condition, select the candidate block coding list with the longest candidate block coding length as the area corresponding to the surface data List of block encodings.
在一示例性实施例中,所述区块约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值。In an exemplary embodiment, the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold.
在一示例性实施例中,所述区块约束条件包括:第一约束条件和第二约束条件;其中,所述第一约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值;所述第二约束条件为,从满足所述第一约束条件的至少一个候选区块数量中取最大数量。In an exemplary embodiment, the block constraint conditions include: a first constraint condition and a second constraint condition; wherein the first constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the The number of candidate blocks is less than a second quantity threshold; the second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint.
在一示例性实施例中,所述第二数据模块,包括:处理单元和确定单元;所述处理单元,设置为对至少两个所述面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;所述确定单元,设置为根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系。In an exemplary embodiment, the second data module includes: a processing unit and a determination unit; the processing unit is configured to perform integrated deduplication processing on at least two block coding lists corresponding to the surface data, Obtain a full block encoding list; the determination unit is configured to determine a data ratio between at least two of the surface data based on the full block encoding list and the block encoding lists corresponding to at least two of the surface data. Right relationship.
在一示例性实施例中,所述确定单元具体设置为,针对所述全量区块编码列表中的每个待处理区块编码,获取所述待处理区块编码对应的第一区块编码,其中,所述第一区块编码为所述待处理区块编码的前缀;根据所述待处理区块编码以及所述第一区块编码,确定面数据集合,其中,所述面数据集合中的面数据对应的区块编码列表中包括所述待处理区块编码或者所述第一区块 编码;确定所述面数据集合中任意两个面数据之间存在数据比对关系。In an exemplary embodiment, the determining unit is specifically configured to, for each block code to be processed in the full block code list, obtain the first block code corresponding to the block code to be processed, Wherein, the first block code is the prefix of the block code to be processed; according to the block code to be processed and the first block code, a face data set is determined, wherein in the face data set The block code list corresponding to the surface data includes the block code to be processed or the first block code; it is determined that there is a data comparison relationship between any two surface data in the surface data set.
本申请实施例的空间位置关系的确定装置,通过获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据;针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表;根据至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系;根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系,从而降低计算复杂度,提高计算效率。The device for determining the spatial position relationship in the embodiment of the present application obtains a surface data list, where the surface data list includes: surface data of at least two surface shapes; for each surface data, the number of blocks corresponding to the surface data is determined. , and the block coding list corresponding to the data below the number of blocks; determine the data comparison relationship between at least two surface data according to the block coding list corresponding to at least two surface data; determine the data comparison relationship between at least two surface data according to at least two surface data and the data comparison For the relationship, the spatial position relationship between at least two surface shapes is determined, thereby reducing the computational complexity and improving the computational efficiency.
本申请第三方面实施例提出了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面所述的空间位置关系的确定方法。The third embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the first aspect is implemented. The method for determining the spatial position relationship.
本申请第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的空间位置关系的确定方法。The fourth embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for determining the spatial position relationship as described in the first aspect is implemented.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本申请实施例提供的一种空间位置关系的确定方法的流程示意图;Figure 1 is a schematic flowchart of a method for determining spatial position relationships provided by an embodiment of the present application;
图2为本申请实施例提供的另一种空间位置关系的确定方法的流程示意图;Figure 2 is a schematic flowchart of another method for determining spatial position relationships provided by an embodiment of the present application;
图3为根据本申请一个实施例的一种空间位置关系的确定装置的结构示 意图;Figure 3 is a schematic structural diagram of a device for determining a spatial position relationship according to an embodiment of the present application;
图4为根据本申请一个实施例的电子设备的结构示意图。Figure 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present application, but should not be construed as limiting the present application.
相关技术中,在空间数据的应用场景中,需要先对空间数据进行治理,通过比较空间数据之间的位置关系,比如两个建筑物轮廓形状是否存在重叠关系,获取治理后的空间数据,由于位置关系比较的计算是空间数据的两两计算,在计算的空间数据量较大时,计算复杂度较大,计算性能差,效率低。In related technologies, in the application scenario of spatial data, the spatial data needs to be cured first. By comparing the positional relationship between the spatial data, such as whether there is an overlapping relationship in the outline shapes of two buildings, the cured spatial data is obtained. Since The calculation of positional relationship comparison is a pairwise calculation of spatial data. When the amount of spatial data to be calculated is large, the calculation complexity is large, the calculation performance is poor, and the efficiency is low.
针对上述问题,本申请实施例提出一种空间位置关系的确定方法、装置及电子设备。In response to the above problems, embodiments of the present application propose a method, device and electronic equipment for determining spatial position relationships.
下面结合图1,对本申请提供的空间位置关系的确定方法进行详细说明。The method for determining the spatial position relationship provided by this application will be described in detail below with reference to Figure 1 .
图1为本申请实施例提供的一种空间位置关系的确定方法的流程示意图。Figure 1 is a schematic flowchart of a method for determining spatial position relationships provided by an embodiment of the present application.
本申请实施例的执行主体为本申请提供的空间位置关系的确定装置。本申请中的空间位置关系的确定装置可应用于电子设备中,以执行空间位置关系的测量功能。或者,该空间位置关系的确定装置可以配置在电子设备的应用中,以使该应用可以执行空间位置关系的测量功能。The execution subject of the embodiment of the present application is the device for determining the spatial position relationship provided by the present application. The device for determining the spatial position relationship in this application can be applied to electronic equipment to perform the measurement function of the spatial position relationship. Alternatively, the device for determining the spatial position relationship can be configured in an application of the electronic device, so that the application can perform the measurement function of the spatial position relationship.
其中,电子设备可以为任一具有计算能力的设备,该设备或者该设备中的应用能够执行空间位置关系的测量功能。其中,具有计算能力的设备例如可以为个人电脑(Personal Computer,简称PC)、移动终端、服务器等,移动终 端例如可以为车载设备、手机、平板电脑、个人数字助理、穿戴式设备等具有各种操作系统、触摸屏和/或显示屏的硬件设备。The electronic device can be any device with computing capabilities, and the device or the application in the device can perform the measurement function of spatial position relationships. Among them, devices with computing capabilities can be, for example, personal computers (PCs for short), mobile terminals, servers, etc., and mobile terminals can be, for example, vehicle-mounted equipment, mobile phones, tablet computers, personal digital assistants, wearable devices, etc. with various Operating system, touch screen and/or display hardware device.
如图1所示,该空间位置关系的确定方法包括以下步骤:As shown in Figure 1, the method for determining the spatial position relationship includes the following steps:
步骤101,获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据。Step 101: Obtain a surface data list, where the surface data list includes: surface data of at least two surface shapes.
本申请实施例中,面形状指的是空间物体的轮廓形状等。轮廓形状,例如可以为多边形,不规则形状等。其中,面形状对应的面数据,可以为空间物体的轮廓形状采用多边形矢量进行表示得到的数据。In the embodiment of this application, the surface shape refers to the outline shape of a spatial object, etc. The outline shape can be, for example, a polygon, an irregular shape, etc. Among them, the surface data corresponding to the surface shape can be data obtained by expressing the outline shape of the spatial object using a polygon vector.
步骤102,针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表。Step 102: For each surface data, determine the number of blocks corresponding to the surface data and the block coding list corresponding to the data below the block number.
在本申请实施例中,在一种示例中,空间位置关系的确定装置执行步骤102的过程例如可以为,针对每个面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下面数据对应的候选区块编码列表;从至少一个候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为面数据对应的区块编码列表。In the embodiment of the present application, in one example, the process of performing step 102 by the device for determining the spatial position relationship may be, for example, for each surface data, determining each block according to the coding length of each block in the block coding length list. The candidate block coding list corresponding to the data below the coding length; select the number of candidate blocks that meet the block constraint conditions from the number of candidate blocks in at least one candidate block coding list; select the number of candidate blocks that meet the block constraint conditions corresponding to From at least one candidate block coding list, the candidate block coding list with the longest candidate block coding length is selected as the block coding list corresponding to the surface data.
在本申请实施例中,在另一种示例中,空间位置关系的确定装置执行步骤102的过程例如还可以为,确定区块编码长度列表,其中,区块编码长度列表中的各个区块编码长度升序排列;针对每个面数据,依次针对区块编码长度列表中的每个区块编码长度,按照区块编码长度,确定面数据对应的候选区块编码列表;在候选区块编码列表的候选区块数量不满足区块约束条件时,获取区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表 的候选区块数量满足区块约束条件;从满足区块约束条件的候选区块数量对应的候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为面数据对应的区块编码列表。In the embodiment of the present application, in another example, the process of step 102 performed by the device for determining the spatial position relationship may also be, for example, determining a block code length list, where each block code in the block code length list Arranged in ascending order of length; for each surface data, for each block coding length in the block coding length list, determine the candidate block coding list corresponding to the surface data according to the block coding length; in the candidate block coding list When the number of candidate blocks does not meet the block constraint, the next block coding length in the block coding length list is obtained until it is determined that the number of candidate blocks in the obtained candidate block coding list satisfies the block constraint; From the candidate block coding list corresponding to the number of candidate blocks of the block constraint, the candidate block coding list with the longest candidate block coding length is selected as the block coding list corresponding to the surface data.
其中,针对一个面数据,可能在至少两个区块编码长度上,确定得到的候选区块编码列表中,候选区块数量是相同的。从满足区块约束条件的候选区块数量对应的候选区块编码列表,选择候选区块编码长度最长的候选区块编码列表,作为面数据对应的区块编码列表。Wherein, for a piece of surface data, it may be determined that the number of candidate blocks in the obtained candidate block coding list is the same on at least two block coding lengths. From the candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint, select the candidate block coding list with the longest candidate block coding length as the block coding list corresponding to the surface data.
本申请实施例中,按照区块编码长度列表中的区块编码长度,确定面数据对应的候选区块编码列表,在候选区块编码列表的候选区块数量,不满足区块约束条件时,获取下一个区块编码长度,继续确定候选区块编码列表,直至候选区块编码列表的候选区块数量满足区块约束条件,将该候选区块数量对应的候选区块编码列表确定为区块编码列表,无需获取每一个区块编码长度,就可以确定区块编码列表,减少计算量,提高计算效率。In the embodiment of this application, the candidate block coding list corresponding to the surface data is determined according to the block coding length in the block coding length list. When the number of candidate blocks in the candidate block coding list does not meet the block constraint conditions, Obtain the next block coding length, continue to determine the candidate block coding list, until the number of candidate blocks in the candidate block coding list meets the block constraints, and determine the candidate block coding list corresponding to the number of candidate blocks as a block Coding list, you can determine the block coding list without obtaining the coding length of each block, reducing the amount of calculation and improving calculation efficiency.
需要说明的是,地理编码Geohash是一种地址编码方式,能够把二维的空间经纬度数据编码成一维的字符串。每个字符串代表一个特定的矩形,在该矩形范围内的所有坐标都共用这个字符串。字符串越长精度越高,对应的矩形范围越小。对一个地理坐标编码时,按照初始区间范围纬度[-90,90]和经度[-180,180],计算目标经度和纬度分别落在左区间还是右区间。落在左区间则取0,右区间则取1。然后,对上一步得到的区间继续按照此方法对半查找,分别得到经度和纬度对应的二进制编码。根据“偶数位放经度,奇数位放纬度”的规则,得到一个新的二进制串。最后,根据base32的对照表,将二进制串翻译成字符串,即得到地理坐标对应的GeoHash字符串。其中,区块为一个地理编码代表的矩形所限定的位置区域。It should be noted that geocoding Geohash is an address encoding method that can encode two-dimensional spatial longitude and latitude data into one-dimensional strings. Each string represents a specific rectangle, and all coordinates within that rectangle share this string. The longer the string, the higher the precision, and the smaller the corresponding rectangular range. When encoding a geographical coordinate, according to the initial interval range of latitude [-90, 90] and longitude [-180, 180], calculate whether the target longitude and latitude fall in the left interval or the right interval respectively. If it falls in the left interval, it takes 0, and if it falls in the right interval, it takes 1. Then, continue to search in half according to this method for the interval obtained in the previous step, and obtain the binary codes corresponding to the longitude and latitude respectively. According to the rule of "put longitude in even-numbered bits and latitude in odd-numbered bits", a new binary string is obtained. Finally, according to the base32 comparison table, the binary string is translated into a string, that is, the GeoHash string corresponding to the geographical coordinates is obtained. Among them, the block is a location area limited by a rectangle represented by a geocode.
可以理解,区块编码长度越大精度越高,同时对应的计算开销越大,所以为了兼顾精度和计算开销,可以预设对应的区块编码长度范围,通常该长度范围可以为连续的长度值,包含多个区块编码长度,比如区块编码长度为3~7。此外,预设的区块编码长度范围可以是用户通过终端设备的交互页面来设定的,也可以是直接在程序中设定的,而且区块编码长度范围可以是设定之后一成不变的,也可以是根据实际应用场景而自行调整的范围值,本申请对此不作限定。It can be understood that the larger the block coding length, the higher the accuracy, and at the same time the greater the corresponding calculation overhead. Therefore, in order to balance accuracy and calculation overhead, the corresponding block coding length range can be preset. Usually, the length range can be a continuous length value. , including multiple block coding lengths, for example, the block coding length is 3 to 7. In addition, the preset block coding length range can be set by the user through the interactive page of the terminal device, or can be set directly in the program, and the block coding length range can be set unchanged, or It can be a range value that is adjusted according to the actual application scenario, and this application does not limit this.
其中,在一种示例中,区块约束条件为,候选区块数量大于第一数量阈值,且候选区块数量小于第二数量阈值。其中,根据该约束条件选择的满足区块约束条件的候选区块数量为多个。In one example, the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold. Among them, the number of candidate blocks selected according to the constraint condition that satisfies the block constraint condition is multiple.
在另一种示例中,区块约束条件包括:第一约束条件和第二约束条件;其中,第一约束条件为,候选区块数量大于第一数量阈值,且候选区块数量小于第二数量阈值;第二约束条件为,从满足第一约束条件的至少一个候选区块数量中取最大数量。根据该区块约束条件,能够确定候选区块的最大数量,得到精度更高的区块编码列表,进而确定面形状之间的空间位置关系,降低计算复杂度,提高计算效率。In another example, the block constraint conditions include: a first constraint condition and a second constraint condition; wherein the first constraint condition is that the number of candidate blocks is greater than a first number threshold, and the number of candidate blocks is less than the second number Threshold; the second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint. According to the block constraint, the maximum number of candidate blocks can be determined, a block coding list with higher accuracy can be obtained, and the spatial position relationship between surface shapes can be determined, thereby reducing computational complexity and improving computational efficiency.
其中,区块数量的范围通常在[5,30]之间,5为第一数量阈值,30为第二数量阈值。区块编码列表可以完整的覆盖面数据。Among them, the range of the number of blocks is usually between [5, 30], 5 is the first quantity threshold, and 30 is the second quantity threshold. Block code lists provide complete coverage data.
步骤103,根据至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系。Step 103: Determine the data comparison relationship between at least two surface data according to the block coding lists corresponding to the at least two surface data.
本申请实施例中,对至少两个面数据对应的区块编码列表进行整合,并对区块编码列表中的重复数据进行去重处理,得到无重复的全量区块编码列表,根据全量区块编码列表及至少两个面数据对应的区块编码列表,确定数据比对 关系。In the embodiment of the present application, the block coding lists corresponding to at least two surface data are integrated, and the duplicate data in the block coding list is deduplicated to obtain a full block coding list without duplication. According to the full block coding list The coding list and the block coding list corresponding to at least two surface data determine the data comparison relationship.
步骤104,根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系。Step 104: Determine the spatial position relationship between at least two surface shapes based on the at least two surface data and the data comparison relationship.
其中,空间位置关系例如可以为,两个建筑物轮廓形状是否存在重叠等。The spatial position relationship may be, for example, whether the outline shapes of two buildings overlap, etc.
本申请实施例提供的空间位置关系的确定方法,通过获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据;针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表;根据至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系;根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系,从而降低计算复杂度,提高计算效率。The method for determining the spatial position relationship provided by the embodiment of the present application is to obtain a surface data list, where the surface data list includes: surface data of at least two surface shapes; for each surface data, determine the block corresponding to the surface data quantity, and the block coding list corresponding to the data under the block number; determine the data comparison relationship between at least two surface data based on the block coding lists corresponding to at least two surface data; determine the data comparison relationship between at least two surface data according to at least two surface data and data The comparison relationship determines the spatial positional relationship between at least two surface shapes, thereby reducing computational complexity and improving computational efficiency.
为了确定至少两个面数据之间的数据比对关系,实现空间位置关系的测量,如图2所示,对本申请提供的空间位置关系的确定方法进行进一步说明。In order to determine the data comparison relationship between at least two surface data and implement the measurement of the spatial position relationship, as shown in Figure 2, the method for determining the spatial position relationship provided by this application is further explained.
图2为本申请实施例提供的另一种空间位置关系的确定方法的流程示意图。如图2所示,上述方法可以包括以下步骤:FIG. 2 is a schematic flowchart of another method for determining spatial position relationships provided by an embodiment of the present application. As shown in Figure 2, the above method may include the following steps:
步骤201,获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据。Step 201: Obtain a surface data list, where the surface data list includes: surface data of at least two surface shapes.
步骤202,针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表。Step 202: For each surface data, determine the number of blocks corresponding to the surface data and the block coding list corresponding to the data below the block number.
步骤203,对至少两个面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表。Step 203: Perform integration and deduplication processing on the block coding lists corresponding to at least two surface data to obtain a full block coding list.
本申请实施例中,汇总至少两个面数据对应的区块编码列表的区块数量,去除重复的区块,得到无重复的全量区块编码列表,减少计算量,提高计算效率。In the embodiment of the present application, the number of blocks in the block coding list corresponding to at least two surface data is summarized, and duplicate blocks are removed to obtain a full block coding list without duplication, thereby reducing the amount of calculation and improving calculation efficiency.
步骤204,根据全量区块编码列表以及至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系。Step 204: Determine a data comparison relationship between at least two surface data based on the full block coding list and the block coding lists corresponding to at least two surface data.
本申请实施例中,空间位置关系的确定装置执行步骤204的过程例如可以为,针对全量区块编码列表中的每个待处理区块编码,获取待处理区块编码对应的第一区块编码,其中,第一区块编码为待处理区块编码的前缀;根据待处理区块编码以及第一区块编码,确定面数据集合,其中,面数据集合中的面数据对应的区块编码列表中包括待处理区块编码或者第一区块编码;确定面数据集合中任意两个面数据之间存在数据比对关系。In the embodiment of the present application, the process of step 204 performed by the device for determining the spatial position relationship may be, for example, obtaining the first block code corresponding to the block code to be processed for each block code to be processed in the full block code list. , where the first block code is the prefix of the block code to be processed; according to the block code to be processed and the first block code, the surface data set is determined, where the block code list corresponding to the surface data in the surface data set is includes the block code to be processed or the first block code; confirm that there is a data comparison relationship between any two face data in the face data set.
本申请实施例中,在一种示例中,确定待处理区块编码对应的第二面数据,以及第一区块编码对应的第一面数据;对第一面数据与第二面数据进行数据比对计算,确定存在数据比对关系。在另一种示例中,确定待处理区块编码对应的第二面数据,对第二面数据与其他面数据进行数据比对计算,确定存在数据比对关系。In the embodiment of the present application, in one example, the second side data corresponding to the block code to be processed and the first side data corresponding to the first block code are determined; the first side data and the second side data are processed. Comparison calculation to confirm the existence of data comparison relationship. In another example, second side data corresponding to the block code to be processed is determined, data comparison calculation is performed on the second side data and other side data, and it is determined that there is a data comparison relationship.
针对全量区块编码列表中的每个待处理区块编码,获取待处理区块编码对应的第一区块编码,其中,第一区块编码为待处理区块编码的前缀;确定待处理区块编码对应的第二面数据,以及第一区块编码对应的第一面数据;确定第一面数据与第二面数据之间存在数据比对关系。For each block code to be processed in the full block code list, obtain the first block code corresponding to the block code to be processed, where the first block code is the prefix of the block code to be processed; determine the area to be processed The second side data corresponding to the block encoding, and the first side data corresponding to the first block encoding; confirm that there is a data comparison relationship between the first side data and the second side data.
其中,在一种示例中,待处理区块编码可以“wwkb1”,对应的第一区块编码可以为“wwkb”、“wwk”、“ww”、“w”。In one example, the block code to be processed may be "wwkb1", and the corresponding first block code may be "wwkb", "wwk", "ww", or "w".
步骤205,根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系。Step 205: Determine the spatial position relationship between at least two surface shapes based on the at least two surface data and the data comparison relationship.
本申请实施例的空间位置关系的确定方法,通过获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据;针对每个面数据,确定与面数 据对应的区块数量,以及区块数量下面数据对应的区块编码列表;对至少两个面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;根据全量区块编码列表以及至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系;根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系,从而降低计算复杂度,提高计算效率。The method for determining the spatial position relationship in the embodiment of the present application obtains a surface data list, where the surface data list includes: surface data of at least two surface shapes; for each surface data, the number of blocks corresponding to the surface data is determined. , and the block coding list corresponding to the data below the number of blocks; integrate and deduplicate the block coding lists corresponding to at least two face data to obtain the full block coding list; according to the full block coding list and at least two faces The block coding list corresponding to the data determines the data comparison relationship between at least two surface data; based on the at least two surface data and the data comparison relationship, determines the spatial position relationship between at least two surface shapes, thereby reducing calculation complexity and improve computational efficiency.
需要说明的是,步骤201、步骤202、步骤205的详细内容,可以参考图1所示实施例中的步骤101、步骤102和步骤104,此处不再进行详细说明。It should be noted that for the details of step 201, step 202, and step 205, reference can be made to step 101, step 102, and step 104 in the embodiment shown in FIG. 1, and will not be described in detail here.
举例说明,确定空间位置关系的过程可以为,首先,对面数据列表中每一个面数据A,使用逐级细分法找到合适的GeoHash区块列表(区块编码列表),使得满足以下条件:1)该GeoHash区块列表可以完整覆盖面数据A;2)GeoHash区块数量有限,通常在5~30之间,5称为典型值下界TypicalLow(第一数量阈值),30称为TypicalUp典型值上界(第二数量阈值);3)使用尽可能小面积的GeoHash区块。其中,逐级细分法的具体过程为:初始化前一次GeoHash区块列表PrevBL为空;依次从小到大遍历不同的GeoHash长度L(区块编码长度),例如,从3至7;使用长度L作为GeoHash精度,计算覆盖面数据A的GeoHash区块列表BL(区块编码列表);如果BL中的候选区块数量BCount小于TypicalLow(第一数量阈值),则继续获取下一个GeoHash长度L;如果BL中的区块数量BCount大于TypicalUp(第二数量阈值),则使用GeoHash区块列表PrevBL作为结果;如果BL中的区块数量BCount落在[TypicalLow,TypicalUp]区间,则将BL作为结果。例如,BL可以包括以下区块编码:“wwk8p”,“wwkb3”,“wwhz8”,“wwkb0”,“wwhzc”,“wwk8n”,“wwk8r”,“wwkb1”,“wwhzb”,“wwk8q”,“wwkb2”,“wwhxz”。然后,针对需要比较的所有面形状,使用前面获取到的GeoHash区块列表进行GeoHash区块汇总,形成无重 复的全量GeoHash区块编码列表AllGeoHashList。其次,遍历AllGeoHashList中的每一个GeoHash值SG,以该值作为过滤条件,进行筛选,目标是筛选至少两个面数据之间的数据比对关系。其中,筛选方法为:1)面数据的GeoHash与SG相等;2)面数据的GeoHash值(区块编码)长度小于SG长度,且前者是后者的前缀部分。比如当前SG是′wwkb1′,则需要筛选出AllGeoHashList中“wwkb”、“wwk”、“ww”、“w”对应的面数据。最后,根据至少两个面数据之间的数据比对关系,进行两两空间位置关系比较,其中,以至少两个面数据为面数据A和面数据B为例,面数据A和面数据B只会计算一次关系。For example, the process of determining the spatial position relationship can be: first, for each face data A in the face data list, use the step-by-step subdivision method to find the appropriate GeoHash block list (block encoding list), so that the following conditions are met: 1 ) The GeoHash block list can completely cover data A; 2) The number of GeoHash blocks is limited, usually between 5 and 30. 5 is called the lower bound of TypicalLow (the first quantity threshold), and 30 is called the upper bound of TypicalUp. (Second quantity threshold); 3) Use GeoHash blocks with the smallest possible area. Among them, the specific process of the step-by-step subdivision method is: initialize the previous GeoHash block list PrevBL to be empty; traverse different GeoHash lengths L (block encoding length) from small to large, for example, from 3 to 7; use the length L As the GeoHash accuracy, calculate the GeoHash block list BL (block encoding list) of the coverage data A; if the number of candidate blocks BCount in BL is less than TypicalLow (the first quantity threshold), continue to obtain the next GeoHash length L; if BL If the number of blocks BCount in BL is greater than TypicalUp (the second quantity threshold), use the GeoHash block list PrevBL as the result; if the number of blocks BCount in BL falls in the [TypicalLow, TypicalUp] interval, use BL as the result. For example, BL can include the following block encodings: "wwk8p", "wwkb3", "wwhz8", "wwkb0", "wwhzc", "wwk8n", "wwk8r", "wwkb1", "wwhzb", "wwk8q", "wwkb2", "wwhxz". Then, for all surface shapes that need to be compared, use the previously obtained GeoHash block list to summarize the GeoHash blocks to form a full GeoHash block encoding list AllGeoHashList without duplication. Secondly, traverse each GeoHash value SG in the AllGeoHashList, and use this value as a filtering condition to filter. The goal is to filter the data comparison relationship between at least two surface data. Among them, the screening method is: 1) the GeoHash of the polygon data is equal to the SG; 2) the length of the GeoHash value (block code) of the polygon data is less than the SG length, and the former is the prefix part of the latter. For example, if the current SG is 'wwkb1', you need to filter out the polygon data corresponding to "wwkb", "wwk", "ww", and "w" in AllGeoHashList. Finally, a pairwise spatial position relationship comparison is performed based on the data comparison relationship between at least two surface data. Taking at least two surface data as surface data A and surface data B as an example, surface data A and surface data B Relationships are only evaluated once.
与上述几种实施例提供的空间位置关系的确定方法相对应,本申请的一种实施例还提供一种空间位置关系的确定装置。由于本申请实施例提供的空间位置关系的确定装置与上述几种实施例提供的空间位置关系的确定方法相对应,因此在空间位置关系的确定方法的实施方式也适用于本实施例提供的空间位置关系的确定装置,在本实施例中不再详细描述。Corresponding to the methods for determining spatial positional relationships provided by the above-mentioned embodiments, an embodiment of the present application also provides a device for determining spatial positional relationships. Since the device for determining the spatial position relationship provided by the embodiment of the present application corresponds to the method for determining the spatial position relationship provided by the above-mentioned embodiments, the implementation of the method for determining the spatial position relationship is also applicable to the space provided by this embodiment. The device for determining the positional relationship will not be described in detail in this embodiment.
图3为根据本申请一个实施例的空间位置关系的确定装置的结构示意图。Figure 3 is a schematic structural diagram of a device for determining spatial position relationships according to an embodiment of the present application.
如图3所示,该空间位置关系的确定装置300,可以包括:获取模块310、第一确定模块320、第二确定模块330和第三确定模块340。As shown in FIG. 3 , the spatial position relationship determination device 300 may include: an acquisition module 310 , a first determination module 320 , a second determination module 330 and a third determination module 340 .
其中,获取模块310,设置为获取面数据列表,其中,所述面数据列表中包括:至少两个面形状的面数据;Wherein, the acquisition module 310 is configured to obtain a surface data list, wherein the surface data list includes: surface data of at least two surface shapes;
第一确定模块320,设置为针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表;The first determination module 320 is configured to, for each of the surface data, determine the number of blocks corresponding to the surface data, and the block coding list corresponding to the surface data under the block number;
第二确定模块330,设置为根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系;The second determination module 330 is configured to determine the data comparison relationship between at least two of the surface data according to the block coding list corresponding to the at least two of the surface data;
第三确定模块340,设置为根据至少两个所述面数据以及所述数据比对关 系,确定至少两个所述面形状之间的空间位置关系。The third determination module 340 is configured to determine the spatial position relationship between at least two of the surface shapes based on at least two of the surface data and the data comparison relationship.
作为本申请实施例的一种可能实现方式,所述第一确定模块320具体设置为,针对每个所述面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下所述面数据对应的候选区块编码列表;从至少一个所述候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。As a possible implementation of the embodiment of the present application, the first determination module 320 is specifically configured to, for each of the surface data, determine the lower coding length of each block in sequence according to the coding length of each block in the block coding length list. A candidate block coding list corresponding to the surface data; selecting the number of candidate blocks that satisfy the block constraint conditions from the number of candidate blocks in at least one of the candidate block coding lists; selecting the number of candidate blocks that satisfy the block constraint conditions; Among at least one candidate block coding list corresponding to the number, the candidate block coding list with the longest candidate block coding length is selected as the block coding list corresponding to the surface data.
作为本申请实施例的另一种可能实现方式,所述第一确定模块320具体还设置为,确定区块编码长度列表,其中,所述区块编码长度列表中的各个区块编码长度升序排列;针对每个所述面数据,依次针对所述区块编码长度列表中的每个区块编码长度,按照所述区块编码长度,确定所述面数据对应的候选区块编码列表;在所述候选区块编码列表的候选区块数量不满足区块约束条件时,获取所述区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表的候选区块数量满足所述区块约束条件;从满足所述区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。As another possible implementation of the embodiment of the present application, the first determination module 320 is specifically configured to determine a block coding length list, wherein the block coding lengths in the block coding length list are arranged in ascending order. ; For each of the surface data, for each block coding length in the block coding length list, determine the candidate block coding list corresponding to the surface data according to the block coding length; where When the number of candidate blocks in the candidate block coding list does not meet the block constraint conditions, obtain the next block coding length in the block coding length list until the number of candidate blocks in the obtained candidate block coding list is determined. Satisfy the block constraint condition; select the candidate block encoding list with the longest candidate block encoding length from at least one candidate block encoding list corresponding to the number of candidate blocks that satisfy the block constraint condition, as the candidate block encoding list. List of block codes corresponding to the above data.
作为本申请实施例的另一种可能实现方式,所述区块约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值。As another possible implementation manner of the embodiment of this application, the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold.
作为本申请实施例的另一种可能实现方式,所述区块约束条件包括:第一约束条件和第二约束条件;其中,所述第一约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值;所述第二约束条件为,从满足所述第一约束条件的至少一个候选区块数量中取最大数量。As another possible implementation manner of the embodiment of this application, the block constraint conditions include: a first constraint condition and a second constraint condition; wherein the first constraint condition is that the number of candidate blocks is greater than the first constraint condition. A quantity threshold, and the number of candidate blocks is less than a second quantity threshold; the second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint.
作为本申请实施例的另一种可能实现方式,所述第二确定模块330,包括:处理单元和确定单元;所述处理单元,设置为对至少两个所述面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;所述确定单元,设置为根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系。As another possible implementation of the embodiment of the present application, the second determination module 330 includes: a processing unit and a determination unit; the processing unit is configured to encode the block encoding lists corresponding to at least two of the surface data. Perform an integration and deduplication process to obtain a full block coding list; the determination unit is configured to determine at least two of the faces based on the full block coding list and the block coding lists corresponding to at least two of the face data. Data comparison relationship between data.
作为本申请实施例的另一种可能实现方式,所述确定单元具体设置为,针对所述全量区块编码列表中的每个待处理区块编码,获取所述待处理区块编码对应的第一区块编码,其中,所述第一区块编码为所述待处理区块编码的前缀;根据所述待处理区块编码以及所述第一区块编码,确定面数据集合,其中,所述面数据集合中的面数据对应的区块编码列表中包括所述待处理区块编码或者所述第一区块编码;确定所述面数据集合中任意两个面数据之间存在数据比对关系。As another possible implementation manner of the embodiment of the present application, the determination unit is specifically configured to, for each block code to be processed in the full block code list, obtain the third block code corresponding to the block code to be processed. A block code, wherein the first block code is the prefix of the block code to be processed; a surface data set is determined according to the block code to be processed and the first block code, wherein the The block code list corresponding to the surface data in the surface data set includes the block code to be processed or the first block code; it is determined that there is a data comparison between any two surface data in the surface data set relation.
本申请实施例提供的空间位置关系的确定装置,通过获取面数据列表,其中,面数据列表中包括:至少两个面形状的面数据;针对每个面数据,确定与面数据对应的区块数量,以及区块数量下面数据对应的区块编码列表;根据至少两个面数据对应的区块编码列表,确定至少两个面数据之间的数据比对关系;根据至少两个面数据以及数据比对关系,确定至少两个面形状之间的空间位置关系,从而降低计算复杂度,提高计算效率。The device for determining the spatial position relationship provided by the embodiment of the present application obtains a surface data list, where the surface data list includes: surface data of at least two surface shapes; for each surface data, determine the block corresponding to the surface data quantity, and the block coding list corresponding to the data under the block number; determine the data comparison relationship between at least two surface data based on the block coding lists corresponding to at least two surface data; determine the data comparison relationship between at least two surface data according to at least two surface data and data The comparison relationship determines the spatial positional relationship between at least two surface shapes, thereby reducing computational complexity and improving computational efficiency.
为了实现上述实施例,本申请还提出一种电子设备,图4为本申请实施例提供的一种电子设备的结构示意图。该电子设备包括:In order to implement the above embodiments, this application also proposes an electronic device. FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of this application. The electronic equipment includes:
存储器401、处理器402及存储在存储器401上并可在处理器402上运行的计算机程序。 Memory 401, processor 402, and a computer program stored on memory 401 and executable on processor 402.
处理器402执行所述程序时实现上述实施例中提供的空间位置关系的确定方法。When the processor 402 executes the program, the method for determining the spatial position relationship provided in the above embodiment is implemented.
进一步地,电子设备还包括:Furthermore, electronic equipment also includes:
通信接口403,设置为存储器401和处理器402之间的通信。The communication interface 403 is configured for communication between the memory 401 and the processor 402.
存储器401,设置为存放可在处理器402上运行的计算机程序。 Memory 401 is configured to store computer programs that can be run on processor 402.
存储器401可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 401 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
处理器402,设置为执行所述程序时实现上述实施例所述的空间位置关系的确定方法。The processor 402 is configured to implement the method for determining the spatial position relationship described in the above embodiment when executing the program.
如果存储器401、处理器402和通信接口403独立实现,则通信接口403、存储器401和处理器402可以通过总线相互连接并完成相互间的通信。所述总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and complete communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. wait. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 4, but it does not mean that there is only one bus or one type of bus.
可选的,在具体实现上,如果存储器401、处理器402及通信接口403,集成在一块芯片上实现,则存储器401、处理器402及通信接口403可以通过内部接口完成相互间的通信。Optionally, in terms of specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on one chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through the internal interface.
处理器402可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。The processor 402 may be a central processing unit (Central Processing Unit, referred to as CPU), or a specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or one or more processors configured to implement the embodiments of the present application. integrated circuit.
为了实现上述实施例,本申请实施例还提出一种非临时性计算机可读存储 介质,其上存储有计算机程序,该程序被处理器执行时实现如上述实施例中提供的空间位置关系的确定方法。In order to implement the above embodiments, embodiments of the present application also propose a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the determination of the spatial position relationship as provided in the above embodiments is achieved. method.
为了实现上述实施例,本申请实施例还提出一种计算机程序产品,当所述计算机程序产品中的指令处理器执行时,实现上述实施例中提供的空间位置关系的确定方法。In order to implement the above embodiments, embodiments of the present application also provide a computer program product. When the instruction processor in the computer program product is executed, the method for determining the spatial position relationship provided in the above embodiments is implemented.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人 员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing customized logical functions or steps of the process. , and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functionality involved, which shall It should be understood by those skilled in the technical field to which the embodiments of this application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,″计算机可读介质″可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered a sequenced list of executable instructions for implementing the logical functions, and may be embodied in any computer-readable medium, For use by, or in combination with, instruction execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can fetch instructions from and execute instructions from the instruction execution system, device or device) or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: discrete logic gate circuits with logic functions for implementing data signals; Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The program can be stored in a computer-readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in various embodiments of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and cannot be understood as limitations of the present application. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present application. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (28)

  1. 一种空间位置关系的确定方法,包括:A method for determining spatial position relationships, including:
    获取面数据列表,其中,所述面数据列表中包括:至少两个面形状的面数据;Obtain a surface data list, wherein the surface data list includes: surface data of at least two surface shapes;
    针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表;For each of the surface data, determine the number of blocks corresponding to the surface data, and a block coding list corresponding to the surface data under the number of blocks;
    根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系;Determine a data comparison relationship between at least two of the surface data according to the block coding lists corresponding to the at least two of the surface data;
    根据至少两个所述面数据以及所述数据比对关系,确定至少两个所述面形状之间的空间位置关系。According to at least two of the surface data and the data comparison relationship, the spatial position relationship between at least two of the surface shapes is determined.
  2. 根据权利要求1所述的方法,其中,所述针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表,包括:The method according to claim 1, wherein for each of the surface data, a number of blocks corresponding to the surface data is determined, and a block encoding list corresponding to the surface data under the number of blocks ,include:
    针对每个所述面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下所述面数据对应的候选区块编码列表;For each of the surface data, determine the candidate block coding list corresponding to the surface data under each block coding length according to the coding length of each block in the block coding length list;
    从至少一个所述候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;Select the number of candidate blocks that satisfy the block constraint conditions from the number of candidate blocks in at least one of the candidate block coding lists;
    从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。From at least one candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint, select the candidate block coding list with the longest candidate block coding length as the block coding list corresponding to the surface data.
  3. 根据权利要求1所述的方法,其中,所述针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表,包括:The method according to claim 1, wherein for each of the surface data, a number of blocks corresponding to the surface data is determined, and a block encoding list corresponding to the surface data under the number of blocks ,include:
    确定区块编码长度列表,其中,所述区块编码长度列表中的各个区块编码长度升序排列;Determine a block coding length list, wherein the block coding lengths in the block coding length list are arranged in ascending order;
    针对每个所述面数据,依次针对所述区块编码长度列表中的每个区块编码长度,按照所述区块编码长度,确定所述面数据对应的候选区块编码列表;For each of the surface data, for each block coding length in the block coding length list, determine a candidate block coding list corresponding to the surface data according to the block coding length;
    在所述候选区块编码列表的候选区块数量不满足区块约束条件时,获取所述区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表的候选区块数量满足所述区块约束条件;When the number of candidate blocks in the candidate block coding list does not meet the block constraint conditions, obtain the next block coding length in the block coding length list until the candidate area of the obtained candidate block coding list is determined. The number of blocks satisfies the block constraints;
    从满足所述区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。From at least one candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint, select the candidate block coding list with the longest candidate block coding length as the block coding corresponding to the surface data list.
  4. 根据权利要求2或3所述的方法,其中,所述区块约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值。The method according to claim 2 or 3, wherein the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold.
  5. 根据权利要求2或3所述的方法,其中,所述区块约束条件包括:第一约束条件和第二约束条件;The method according to claim 2 or 3, wherein the block constraints include: a first constraint and a second constraint;
    其中,所述第一约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值;Wherein, the first constraint is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold;
    所述第二约束条件为,从满足所述第一约束条件的至少一个候选区块数量中取最大数量。The second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint.
  6. 根据权利要求1所述的方法,其中,所述根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系,包括:The method according to claim 1, wherein determining the data comparison relationship between at least two of the surface data based on the block coding lists corresponding to the at least two of the surface data includes:
    对至少两个所述面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;Perform integration and deduplication processing on the block coding lists corresponding to at least two of the surface data to obtain a full block coding list;
    根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列 表,确定至少两个所述面数据之间的数据比对关系。According to the full block coding list and the block coding lists corresponding to at least two of the surface data, a data comparison relationship between at least two of the surface data is determined.
  7. 根据权利要求6所述的方法,其中,所述根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系,包括:The method according to claim 6, wherein the data comparison between at least two of the surface data is determined based on the full block coding list and the block coding lists corresponding to at least two of the surface data. relationships, including:
    针对所述全量区块编码列表中的每个待处理区块编码,获取所述待处理区块编码对应的第一区块编码,其中,所述第一区块编码为所述待处理区块编码的前缀;For each block code to be processed in the full block code list, obtain the first block code corresponding to the block code to be processed, where the first block code is the block code to be processed. encoding prefix;
    根据所述待处理区块编码以及所述第一区块编码,确定面数据集合,其中,所述面数据集合中的面数据对应的区块编码列表中包括所述待处理区块编码或者所述第一区块编码;According to the block code to be processed and the first block code, a face data set is determined, wherein the block code list corresponding to the face data in the face data set includes the block code to be processed or the block code to be processed. Describe the first block encoding;
    确定所述面数据集合中任意两个面数据之间存在数据比对关系。It is determined that there is a data comparison relationship between any two face data in the face data set.
  8. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    根据至少两个所述面数据之间的数据比对关系,进行两两空间位置关系比较以确定两个所述面形状之间的空间位置关系。According to the data comparison relationship between at least two of the surface data, a pairwise spatial position relationship comparison is performed to determine the spatial position relationship between the two surface shapes.
  9. 根据权利要求1所述的方法,其中,所述面形状的面数据为空间物体的轮廓形状采用多边形矢量进行表示得到的数据。The method according to claim 1, wherein the surface data of the surface shape is data in which the outline shape of the spatial object is represented by a polygon vector.
  10. 根据权利要求1所述的方法,其中,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表之前,还包括:The method according to claim 1, wherein before determining the number of blocks corresponding to the surface data and the block encoding list corresponding to the surface data under the block number, it further includes:
    通过地理编码将所述面数据的二维的空间经纬度数据编码成一维的字符串,以得到与所述面数据对应的区块编码。The two-dimensional spatial longitude and latitude data of the polygon data is encoded into a one-dimensional string through geocoding to obtain a block code corresponding to the polygon data.
  11. 根据权利要求10所述的方法,其中,每个字符串代表一个特定的矩形,在所述特定矩形范围内的所有地理坐标均共用该字符串。The method of claim 10, wherein each character string represents a specific rectangle, and all geographical coordinates within the specific rectangle share the character string.
  12. 根据权利要求10所述的方法,其中,所述区块为一个地理编码代表的 矩形所限定的位置区域。The method of claim 10, wherein the block is a location area defined by a rectangle represented by a geocode.
  13. 根据权利要求10所述的方法,其中,所述面数据对应的区块编码的长度范围为预设的连续值。The method according to claim 10, wherein the length range of the block code corresponding to the surface data is a preset continuous value.
  14. 一种空间位置关系的确定装置,包括:A device for determining spatial position relationships, including:
    获取模块,设置为获取面数据列表,其中,所述面数据列表中包括:至少两个面形状的面数据;The acquisition module is configured to obtain a surface data list, wherein the surface data list includes: surface data of at least two surface shapes;
    第一确定模块,设置为针对每个所述面数据,确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表;The first determination module is configured to determine, for each of the surface data, the number of blocks corresponding to the surface data, and the block coding list corresponding to the surface data under the number of blocks;
    第二确定模块,设置为根据至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系;The second determination module is configured to determine the data comparison relationship between at least two of the surface data based on the block coding lists corresponding to the at least two of the surface data;
    第三确定模块,设置为根据至少两个所述面数据以及所述数据比对关系,确定至少两个所述面形状之间的空间位置关系。The third determination module is configured to determine the spatial position relationship between at least two of the surface shapes based on at least two of the surface data and the data comparison relationship.
  15. 根据权利要求14所述的装置,其中,所述第一确定模块具体设置为,The device according to claim 14, wherein the first determination module is specifically configured to:
    针对每个所述面数据,依次按照区块编码长度列表中各区块编码长度,确定各区块编码长度下所述面数据对应的候选区块编码列表;For each of the surface data, determine the candidate block coding list corresponding to the surface data under each block coding length according to the coding length of each block in the block coding length list;
    从至少一个所述候选区块编码列表的候选区块数量中选择满足区块约束条件的候选区块数量;Select the number of candidate blocks that satisfy the block constraint conditions from the number of candidate blocks in at least one of the candidate block encoding lists;
    从满足区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。From at least one candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint, select the candidate block coding list with the longest candidate block coding length as the block coding list corresponding to the surface data.
  16. 根据权利要求14所述的装置,其中,所述第一确定模块具体还设置为,The device according to claim 14, wherein the first determination module is further configured to:
    确定区块编码长度列表,其中,所述区块编码长度列表中的各个区块编码 长度升序排列;Determine a block coding length list, wherein the block coding lengths in the block coding length list are arranged in ascending order;
    针对每个所述面数据,依次针对所述区块编码长度列表中的每个区块编码长度,按照所述区块编码长度,确定所述面数据对应的候选区块编码列表;For each of the surface data, for each block coding length in the block coding length list, determine a candidate block coding list corresponding to the surface data according to the block coding length;
    在所述候选区块编码列表的候选区块数量不满足区块约束条件时,获取所述区块编码长度列表中的下一个区块编码长度,直至确定得到的候选区块编码列表的候选区块数量满足所述区块约束条件;When the number of candidate blocks in the candidate block coding list does not meet the block constraint conditions, obtain the next block coding length in the block coding length list until the candidate area of the obtained candidate block coding list is determined. The number of blocks satisfies the block constraints;
    从满足所述区块约束条件的候选区块数量对应的至少一个候选区块编码列表中,选择其中候选区块编码长度最长的候选区块编码列表,作为所述面数据对应的区块编码列表。From at least one candidate block coding list corresponding to the number of candidate blocks that satisfy the block constraint, select the candidate block coding list with the longest candidate block coding length as the block coding corresponding to the surface data list.
  17. 根据权利要求15或16所述的装置,其中,所述区块约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值。The device according to claim 15 or 16, wherein the block constraint condition is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold.
  18. 根据权利要求15或16所述的装置,其中,所述区块约束条件包括:第一约束条件和第二约束条件;The device according to claim 15 or 16, wherein the block constraints include: a first constraint and a second constraint;
    其中,所述第一约束条件为,所述候选区块数量大于第一数量阈值,且所述候选区块数量小于第二数量阈值;Wherein, the first constraint is that the number of candidate blocks is greater than a first quantity threshold, and the number of candidate blocks is less than a second quantity threshold;
    所述第二约束条件为,从满足所述第一约束条件的至少一个候选区块数量中取最大数量。The second constraint is to take the maximum number from the number of at least one candidate block that satisfies the first constraint.
  19. 根据权利要求14所述的装置,其中,所述第二确定模块,包括:处理单元和确定单元;The device according to claim 14, wherein the second determination module includes: a processing unit and a determination unit;
    所述处理单元,设置为对至少两个所述面数据对应的区块编码列表进行整合去重处理,得到全量区块编码列表;The processing unit is configured to perform integration and deduplication processing on at least two block coding lists corresponding to the surface data to obtain a full block coding list;
    所述确定单元,设置为根据所述全量区块编码列表以及至少两个所述面数据对应的区块编码列表,确定至少两个所述面数据之间的数据比对关系。The determining unit is configured to determine a data comparison relationship between at least two of the surface data based on the full block coding list and the block coding lists corresponding to at least two of the surface data.
  20. 根据权利要求18所述的装置,其中,所述确定单元具体设置为,The device according to claim 18, wherein the determining unit is specifically configured to:
    针对所述全量区块编码列表中的每个待处理区块编码,获取所述待处理区块编码对应的第一区块编码,其中,所述第一区块编码为所述待处理区块编码的前缀;For each block code to be processed in the full block code list, obtain the first block code corresponding to the block code to be processed, where the first block code is the block code to be processed. encoding prefix;
    根据所述待处理区块编码以及所述第一区块编码,确定面数据集合,其中,所述面数据集合中的面数据对应的区块编码列表中包括所述待处理区块编码或者所述第一区块编码;According to the block code to be processed and the first block code, a face data set is determined, wherein the block code list corresponding to the face data in the face data set includes the block code to be processed or the block code to be processed. Describe the first block encoding;
    确定所述面数据集合中任意两个面数据之间存在数据比对关系。It is determined that there is a data comparison relationship between any two face data in the face data set.
  21. 根据权利要求14所述的装置,A device according to claim 14,
    所述第三确定模块,还用于根据至少两个所述面数据之间的数据比对关系,进行两两空间位置关系比较以确定两个所述面形状之间的空间位置关系。The third determination module is further configured to perform a pairwise spatial position relationship comparison based on the data comparison relationship between at least two of the surface data to determine the spatial position relationship between the two surface shapes.
  22. 根据权利要求14所述的装置,其中,所述面形状的面数据为空间物体的轮廓形状采用多边形矢量进行表示得到的数据。The device according to claim 14, wherein the surface data of the surface shape is data obtained by expressing the outline shape of the spatial object using a polygon vector.
  23. 根据权利要求14所述的装置,所述装置还用于,The device according to claim 14, further used for:
    在确定与所述面数据对应的区块数量,以及所述区块数量下所述面数据对应的区块编码列表之前,通过地理编码将所述面数据的二维的空间经纬度数据编码成一维的字符串,以得到与所述面数据对应的区块编码。Before determining the number of blocks corresponding to the polygon data and the block coding list corresponding to the polygon data under the number of blocks, the two-dimensional spatial longitude and latitude data of the polygon data is encoded into one dimension through geocoding. string to obtain the block code corresponding to the surface data.
  24. 根据权利要求23所述的装置,其中,每个字符串代表一个特定的矩形,在所述特定矩形范围内的所有地理坐标均共用该字符串。The device of claim 23, wherein each character string represents a specific rectangle, and all geographical coordinates within the specific rectangle share the character string.
  25. 根据权利要求23所述的装置,其中,所述区块为一个地理编码代表的矩形所限定的位置区域。The apparatus of claim 23, wherein the block is a location area defined by a rectangle represented by a geocode.
  26. 根据权利要求23所述的装置,其中,所述面数据对应的区块编码的长度范围为预设的连续值。The device according to claim 23, wherein the length range of the block code corresponding to the surface data is a preset continuous value.
  27. 一种电子设备,包括:An electronic device including:
    存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1-13中任一项所述的空间位置关系的确定方法。A memory, a processor and a computer program stored on the memory and executable on the processor, which realizes the spatial position relationship as claimed in any one of claims 1-13 when the processor executes the program method of determination.
  28. 一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-13中任一项所述的空间位置关系的确定方法。A non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for determining the spatial position relationship as described in any one of claims 1-13 is implemented.
PCT/CN2022/143061 2022-03-30 2022-12-28 Method and apparatus for determining spatial position relationship, and electronic device WO2023185159A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210333934.1A CN114741616A (en) 2022-03-30 2022-03-30 Method and device for measuring spatial position relationship and electronic equipment
CN202210333934.1 2022-03-30

Publications (1)

Publication Number Publication Date
WO2023185159A1 true WO2023185159A1 (en) 2023-10-05

Family

ID=82280067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143061 WO2023185159A1 (en) 2022-03-30 2022-12-28 Method and apparatus for determining spatial position relationship, and electronic device

Country Status (2)

Country Link
CN (1) CN114741616A (en)
WO (1) WO2023185159A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114741616A (en) * 2022-03-30 2022-07-12 杭州数梦工场科技有限公司 Method and device for measuring spatial position relationship and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021171102A1 (en) * 2020-02-27 2021-09-02 Telefonaktiebolaget Lm Ericsson (Publ) Geohash based auto-segmentation
CN113722409A (en) * 2021-03-16 2021-11-30 京东城市(北京)数字科技有限公司 Method and device for determining spatial relationship, computer equipment and storage medium
CN114741616A (en) * 2022-03-30 2022-07-12 杭州数梦工场科技有限公司 Method and device for measuring spatial position relationship and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021171102A1 (en) * 2020-02-27 2021-09-02 Telefonaktiebolaget Lm Ericsson (Publ) Geohash based auto-segmentation
CN113722409A (en) * 2021-03-16 2021-11-30 京东城市(北京)数字科技有限公司 Method and device for determining spatial relationship, computer equipment and storage medium
CN114741616A (en) * 2022-03-30 2022-07-12 杭州数梦工场科技有限公司 Method and device for measuring spatial position relationship and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JIN AN, CHENG CHENG-QI; SONG SHU-HUA; CHEN BO: "Regional Query of Area Data Based on Geohash", GEOGRAPHY AND GEO-INFORMATION SCIENCE, vol. 29, no. 5, 1 September 2013 (2013-09-01), pages 31 - 35, XP055800496, DOI: 10.7702/dlydlxxkx20130507 *

Also Published As

Publication number Publication date
CN114741616A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
WO2023185159A1 (en) Method and apparatus for determining spatial position relationship, and electronic device
CA3078148A1 (en) Search method and apparatus, and non-temporary computer-readable storage medium
WO2022193872A1 (en) Method and apparatus for determining spatial relationship, computer device, and storage medium
US10169085B2 (en) Distributed computing of a task utilizing a copy of an original file stored on a recovery site and based on file modification times
CN103513938A (en) System expansion method and device of redundant array of independent disks (RAID)
CN112583620B (en) Network topology map generation method, device, electronic equipment and storage medium
CN105446964A (en) File repeat data delete method and device
CN113867644B (en) Disk array optimization method, disk array optimization device, computer equipment and storage medium
CN111897660B (en) Model deployment method, model deployment device and terminal equipment
CN111862204A (en) Method for extracting visual feature points of image and related device
CN108228842B (en) Docker mirror image library file storage method, terminal, device and storage medium
CN110955545A (en) Data integrity checking method, system and related equipment
KR102326586B1 (en) Method and apparatus for processing large-scale distributed matrix product
KR20150142250A (en) Method for operating controller and method for operating device including the same
WO2023071566A1 (en) Data processing method and apparatus, computer device, computer-readable storage medium, and computer program product
CN103514224A (en) Method for processing data in database, data query method and corresponding device
CN115934354A (en) Online storage method and device
CN109981755A (en) Image-recognizing method, device and electronic equipment
JP2020525963A (en) Method and apparatus for comparing media characteristics
CN113505253B (en) Block chain based picture uploading method and device, server and storage medium
CN111783180B (en) Drawing splitting method and related device
CN110866127A (en) Method for establishing index and related device
EP3846037B1 (en) Storage device configured to support multi-streams and operation method thereof
CN109086220A (en) A kind of method and apparatus recycling memory space
CN108804625A (en) A kind of optimization method, device and the computer equipment of LSM trees

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934971

Country of ref document: EP

Kind code of ref document: A1