Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

2 July 2026

18 Pages

Secure and Efficient Spatial Range Query Scheme over Multi-Type Encrypted Vector Data in the Cloud

,
,
,
,
and
1
Chinese Academy of Surveying and Mapping, Beijing 100036, China
2
Hebei GEO University, Shijiazhuang 052161, China
*
Author to whom correspondence should be addressed.

Abstract

Secure and efficient spatial range query over encrypted outsourced vector data remains a challenging issue, particularly for polyline and polygon data. Existing schemes primarily focus on point data and have not been properly extended to more complex spatial objects. Therefore, we propose a secure and efficient spatial range query scheme that supports multi-type encrypted vector data. The data owner first outsources encrypted vector data and the encrypted R-tree index to a cloud server, and then the cloud server retrieves matching data identifiers using an encrypted query rectangle and encrypted index. After that, the cloud server accesses the spatial database to obtain the corresponding encrypted vector data. Finally, the query user decrypts the encrypted vector data and filters with a query rectangle to get actual query results. Experiments show that our scheme achieves query efficiency comparable to that of query based on a plaintext index, while providing enhanced query security at the cost of only 3.97% performance overhead. We also compared our point data query with existing scheme. And the results indicate that our scheme effectively reduces false positives and improves query efficiency by enabling intersection tests between the query rectangle and the minimum bounding rectangles of spatial objects in the encrypted domain. Overall, our scheme can support spatial range query over multi-type encrypted vector data, achieving a balance between security and efficiency.

1. Introduction

With the rapid growth of data volumes, data owners tend to outsource their data to cloud servers to reduce local storage and computing costs [1]. As an honest-but-curious third party, cloud servers may analyze the data when executing query requests, thereby posing a risk of data leakage [2]. Therefore, original data is often encrypted using symmetric encryption algorithms before being outsourced. However, symmetric encryption disrupts the structure and order of the data, making it difficult to directly execute query operations that rely on this information [3]. Although encrypted data files can be sent to query users for local decryption and query, this increases the computational burden on users and transmits a large amount of redundant data, thereby reducing query efficiency and wasting network resources. Therefore, it is of great significance to develop a spatial query scheme that balances security, efficiency, and user usability.
Query service is a basic requirement in data outsourcing, and its form exhibits diversity depending on the various query needs [4,5,6,7]. Vector data is widely used in geographic information systems and is a common type of outsourced data [8]. As a basic operation in vector data analysis, spatial range query plays an important role in domains including urban planning, transportation and logistics, natural resource management, and location-based services, as well as other related areas [9]. For example, in urban planning and management, administrative departments can retrieve geographic features within a specific area through spatial range query and analyze their spatial distribution, which helps support resource allocation decisions. However, outsourced data is generally encrypted, so cloud servers cannot construct a meaningful spatial index on encrypted data for range query. In addition, cloud servers are also unable to decrypt outsourced data to perform a query on the original data. Therefore, how to support spatial range query over encrypted vector data becomes a key issue.
Regarding the spatial range query on encrypted vector data, existing research has primarily adopted a strategy combining cryptography and index [10,11,12,13,14,15,16,17]. On the one hand, symmetric encryption algorithms (such as AES and SM4) [18,19] are utilized to protect the original vector data. On the other hand, an encrypted index is constructed to enable fast query, allowing the cloud server to perform a spatial range query without decrypting the vector data. This strategy balances data security and query efficiency. However, existing schemes are primarily designed for point data and offer limited support for polyline and polygon data, making it difficult to meet the query requirements for multiple types of vector data. Point data cannot convey the shape and spatial extent of objects. If points are used to represent spatial objects such as buildings or roads, query accuracy can be significantly affected. Hence, the need to support query over polyline and polygon data cannot be ignored.
To address the above issue, we propose a secure and efficient spatial range query scheme that supports multi-type encrypted vector data. Specifically, we employ Order-Preserving Encryption (OPE) and Sort-Tile-Recursive (STR) algorithm to construct an encrypted R-tree index, and utilize the symmetric encryption algorithm SM4 to process the original vector data. Subsequently, the encrypted index and data are outsourced to the cloud server for store and query, with the index stored in the cloud server’s hard disk and the data stored in a spatial database deployed on the cloud server. Our contributions are as follows:
  • We propose a secure and efficient spatial range query scheme for multi-type encrypted vector data, which supports query processing for point, polyline and polygon data.
  • Only a single round of communication is required between the trusted user and the cloud server, avoiding frequent data transmission.
  • We conduct query experiments on eight datasets consisting of point, polyline, and polygon data, and compare the query efficiency of our scheme with those of the comparison schemes.
  • The experimental results show that, compared to plaintext index query, the maximum efficiency loss of our scheme is only 3.97%, achieving a balance between query efficiency and security.
The rest of this paper is organized as follows. In Section 2, we provide an overview of related work on spatial range query for encrypted vector data. In Section 3, we introduce some techniques used in our scheme. In Section 4, we describe the system model, problem definition, and design goals. Then, in Section 5, we present the implementation details of our scheme. Next, we show the security analysis in Section 6 and present the performance analysis in Section 7. Finally, in Section 8, we draw a conclusion of our work.

3. Preliminaries

This section will introduce the main techniques supporting our scheme, including Order-Preserving Encryption, Sort-Tile-Recursive algorithm, and R-tree index.

