Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bluespatial
New Member

odata spatial service

I have setup an OData service that imports into powerBI fine. 

 

https://demo.bluespatial.com/odata/layers/Schools1?$top=20

 

However when I add a map vizualization and set the Location to the geometry field nothing happens / the geometries are not drawn. 

 

I am leveraging code from Github - https://github.com/OData/ODataSamples/tree/master/WebApi/v4/ODataSpatialSample which returns the geometries as MS Geometry JSON format.

 

Should I be returning as TopoJSON or some other format for my REST endpoint to be able to function with Power BI?

2 REPLIES 2
Anonymous
Not applicable

@bluespatial,

Which field do you set the Location type? I put all data into a JSON file and connect to the JSON file in Power BI Desktop, then extract all columns and create a map using the city column, please check if it returns your expected result.

https://1drv.ms/u/s!AhsotbnGu1Nok0pvPuF9WuASni7G

Regards,
Lydia

My geometry are pregeocoded. I am not trying to specify a city which is then geocoded and then placed on the map. I have the actual coordinates. Also I have more than just point geometries. I also have polygons etc. 

 

I also need to know if it will work with OData with a spatial field.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors