Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache Calcite official documentation Chinese version-Advanced-2. Space (Spatial)

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The second part is the Advanced space (Spatial).

   Calcite aims to implement the OpenGIS simple feature implementation Specification (SQL), a standard implementation of spatial databases such as PostGIS and H2GIS.

   We also aim to add optimizer support for spatial indexes and other forms of query optimization.

2.1 introduction

   spatial database is optimized for storing and querying data representing objects defined in geometric space.

   Calcite's support for spatial data includes:

GEOMETRY data types and subtypes, including POINT,LINESTRING and spatial functions (prefixed as ST_; we implemented 35 of them in the OpenGIS specification)

   will also at some point include query rewriting to use spatial indexes. 2.2 enable space support

   although the GEOMETRY data type is built-in, these features are not enabled by default. You need to add a fun=spatial to JDBC connection string to enable these features. For example, sqlline:

$. / sqlline >! connect jdbc:calcite:fun=spatial "sa" SELECT ST_PointFromText ('POINT (- 71.064544 42.28787)') +-- + | EXPR$0 | +-- + | {"x":-71.064544 "y": 42.28787} | +-+ 1 row selected (0.323 seconds) 2.3Thank you

The OpenGIS implementation of    Calcite uses Esri geometry API. Thanks to their community for their help.

While    is developing this feature, we make extensive use of PostGIS documentation and testing and H2GIS documentation, and refer to two reference implementations when the specification is not clear. Thank you for these wonderful projects.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report