3.1. Order-Preserving Encryption

The core characteristic of Order-Preserving Encryption (OPE) is the fact that the ciphertext maintains the same numerical order as the original data, thereby enabling efficient comparison calculation and range query on encrypted data [31]. (If a 1 > a 2 , then E O P E ( a 1 ) > E O P E ( a 2 ) ).
Our scheme encrypts R-tree and query rectangle through the provably secure Order-Preserving Encryption proposed by Boldyreva et al. [31]. Boldyreva et al. [31] were the first to provide a complete security analysis on OPE. During query processing, the cloud server can determine whether the encrypted index node intersects with the encrypted query rectangle without data decryption.

3.2. R-Tree Index

R-tree index is a balanced tree structure used for retrieving spatial data [32]. R-tree achieves efficient data retrieval by organizing the MBRs of spatial objects into a hierarchical tree structure. While querying, the cloud server starts from the root node and checks whether the MBR of each node intersects with the query rectangle, and recursively visits child nodes that meet the condition.

3.3. Sort-Tile-Recursive Algorithm

The Sort-Tile-Recursive (STR) algorithm is a spatial index construction algorithm that can be used to efficiently construct R-tree [33]. This algorithm can ensure that spatially adjacent objects are placed in the same node as much as possible through sorting and tiling, thereby reducing node overlap and improving query efficiency.
The first step of index construction is to obtain the center point coordinates ( X c , Y c ) of the MBR of each spatial object. Next, the spatial data is sorted by X c and divided into multiple tiles. Within each tile, the data is sorted by Y c . After that, leaf nodes are generated according to node capacity. Finally, the above operations are recursively performed on the leaf nodes to construct upper-level nodes until the root node is formed.

4. Problem Formulation

In this section, we present the system model, problem definition, and design goals.

4.1. System Model

The system model of the proposed scheme, as shown in Figure 1, consists of three entities: the data owner (DO), trusted user (TU), and cloud server (CS).
  • Data Owner: Encrypts vector data and index using SM4 and OPE respectively in the trusted environment, and then outsources them to the CS. The DO is responsible for the secure storage of the vector data encryption key K S M 4 , initial vector and the index encryption key K O P E . These parameters are distributed to the TU through a secure channel protected by transport security protocol such as TLS.
  • Trusted User: Encrypts the query rectangle using the K O P E and submits encrypted query request to the CS. After obtaining the query results returned by CS, TU decrypts the query results using K S M 4 and filters out false positives (irrelevant data) in the plaintext domain.
  • Cloud Server: Stores the encrypted data and index outsourced by DO, and provides encrypted data range query services to TU.
In the system, all vector data, index, query rectangles and query results are transmitted in encrypted form, ensuring data confidentiality.
Figure 1. System model for spatial data outsourcing.

4.2. Problem Definition

Given a vector dataset D B = { O 1 , O 2 , ⋯ , O i , ⋯ , O s } , where O i represents any spatial object, and s denotes the total number of spatial objects in the dataset, our scheme comprises five algorithms:
Π = ( I n d e x e n c , S p a t i a l D a t a e n c , Q u e r y R a n g e e n c , Q u e r y C S , D e c F i l t e r T U ) .
The algorithm is defined as follows:
  • I e n c ← I n d e x e n c ( D B , K O P E ) : DO runs the algorithm to generate an encrypted spatial index for each vector dataset.
  • D B e n c ← S p a t i a l D a t a e n c ( D B , K S M 4 ) : DO encrypts the original spatial objects to provide strong data privacy protection.
  • Q R e n c ← Q u e r y R a n g e e n c ( Q R , K O P E ) : TU performs OPE on the query rectangle to ensure that range query can be executed in the ciphertext domain.
  • R C S ← Q u e r y C S ( I e n c , Q R e n c , D B e n c ) : CS processes the query request and returns the encrypted query result R C S to TU.
  • R T U ← D e c F i l t e r T U ( R C S , Q R , K S M 4 ) : TU decrypts R C S and filters out false positives to obtain actual query results.
The notations used in the paper and their descriptions are shown in Table 1.
Table 1. Notations and descriptions.

4.3. Design Goals

The design goals of our scheme are to achieve secure spatial range query for multi-type encrypted vector data, specifically satisfying the following requirements:
  • Query Privacy: Vector data is encrypted using a symmetric encryption algorithm before being outsourced, so CS cannot obtain the original data and its distribution pattern. TU also do not know extra data information except for query results. In addition, CS cannot access the actual query rectangle because it has been encrypted by TU.
  • Query Efficiency: Index retrieval only requires low-complexity comparison calculations. Furthermore, the query process can be completed with single round of communication.
  • Query Accuracy: The query results returned by CS include all spatial objects that intersect with the query rectangle. Although R C S may contain false positives, no spatial objects that are actually within the query rectangle will be omitted.

5. Our Proposed Scheme

This section provides implementation details of our scheme, comprising the following three parts: index construction and vector data process, cloud server query, and trusted user decryption and filtering. Figure 2 shows the complete flow chart of the scheme proposed in this paper.
Figure 2. Flow chart of proposed scheme.

5.1. Index Construction and Vector Data Process

