and lets keep the discussion public for others to contribute
---------- Forwarded message --------- From: Imran Rajjad <raj...@gmail.com> Date: Wed, Feb 5, 2020 at 1:41 PM Subject: Re: [Geoserver-users] Geojson to Geoserver To: Samann Long <longsaman...@kit.edu.kh> Perhaps I am not getting the use case correctly, You have GeoJSON content stored as plain text and you want those records to be properly stored in GIS tables in PostGIS? If so ? ever heard of GDAL command line binaries? You can directly import geojson files into Post GIS tables from shell. This is probably not for the faint hearted but this will solve your problem. You can directly push geojson files into PostGIS tables and then have them publish over Geoserver for WMS and WFS services. Here is a complete manual https://gdal.org/gdal.pdf regards, Imran On Wed, Feb 5, 2020 at 1:16 PM Samann Long <longsaman...@kit.edu.kh> wrote: > Actually, my Postgres PostGIS database store geojson file for specific > layers. I want to retrieve that geojson and send it to geoserver using > RestAPI, then create its specific layer and register to WFS services and > return it back to frontend. So by doing this, I can get the specific layer > of an area and map. When I put some machine in that area I can keep track > of machine through GPS data which can represent where is the machine right > now in that area > > On Wed, Feb 5, 2020 at 2:49 PM Imran Rajjad <raj...@gmail.com> wrote: > >> Can you please elaborate more on how you are trying to do it? e.g Rest >> Url and the content of your requests etc. >> >> Take a look here, the examples regarding uploading shape files should be >> enough to give you a hint on how to post information about data. >> >> https://docs.geoserver.org/stable/en/user/extensions/importer/rest_examples.html >> >> regards, >> Imran >> >> On Wed, Feb 5, 2020 at 12:19 PM Samann Long <longsaman...@kit.edu.kh> >> wrote: >> >>> Hello, I am having some trouble with how to import geojson file to >>> Geoserver through RestAPI? I search and see Importer Extension and everyone >>> said we can do with that extension but i'm still having no idea how to do >>> it. >>> Thank you >>> _______________________________________________ >>> Geoserver-users mailing list >>> >>> Please make sure you read the following two resources before posting to >>> this list: >>> - Earning your support instead of buying it, but Ian Turton: >>> http://www.ianturton.com/talks/foss4g.html#/ >>> - The GeoServer user list posting guidelines: >>> http://geoserver.org/comm/userlist-guidelines.html >>> >>> If you want to request a feature or an improvement, also see this: >>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>> >>> >>> Geoserver-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >> >> >> -- >> I.R >> > -- I.R -- I.R
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users