Skip to Content
author's profile photo Former Member
Former Member

Exposing Spatial Data In a Calculation View

Hi Experts,

I have geospatial data and i would like to expose it in GEOJSON format.To do so i have written a calculation view with the below code and selected "VARCHAR" as data type for geometry column "SHAPE". To expose the data outside i have written a odata service which just seems to work but i am not sure if this is the correct way to do this.

Calc View Code:

SELECT "TOID" AS TOID,

"SHAPE".ST_ASGEOJSON() AS SHAPE, 1 AS COUNTER

FROM "ABC"."xyz_buildings";

I have gone through this video which explains how we do geospatial joins in calc views but its does not speak about exposing the data.

https://www.youtube.com/watch?v=d_Ai7sJDraE&list=PLkzo92owKnVxG2luiBuXD57SYRFhzXhiA∈dex=8

Thanks & Regards

Madhusudan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.