Our scheme is designed for point, polyline and polygon vector data. Typically, each polyline or polygon record is composed of a large number of points. In order to minimize the index size and maintain data security, each data entry only stores the unique identifier and encrypted MBR of spatial object. The use of MBRs to replace original vector data offers two mainly advantages. First, as abstract representation of original spatial objects, MBRs provide only the boundary of spatial objects, thereby reducing the risk of precise location leakage. Second, compared with original polyline or polygon, MBRs require significantly less storage space, which effectively prevents excessive index bloat and improves query efficiency. Algorithm 1 gives the pseudocode for encrypted index construction.
Algorithm 1: Encrypted index construction (by DO)
1:Input:
2:   Spatial   dataset   D B = { O 1 , O 2 , ⋯ , O i , ⋯ , O S }
3:   Encryption   key   K O P E
4: for   each   O i   in   D B   do
5:    Extract   the   MBR   of   O i ∈ D B
6:    Store   MBR   in   set   M
7: end   for
8: Construct   a   plaintext   R-tree   I   using   STR   on   M
9: for   each   MBR   in   I   do
10:    Encrypt   MBR   using   K O P E
11: end   for
12: Return   encrypted   R-tree
We employ the STR algorithm to construct R-tree index, thereby reducing overlap between nodes. For MBRs in the R-tree, we encrypt it using OPE to prevent the disclosure of the original data distribution. As OPE is applied per dimension, all the X and Y coordinates are encrypted independently. Specifically, each coordinate component is treated as an individual value and encrypted separately. This reveals only one-dimensional order information and distribution characteristics along the X and Y axes, but does not expose the exact coordinate values or full two-dimensional geometric structure. Figure 3 illustrates the construction of the encrypted R-tree index. To balance the depth of the index tree with query efficiency, we first set the depth of R-tree to 3, thereby determining that the node capacity M is also 3 in Figure 3. Using the formula ⌈ ⌈ s / M ⌉ ⌉ , we calculate that the data space can be divided into two tiles [33]. Considering the spatial distribution of the vector data, we divide the data in Figure 3 into two tiles, namely N1 and N2. Within each tile, considering the numerical magnitude of Y c and the node capacity, we obtain four leaf nodes: N3, N4, N5, and N6.
Figure 3. The construction of the encrypted spatial index.
After the construction of the R-tree index, it is time to process the original vector data. Generally, vector data is represented precisely by multiple pairs of coordinates, which determine the data’s geographic location and shape in the real world [34]. The disclosure of coordinates can pose significant privacy and security risks. Therefore, it is necessary to encrypt the coordinates before outsourcing the data to ensure confidentiality during transmission and storage. We use SM4-CBC to encrypt the coordinates and Figure 4 shows the CBC encryption mode. In CBC encryption mode, since a different initialization vector is used for each encryption operation and the ciphertext is influenced by the previous ciphertext block, the same plaintext results in different ciphertext after encryption [35]. Even if an attacker obtains multiple ciphertexts, they cannot easily decrypt them or infer the original data.
Figure 4. The CBC encryption mode.
After completing the above tasks, the encrypted vector data and the corresponding encrypted index need to be outsourced to CS. Since our scheme does not store the original vector data within the index, it is necessary to access the outsourced encrypted vector data to obtain the corresponding encrypted query results according to the identifiers returned by the index retrieval. However, common vector data formats (such as GeoJSON, KML, and GML) typically rely on sequential parsing and lack efficient random access mechanisms, thereby impairing query performance [36,37,38]. For Shapefile data, the original .shx file, which relies on fixed offsets, becomes invalid due to changes in data length caused by padding resulting from encryption [39]. To address this issue, a spatial database is deployed on the CS, and the encrypted vector data are imported into it. When performing a query, the unique identifier of each spatial object is used as a linkage key, enabling the cloud server to efficiently retrieve the corresponding encrypted vector data through database lookup operations.

5.2. Cloud Server Query

During the query process, the cloud server starts from the root node to determine whether Q R e n c intersects with the MBR of the current node. If there is an intersection, the search recursively continues to the child nodes until the leaf nodes are reached and checks each data entry. If there is no intersection, the search along that path is terminated. Since the X and Y coordinates are encrypted separately, the intersection test is performed by independently comparing the coordinate values along the X and Y axes to identify the data identifiers that satisfy the query conditions. The specific judgment logic is as follows:  ! ( n o d e _ m b r . m i n _ x   >   q u e r y _ r e c t . m a x _ x   | |   n o d e _ m b r . m a x _ x   <   q u e r y _ r e c t . m i n _ x   | | n o d e _ m b r . m i n _ y   >   q u e r y _ r e c t . m a x _ y   | |   n o d e _ m b r . m a x _ y   <   q u e r y _ r e c t . m i n _ y ) , where n o d e _ m b r denotes the encrypted MBR of an index node, and q u e r y _ r e c t denotes the encrypted query rectangle.
The CS first filters out matching spatial object identifiers through I e n c and Q R e n c , and then interacts with the spatial database to extract the encrypted vector data corresponding to the identifiers. Since the data is encrypted before outsourcing, the query results are returned to TU in encrypted form. TU decrypts and filters the results to obtain the actual query results. Algorithm 2 provides the pseudocode for the cloud server query.
Algorithm 2: Spatial query process on encrypted data
1:Input:
2:   Query   range   Q R = [ ( x m i n , y m i n ) , ( x m a x , y m a x ) ]
3:   Encryption   key   K o P E
4: Q R e n c ← Encrypt   Q R   using   K O P E                         ▷   At   TU
5: Send   Q R e n c   to   CS
6: for   all   n i   in   I e n c   do
7:    if   n i ∩ Q R e n c ≠ ∅   then                             ▷   At   CS
8:      if   n i   is   leaf   then
9:        Search   each   data   entry   and   add   matching   data   to   R C S
10:     else   if   n i   is   internal   node   then
11:        Search   each   child   of   n i
12:     end   if
13:    end   if
14: end   for
15: Return   R C S   to   TU

