DEV Community

loading...

Discussion on: Hands-on PostGIS, exploring the Geospatial capabilities

Collapse
jinagamvasubabu profile image
vasubabu

very nice article.. thanks for sharing it. one question how did you render on a map of all these polygons?

google maps or osm?

if its osm,can you please tell how did you do it?

Collapse
maptastik profile image
Ryan Cooper

Looking at the screenshots, it appears @aritra used geojson.io to render the GeoJSON output from the PostGIS queries. This a great tool for creating spatial data or for viewing spatial data stored formatted to meet the GeoJSON specification.

To the question of rendering, it is worth noting that OSM itself is not a renderer. It is a source of data that can used in a lot of different ways, including tiling into the basemap you see in the screenshots. However, there are multiple APIs and software that can render these map tiles. For JavaScript, Leaflet, OpenLayers, ArcGIS JS API, Mapbox GL JS, and Tangram are examples of APIs you can use to render GeoJSON feature data atop tiled basemaps. It is less important what the source of the data is in the basemap tiles than that the basemap is tiled in a way that these APIs can render them properly. Google makes the distinction between data source and renderer murky because their basemap tiles are the default for the Google Maps API.

Collapse
jinagamvasubabu profile image
vasubabu

Got it, Thanks

Collapse
aritra profile image
Aritra Das Author

Thanks, Ryan. You are absolutely right on what you said.

Collapse
aritra profile image
Aritra Das Author

Hey, I used geojson.io to render the maps.
Also, I was using dbeaver, where the result of any particular query/ any row of a table can also be visualized on a Mapbox map.