Opening 'geojson' file with Mapwingis

Hi @pmeems, @jerryfaust,
Is it possible to open ‘geojson’ fileformat with Mapwingis?
Or should I convert the .geojson to .shp with some of the GDAL functionalities?

Thank you for the help.

Hello George.

I just checked, and there is a built-in GDAL geojson driver. This means that you should be able to set up and OGR datasource and open the geojson in MapWinGIS. You should read up on the driver capabilities, and also review OGR datasources in our online help.

Let us know then if you have more questions.


1 Like

Hi @jerryfaust,
Thank you for the quick reply.
In OGR datasources, I see code examples of only ‘PostGIS’ database.
Is there some example where I can see how to work with an actual file?

I’m sorry, George, but I know of no examples.

All you can do sometimes is check out their documentation, search online for more examples, or perhaps post a query on the GDAL site for examples.

As an alternative, you could try converting to Shapefile (as you suggested); they show a sample as such on their website; and if that works, you can easily load the shapefile.

ogr2ogr -f "ESRI Shapefile" cities.shp http://featureserver/cities/.geojson OGRGeoJSON

Good luck.

1 Like

Thank you for the help @jerryfaust.