5.3. Trusted User Decryption and Filtering

The MBR-based intersection test method may cause false positives. Figure 5 illustrates false positives for polyline and polygon data in detail. Figure 5a,b show cases of false positives in polyline data, while Figure 5c,d show cases of false positives in polygon data. It can be seen that even if the spatial objects are disjoint from the query rectangles, the MBRs still intersect with the query rectangles, hence resulting in false positives. To address false positives in query results, TU has to decrypt the query results returned by CS and filter out mismatched vector data. Algorithm 3 displays the pseudocode for query result R C S   decryption and filtering.
Algorithm 3: Decrypt-and-filter query result R C S (by TU)
1:Input:
2:   Query   results   R C S   returned   by   cloud   server
3:   Encryption   key   K S M 4 ,   initial   vector ,   original   query   rectangle   Q R
4: for   each   record   in   R C S   do
5:     Decrypt   encrypted   record   using   K S M 4   and   initial   vector
6: end   for
7: for   each   decrypted   record   do
8:     Filter   the   decrypted   record   with   Q R   and   discard   the   mismatched   record
9: end   for
10: Return   actual   query   results   R T U
There are three spatial relationships between point data and the query rectangle: point inside the query rectangle, point outside the query rectangle, and point on the boundary of the query rectangle. In range query, these three relationships can be accurately determined through coordinates, thus avoiding false positives.
Figure 5. The cases of false positives. Note: The highlighted polylines or polygons are actual spatial objects. The red rectangles are the MBRs of spatial objects and the black rectangles are the query rectangles. The pink areas indicate the intersection between the MBRs and the query rectangles.

6. Security Analysis

6.1. Leakage Function

We first define the leakage function. The leakage caused by query Q on dataset D B is denoted as L ( D B , Q ) , which specifically includes the following aspects:
  • Size Pattern: CS can learn the total number of data records in the dataset.
  • Access Pattern: CS knows the identifier of each encrypted data record returned by each spatial range query.
  • Search Pattern: CS knows whether the same encrypted data record was retrieved via two different queries.

6.2. Data Security

Our scheme is suitable for multiple types of vector data. Specifically, the data security for polyline and polygon data is guaranteed under IND-CPA, while that for point data and encrypted R-tree index are established under POPF-CCA [40,41].
Before the formal data security analysis for polyline and polygon data, we first simulate a security game between the challenger C and the adversary A .
Definition 1.
Let  Π = ( I n d e x e n c , S p a t i a l D a t a e n c , Q u e r y R a n g e e n c , Q u e r y C S , D e c F i l t e r T U )  be a spatial range query scheme for multiple types of encrypted vector data over security parameters λ. The security game between a challenger  C  and an adversary   A   is defined as:
  • Init: Given security parameter λ, the adversary A  generates two datasets  D B 1 = { O 1,1 , O 1,2 , ⋯ , O 1 , s }  and  D B 2 = { O 2,1 , O 2,2 , · · · , O 2 , s }  with the same number of spatial data objects as   C .
  • Phase 1: A  adaptively submits a number of requests, where each request is one of the two following types:
    • Ciphertext request: On the jth ciphertext request, adversary   A  outputs a dataset   D B j = { O j , 1 , O j , 2 , ⋯ , O j , s } , and challenger   C  returns encrypted index   I e n c , j  through  I n d e x e n c .
    • Encrypted query range request: On the jth query request, adversary   A  outputs a spatial query range   Q R j , and challenger   C  responds with encrypted query range   Q R e n c , j  through   Q u e r y R a n g e e n c .
  • Challenge: With  D B 1  and  D B 2  selected in Init, challenger   C  flips a coin   b ∈   { 0,1 }  and returns   I e n c , b  of   D B b  to adversary   A .
  • Phase 2: Adversary   A   continues to adaptively submit a number of requests, which are still subjected to the same restrictions in Phase 1.
  • Guess: Adversary   A  gives a guess   b ′  of   b .
