question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add support for GeoJSON in geospatial functions

See original GitHub issue

Currently, only WKT are supported as serializable/deserializable when converting to Geometry objects. However, the API used by Presto to create Geometries also allows for deserialization from GeoJSON, as well. These should be supported in addition to WKT and binary.

Proposing the addition of:

  • ST_GeometryFromGeoJSON
    • Accepts JSON, returns GEOMETRY_TYPE_NAME
  • ST_AsGeoJSON (deserialization)
    • Accepts GEOMETRY_TYPE_NAME, returns JSON

These are complimentary to the FromText/AsText functions, and handle similarly in errors, NULL, etc.

CC @mbasmanova

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jagillcommented, Dec 11, 2019

This issue was closed because the OP ended up not needing the functionality, so we didn’t have a good use case for it. Interoperability with Mongo is a compelling case. We can definitely put this in the queue.

1reaction
antonymayicommented, Dec 11, 2019

ok, I guess it is tracked under #12478

Read more comments on GitHub >

github_iconTop Results From Across the Web

56. What is GeoJson Data. Adding Geo Spatial ... - YouTube
In this video we will see what is a Geo JSON Data and how to add the Geo Spatial data to store the...
Read more >
Spatial analytics with GeoJSON in BigQuery - Google Cloud
BigQuery's geospatial support allows users to import and analyze GEOGRAPHY data types made up of points, lines, and polygons at massive scales ...
Read more >
12.17.11 Spatial GeoJSON Functions
This section describes functions for converting between GeoJSON documents and spatial values. GeoJSON is an open standard for encoding ...
Read more >
GeoJSON
GeoJSON is a format for encoding a variety of geographic data structures. ... GeoJSON supports the following geometry types: Point , LineString ,...
Read more >
Geospatial and GeoJSON location data in Azure Cosmos DB
How can I query spatial data in Azure Cosmos DB in SQL and LINQ? ... Azure Cosmos DB supports indexing and querying of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found