8

Is there a way to import GeoJSON into GeoServer using some extension. I do not want to import to PostGIS, or intermediately convert to shapefiles because that looses the styles but may be that is separate issue may be with ogr2ogr.

I have installed importer and importer-bdb extension. But still format not recognized error was coming while trying to import via the REST API. Same error was coming while trying to import via importer via web interface of GeoServer.

Is there some other extension which does it?


Little background of above process. I have some R-lang scripts which creates GeoJSON (120MB) which I am trying to upload to GeoServer so that I can see results overlaid on Google Maps via WMS/WFS.

6
  • 1
    GeoJSON does not have styles so I am not sure what your actual problem is. Commented Jun 16, 2017 at 8:13
  • GeoServer isn't a database/datastore, therefore you can't import data into it.
    – nmtoken
    Commented Jun 16, 2017 at 8:14
  • 2
    there is an unsupported geoJSON datastore but it won't set up a style for you.
    – Ian Turton
    Commented Jun 16, 2017 at 10:05
  • 1
    You could always convert to a shapefile and import that (no need to set up postgis) Commented Jun 16, 2017 at 10:25
  • 1
    @nmtoken I know geoserver uses a directory to store all the shapefiles and serve it using WMS. Can I serve geojson from a directory using geoserver. I have about 120MB geojson so I have to serve it based on bounding box. So I feel serving it as WMS with a bounding box would be ideal. Commented Jun 16, 2017 at 13:15

1 Answer 1

2

Actually, Geoserver don't support GeoJSON files likes store. But you have another option, you can use MongoDB extension to use MongoDB like Database, it's a very good option with this kind of files. Good luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.