We say that our scheme is secure against IND-CPA on data security for polyline and polygon data if for any polynomial-time adversary in the above game, it has at most a negligible advantage.
A d v O u r   s c h e m e , A I N D − C P A − D a t a ( 1 λ ) = | P r [ b ′ = b ] − 1 2 | ≤ n e g l ( λ ) , where n e g l ( λ ) is the negligible function in λ.
We now analyze the data security for polyline and polygon data. Since the original vector data in our solution is encrypted using SM4, data security relies on the security of a symmetric encryption algorithm.
Theorem 1.
Polyline and polygon data encrypted with SM4 achieve IND-CPA security because SM4 is IND-CPA-secure.
Proof. 
To prove the IND-CPA data security of our scheme for polyline and polygon data, we simulate the security game defined in Definition 1 with an adversary A from the ideal security game of SM4. For each object in D B j , the MBRs are first extracted to construct an index, and then encrypted using SM4. In Phase 1 and Phase 2 of the security game, A chooses different O j , i each time and observes the corresponding ciphertext in I e n c , j . Since the key K S M 4 is kept secret from A and the encryption follows the standard SM4-CBC, the probability of A distinguishing between two ciphertexts can be reduced to breaking the underlying SM4. Furthermore, although the MBRs are encrypted via OPE for index construction, the MBR only provides an approximate boundary and does not leak the precise vertex coordinates of polyline and polygon data. Namely, for any pair of messages and the corresponding ciphertext chosen by A , A cannot determine which message has been encrypted. Then we have A d v O u r   s c h e m e , A I N D − C P A − D a t a ( 1 λ ) = | P r [ b ′ = b ] − 1 2 | ≤ n e g l ( λ ) , which proves polyline and polygon data meet IND-CPA security in our scheme. □
The OPE adopted in the paper is proposed by Boldyreva et al., and is based on the hypergeometric distribution, namely O P E H G . O P E H G consists of an encryption algorithm E n c H G , and a decryption algorithm D e c H G , and achieves order-preserving mapping from plaintexts to ciphertexts through recursive binary partitioning and hypergeometric sampling. The random bits required during the sampling process are generated by a pseudorandom function TapeGen, which is composed of VIL-PRF (Variable Input-Length Pseudorandom Function) and VOL-PRG (Variable Output-Length Pseudorandom Generator), both constructed based on AES.
The O P E H G achieves POPF-CCA security. In the ideal setting, the stateful LazySample algorithm, supplied with truly random bits, generates a uniformly random order-preserving function. O P E H G   differs from LazySample only in that the true random source is replaced by TapeGen. Therefore, the behavioral difference between the two algorithms is solely determined by the distinguishability between the pseudorandom bits and truly random bits. Formally, the security bound is given by A d v O P E H G p o p f − c c a ( A ) ≤ A d v T a p e G e n p o p f − c c a ( B ) + λ , where adversary A is against O P E H G and adversary B is against TapeGen. The parameter λ is a negligible constant independent of the sizes of the plaintext and ciphertext domains, arising from the floating-point precision loss incurred during hypergeometric sampling. If there exists an adversary A capable of distinguishing O P E H G from an ideal random order-preserving function, then a corresponding adversary B can be constructed to break the pseudorandomness of TapeGen. By contraposition, if TapeGen satisfies the pseudorandomness property, then O P E H G is secure under the POPF-CCA security notion.
The security of TapeGen can be further reduced to that of the underlying AES. Specifically, the pseudorandomness of both the VIL-PRF and the VOL-PRG relies on the PRF security of AES. If the output of AES is computationally indistinguishable from a uniformly random bit string, then the A d v T a p e G e n p o p f − c c a ( B ) is negligible. Consequently, after accounting for the negligible error λ , the A d v O P E H G p o p f − c c a ( A ) is also negligible. Thereby O P E H G achieves POPF-CCA security.
For point data, the MBRs degenerate to coordinates, and thus index entries store the coordinates encrypted using OPE. Since OPE is POPF-CCA-secure, point data and MBRs also achieve POPF-CCA security.

6.3. Query Security

CS can infer which spatial objects are frequently accessed by observing the query results. However, CS can only obtain the data identifiers and encrypted vector data instead of original vector data corresponding to the identifiers. Since the query rectangle is also encrypted, CS cannot know the user’s actual query area. In addition, only TU can obtain K S M 4 , and attackers cannot decrypt the data without this key.

7. Performance Analysis

This section evaluates the performance of our scheme by displaying the query rectangle encryption process, query process efficiency, and point data query comparison. The experiment utilizes some vector datasets from Shaanxi Province (downloaded from the OpenStreetMap website), and the detailed information of each dataset is shown in Table 2. Figure 6 shows the spatial distribution of each dataset. All the experiments are conducted using C++ on a 64-bit Windows 10 operating system, and are completed on an Intel(R) Core(TM) i5-1035G1 CPU @ 1.00 GHz server. The database platform and version information is PostgreSQL 10.17.
Table 2. Detailed information of datasets.
Figure 6. The spatial distribution of each dataset.

7.1. Query Rectangle Encryption Process

To enhance query security, our scheme adopts an encrypted index. Therefore, the query rectangle must be encrypted using OPE before the query is performed. We encrypt the coordinates of the query rectangle 100 times and record the time cost for each encryption. Finally, we calculate the average process time for the query rectangle encryption is 170 μs.

7.2. Query Process Efficiency

Regarding query process efficiency, our scheme is compared with a scheme that constructs a plaintext index for vector data and outsources it for query. The query process of the comparison scheme is consistent with that of our scheme, but the R-tree index and query rectangle do not need to encrypt. We perform spatial range query on each dataset, but due to space limitations, we only display the experimental results of traffic, waterways and buildings in detail, while the results for the remaining datasets are reported only for the 15% query size. Table 3, Table 4 and Table 5 show the query process information for both schemes under the same dataset and query size in detail. Table 6 shows the summary of experimental results on remaining datasets. Each query runs 100 times and takes the average as the final query process time. Figure 7, Figure 8 and Figure 9 show the query range and query results for traffic, waterways and buildings at 1% query size, which demonstrate the feasibility of our scheme and the accuracy of the query results. For three different types of datasets—point, polyline and polygon—the query process time of our scheme is comparable to that of the comparison scheme. Since both schemes use the same index construction algorithm, the index retrieval path and cloud server query results are the same. Therefore, the communication cost of the query results and the TU decryption and filtering cost are the same for both schemes. Taking the comparison scheme as the baseline, the maximum query efficiency loss of our scheme is 3.97% according to the formula ( 1 − Q u e r y   R a n g e   E n c r y p t + C S   Q u e r y + T U   E n c r y p t   &   F i l t e r C o m p a r i s o n   S c h e m e + T U   E n c r y p t   &   F i l t e r ) × 100 % . Considering query efficiency and security, this loss is acceptable.
Table 3. Query process information of traffic.
Table 4. Query process information of waterways.
Table 5. Query process information of buildings.
Table 6. Summary of experimental results on remaining datasets.
Figure 7. Query range and query results for point data.
Figure 8. Query range and query results for polyline data.
Figure 9. Query range and query results for polygon data.

7.3. Point Data Query Comparison

To ensure a fair comparison, we select the DISC [10] as the comparison scheme for point data query. Our scheme and DISC both utilize R-tree and OPE, thereby enabling a comparative performance analysis of queries based on MBR and SFC code within a similar technical framework. The experimental results are shown in Figure 10 and Figure 11. In DISC, the SFC mapping causes multiple point data to share the same code, which is particularly pronounced in densely distributed regions. During the query, CS returns all point data corresponding to the matching codes as the query results to TU, resulting in a decrease in query efficiency. Figure 10 shows that as the query size increases, the time cost of the CS query and TU decryption and filtering in DISC grows rapidly, significantly higher than that of our scheme. There are two reasons for this outcome. First, the query results in DISC contain a large number of false positives, which increases the burden on data transmission and TU computation. Second, when CS performing index retrieval, the number of computations required by DISC is far greater than that of our scheme. As a result, the query efficiency of our scheme is superior to that of DISC. Figure 11 illustrates the communication costs of query results in the two schemes. As the query results in DISC contain a large number of false positives, the burden on data transmission and TU computation is aggravated.
Figure 10. CS query time and TU decrypt-and-filter time for point data.
Figure 11. The communication cost for point data.

8. Conclusions

Existing spatial range query schemes for encrypted vector data are primarily designed for point data and have limited support for polyline and polygon data. Therefore, we propose a secure and efficient spatial range query scheme that supports multi-type encrypted vector data. Experimental results demonstrate that although the proposed scheme brings a certain efficiency loss compared with the comparison scheme, with a maximum efficiency loss of only 3.97%, it effectively prevents the leakage of both vector data and query ranges, thereby achieving higher security with relatively low performance overhead. In addition, we compare our scheme with DISC on point data query. The results demonstrate that our scheme achieves better performance in terms of both query efficiency and communication cost. However, for each point object, the MBR degenerates into a single point, which may reveal data type and order relations. In future work, we will investigate more privacy-enhanced index construction methods for point data that can reduce such information leakage without significantly affecting query performance. In summary, our scheme achieves a balance between data security and efficiency, providing a feasible solution for spatial range query over multi-type encrypted vector data.

Author Contributions

The authors confirm contributions to the paper as follows: Study conception and design: Q.Y.; data collection: Q.Y.; analysis and interpretation of results: Q.Y.; writing—original draft preparation: Q.Y.; writing—review and editing: Z.M., D.L., Q.Y., X.W., J.H. and H.L.; supervision: Z.M., D.L., X.W., J.H. and H.L.; funding acquisition: Z.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Key Research and Development Program of China (grant number 2024YFB2505804).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data will be made available on request.

Acknowledgments

The authors wish to express their appreciation to the reviewers for their helpful suggestions which greatly improved the presentation of this paper.

Conflicts of Interest

The authors have no conflicts of interest to declare that are relevant to the content of this article. The authors have no financial interests to disclose.

References

  1. Yang, Y.; Huang, X.; Liu, X.; Cheng, H.; Weng, J.; Luo, X.; Chang, V. A Comprehensive Survey on Secure Outsourced Computation and Its Applications. IEEE Access 2019, 7, 159426–159465. [Google Scholar] [CrossRef] [Scilit]
  2. Domingo-Ferrer, J.; Farràs, O.; Ribes-González, J.; Sánchez, D. Privacy-preserving cloud computing on sensitive data: A survey of methods, products and challenges. Comput. Commun. 2019, 140–141, 38–60. [Google Scholar] [CrossRef] [Scilit]
  3. Xu, L.; Duan, H.; Zhou, A.; Yuan, X.; Wang, C. Interpreting and mitigating leakage-abuse attacks in searchable symmetric encryption. IEEE Trans. Inf. Forensics Secur. 2021, 16, 5310–5325. [Google Scholar] [CrossRef] [Scilit]
  4. Wang, H.; Hu, W.; Quan, Y.; Mu, D. Private Spatial Range Queries Over Outsourced Data: A Survey. In Proceedings of the 2025 IEEE International Conference on Big Data (BigData), Macau, China, 8–11 December 2025; pp. 6504–6513. [Google Scholar] [CrossRef] [Scilit]
  5. Wu, H.; Düdder, B.; Wang, L.; Cao, Z.; Zhou, J.; Feng, X. Survey on Secure Keyword Search over Outsourced Data: From Cloud to Blockchain-assisted Architecture. ACM Comput. Surv. 2023, 56, 1–40. [Google Scholar] [CrossRef] [Scilit]
  6. Tu, X.; Bao, H.; Lu, R.; Huang, C.; Dai, H.-N. PMRK: Privacy-Preserving Multidimensional Range Query with Keyword Search Over Spatial Data. IEEE Internet Things J. 2024, 11, 10464–10478. [Google Scholar] [CrossRef] [Scilit]
  7. Fugkeaw, S.; Deevijit, J.; Ueasathitwong, P.; Thanyasukpaisal, T. EVSEB: Efficient and Verifiable Searchable Encryption with Boolean Search for Encrypted Cloud Logs. IEEE Access 2025, 13, 101177–101195. [Google Scholar] [CrossRef] [Scilit]
  8. Rady, M.; Abdelkader, T.; Ismail, R. Integrity and Confidentiality in Cloud Outsourced Data. Ain Shams Eng. J. 2019, 10, 275–285. [Google Scholar] [CrossRef] [Scilit]
  9. Yao, X.; Li, G. Big spatial vector data management: A review. Big Earth Data 2018, 2, 108–129. [Google Scholar] [CrossRef] [Scilit]
  10. Kamel, I.; Talha, A.M.; Aghbari, Z.A. Dynamic spatial index for efficient query processing on the cloud. J. Cloud Comput. 2017, 6, 5. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, B.; Li, M.; Wang, H. Geometric Range Search on Encrypted Spatial Data. IEEE Trans. Inf. Forensics Secur. 2016, 11, 704–719. [Google Scholar] [CrossRef] [Scilit]
  12. Miao, Y.; Yang, Y.; Li, X.; Liu, Z.; Li, H.; Choo, K.-K.R.; Deng, R.H. Efficient Privacy-Preserving Spatial Range Query Over Outsourced Encrypted Data. IEEE Trans. Inf. Forensics Secur. 2023, 18, 3921–3933. [Google Scholar] [CrossRef] [Scilit]
  13. Xu, G.; Li, H.; Dai, Y.; Yang, K.; Lin, X. Enabling Efficient and Geometric Range Query with Access Control Over Encrypted Spatial Data. IEEE Trans. Inf. Forensics Secur. 2019, 14, 870–885. [Google Scholar] [CrossRef] [Scilit]
  14. Wang, X.; Ma, J.; Liu, X.; Deng, R.H.; Miao, Y.; Zhu, D.; Ma, Z. Search me in the dark: Privacy-preserving boolean range query over encrypted spatial data. In Proceedings of the IEEE INFOCOm 2020-IEEE Conference on Computer Communications; IEEE: Toronto, ON, Canada, 2020. [Google Scholar] [CrossRef] [Scilit]
  15. Zheng, Z.; Cao, Z.; Shen, J. Practical and Secure Circular Range Search on Private Spatial Data. In Proceedings of the 2020 IEEE 19th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Guangzhou, China, 29 December 2020–1 January 2021; pp. 639–645. [Google Scholar] [CrossRef] [Scilit]
  16. Cui, N.; Yang, X.; Wang, B.; Geng, J.; Li, J. Secure range query over encrypted data in outsourced environments. World Wide Web 2019, 23, 491–517. [Google Scholar] [CrossRef] [Scilit]
  17. Peng, Y.; Li, H.; Cui, J.; Zhu, Y.; Peng, C. An Efficient Range Query Model over Encrypted Outsourced Data Using Secure K-D Tree. In Proceedings of the 2016 International Conference on Networking and Network Applications (NaNA), Hakodate, Japan, 23–25 July 2016; pp. 250–253. [Google Scholar] [CrossRef] [Scilit]
  18. Hamza, A.; Kumar, B. A Review Paper on DES, AES, RSA Encryption Standards. In Proceedings of the 2020 9th International Conference System Modeling and Advancement in Research Trends (SMART), Moradabad, India, 4–5 December 2020; pp. 333–338. [Google Scholar] [CrossRef] [Scilit]
  19. Alenezi, M.N.; Alabdulrazzaq, H.; Mohammad, N.Q. Symmetric encryption algorithms: Review and evaluation study. Int. J. Commun. Netw. Inf. Secur. 2020, 12, 256–272. [Google Scholar] [CrossRef] [Scilit]
  20. Yu, P.; Ni, W.; Liu, R.P.; Zhang, Z.; Zhang, H.; Wen, Q. Efficient Encrypted Range Query on Cloud Platforms. ACM Trans. Cyber-Phys. Syst. 2022, 6, 1–23. [Google Scholar] [CrossRef] [Scilit]
  21. Abdennebi, A.; Kaya, K. A bloom filter survey: Variants for different domain applications. arXiv 2021, arXiv:210612189. [Google Scholar] [CrossRef] [Scilit]
  22. Bader, M. Space-Filling Curves: An Introduction with Applications in Scientific Computing; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar] [CrossRef] [Scilit]
  23. Al-Mamun, A.; Wu, H.; He, Q.; Wang, J.; Aref, W.G. A Survey of Learned Indexes for the Multi-dimensional Space. ACM Comput. Surv. 2025, 58, 1–37. [Google Scholar] [CrossRef] [Scilit]
  24. Miao, Y.; Yu, J.; Li, J.; Li, X.; Feng, J.; Liu, Z.; Deng, R.H. Security-Enhanced Spatial Range Query Over Large-Scale Encrypted Mobile Cloud Datasets. IEEE Trans. Mob. Comput. 2026, 25, 1184–1199. [Google Scholar] [CrossRef] [Scilit]
  25. Kim, H.-I.; Hong, S.-T.; Chang, J.-W. (Eds.) Hilbert-curve based cryptographic transformation scheme for protecting data privacy on outsourced private spatial data. In Proceedings of the 2014 International Conference on Big Data and Smart Computing (BIGCOMP); IEEE: Bangkok, Thailand, 2014. [Google Scholar] [CrossRef] [Scilit]
  26. Jagadish, H.V. (Ed.) Linear clustering of objects with multiple attributes. In Proceedings of the 1990 ACM SIGMOD International Conference on Management of Data; Association for Computing Machinery: New York, NY, USA, 1990. [Google Scholar] [CrossRef] [Scilit]
  27. Li, M.; Jia, C.; Du, R.; Ha, G. Efficient Conjunctive Geometric Range Query Over Encrypted Spatial Data with Learned Index. IEEE Trans. Comput. 2025, 74, 3995–4009. [Google Scholar] [CrossRef] [Scilit]
  28. Wang, H.; Fu, X.; Xu, J.; Lu, H. Learned Index for Spatial Queries. In Proceedings of the 2019 20th IEEE International Conference on Mobile Data Management (MDM), Hong Kong, China, 10–13 June 2019; pp. 569–574. [Google Scholar] [CrossRef] [Scilit]
  29. Wang, Z.; Lu, J.; Wu, J.; Tian, Y.; Song, W.; Li, Q.; Zhang, D. Towards Privacy-Preserving Range Queries with Secure Learned Spatial Index over Encrypted Data. arXiv 2025, arXiv:251203669. [Google Scholar] [CrossRef] [Scilit]
  30. Wang, C.; Yu, J.; Zhao, Z. GLIN: A (G)eneric (L)earned (In)dexing Mechanism for Complex Geometries. In Proceedings of the 11th ACM SIGSPATIAL International Workshop on Analytics for Big Geospatial Data; Association for Computing Machinery: New York, NY, USA, 2023; pp. 1–12. [Google Scholar] [CrossRef] [Scilit]
  31. Boldyreva, A.; Chenette, N.; Lee, Y.; O’neill, A. (Eds.) Order-preserving symmetric encryption. In Annual International Conference on the Theory and Applications of Cryptographic Techniques; Springer: Cologne, Germany, 2009. [Google Scholar] [CrossRef] [Scilit]
  32. Li, M.; Wang, H.; Dai, H.; Li, M.; Chai, C.; Gu, R.; Chen, F.; Chen, Z.; Li, S.; Liu, Q.; et al. A Survey of Multi-Dimensional Indexes: Past and Future Trends. IEEE Trans. Knowl. Data Eng. 2024, 36, 3635–3655. [Google Scholar] [CrossRef] [Scilit]
  33. Leutenegger, S.T.; Lopez, M.A.; Edgington, J. (Eds.) STR: A simple and efficient algorithm for R-tree packing. In Proceedings of the 13th International Conference on Data Engineering; IEEE: Birmingham, UK, 1997. [Google Scholar] [CrossRef] [Scilit]
  34. Bobkina, V.; Arseniev, D.; Zhiltsova, A. (Eds.) Coordinate Support of Geographic Information Space; IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2020. [Google Scholar] [CrossRef] [Scilit]
  35. Tan, C.; Deng, X.; Zhang, L. Identification of block ciphers under CBC mode. Procedia Comput. Sci. 2018, 131, 65–71. [Google Scholar] [CrossRef] [Scilit]
  36. Praschl, C.; Krauss, O. Extending 3D geometric file formats for geospatial applications. Appl. Geomat. 2023, 16, 161–180. [Google Scholar] [CrossRef] [Scilit]
  37. Tóth, R.; Balla, D.; Zichar, M. (Eds.) Analysis and Optimization of KML Files; INTED2020 Proceedings; IATED: Valencia, Spain, 2020. [Google Scholar] [CrossRef] [Scilit]
  38. Portele, C. Opengis® Geography Markup Language (GML) Encoding Standard; Version 3.2.1; Open Geospatial Consortium: Arlington, VA, USA, 2007. [Google Scholar] [CrossRef]
  39. Tvrdy, P.; Long, J. National Transportation Library Datasets File Formats Dictionary; National Transportation Library: Washington, DC, USA, 2024. [Google Scholar] [CrossRef]
  40. Yusof, S.N.; Kamel Ariffin, M.R.; Lau, T.S.C.; Salim, N.R.; Yip, S.-C.; Yap, T.T.V. An IND-CPA Analysis of a Cryptosystem Based on Bivariate Polynomial Reconstruction Problem. Axioms 2023, 12, 304. [Google Scholar] [CrossRef] [Scilit]
  41. Boldyreva, A.; Chenette, N.; O’Neill, A. (Eds.) Order-preserving encryption revisited: Improved security analysis and alternative solutions. In Annual Cryptology Conference; Springer: Santa Barbara, CA, USA, 2011. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.