Dear Andrea,
Thank you for the idea. I though GeoServer can treat GeoJson just like it
treats Shapefiles. I didn't get why it is slow if the GeoJson is served as
WMS.
My Rest API is already serving data as GeoJson from PostGIS database. The
reason I don't want to use PostGIS store is because it will require to
directly connect to the database. This is not feasible if there are
external users of my Rest API.
I felt that if GeoServer can handle all those complex data format, GeoJson
is the easiest. I believe it will be very popular as it will bridge the gap
between Other Rest APIs and GeoServer.
On Sun, Jun 25, 2017 at 10:31 PM, Andrea Aime <[email protected]>
wrote:
> Hi,
> rendering from geojson is going to be _slow_ unless the dataset is very
> small (e.g. less than a MB, or in that ballpark) because
> the server has to parse a text based format, fully, every time, with no
> indexing support of any kind.
>
> If you are rendering many small short lived datasets it may be worthy to
> check the road of the datastore,
> a few small changes to the REST API to publish a GeoJSON file directly
> should do the trick (along with
> some packaging of the store to turn it into a community module [1]
>
> If instead the JSON size is substantial, or you need to do a lot of
> rendering on top of it, then probably
> best convert it into a PostGIS database table instead (or even just a
> shapefile). The importer module
> has a REST API that should help you do that, and setup the layer in a
> single shot, or you can
> look into using OGR2OGR to perform the translation.
>
> Hope this helps.
>
> Cheers
> Andrea
>
> [1] Ian, if you are reading this thread, do you think it would be worth
> doing anyways? Have you used
> that store in some capacity, did it do production or even just lab testing
> of any kind?
>
>
> On Sun, Jun 25, 2017 at 11:58 AM, Wondimagegn Tesfaye <[email protected]>
> wrote:
>
>> Dear Nuno,
>>
>> Thank you very much for the information. I am looking for a store that
>> can be accessed via GeoServer Rest API so that I can publish maps from
>> another api dynamically based on user request. Is there such a room with
>> the existing geotool plugin?
>>
>> Regards,
>> Wondimagegn
>>
>> On Sat, Jun 24, 2017 at 11:56 PM, Nuno Oliveira <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> As far as I know there is no specific data store for GeoJSON but there
>>> is a GeoJSON plugin in GeoTools:
>>> http://docs.geotools.org/latest/userguide/unsupported/geojson.html
>>>
>>> Not sure how difficult it would be to make it a data store that can be
>>> used by GeoServer (maybe it
>>> already is), probably someone else will provide a better feedback on
>>> this.
>>>
>>> That say, note that GeoTools has a MongoDB data store (unsupported
>>> module):
>>> http://docs.geotools.org/latest/userguide/library/data/mongodb.html
>>>
>>> You could put your files in MongoDB and publish them using MongoDB data
>>> source. Take in account
>>> that MongoDB stills an unsupported module.
>>>
>>> Regarding outputting GeoJSON, at least WFS can output GeoJSON:
>>> http://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html
>>>
>>> Regards,
>>>
>>> Nuno Oliveira
>>>
>>>
>>> On 06/24/2017 09:03 PM, Wondimagegn Tesfaye wrote:
>>>
>>> Dear Community,
>>>
>>> GeoJson is becoming very popular. I wanted to know if Geoserver latest
>>> version supports GeoJson data store in the latest version or if there is
>>> any plan.
>>>
>>> --
>>> Regards,
>>> Wondimagegn
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>
>>>
>>>
>>> _______________________________________________
>>> Geoserver-devel mailing
>>> [email protected]https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>>
>>> --
>>> Regards,
>>> Nuno Oliveira
>>> ==
>>> GeoServer Professional Services from the experts! Visit
>>> http://goo.gl/it488V for more information.
>>> ==
>>>
>>> Nuno Miguel Carvalho Oliveira
>>> @nmcoliveira
>>> Software Engineer
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054 Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313 <+39%200584%20962313>
>>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>>> http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
>>>
>>> -------------------------------------------------------
>>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>>> principi dettati dal D.Lgs. 196/2003.
>>>
>>> The information in this message and/or attachments, is intended solely for
>>> the attention and use of the named addressee(s) and may be confidential or
>>> proprietary in nature or covered by the provisions of privacy act
>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>>> copying, distribution, or either dissemination, either whole or partial, is
>>> strictly forbidden except previous formal approval of the named
>>> addressee(s). If you are not the intended recipient, please contact
>>> immediately the sender by telephone, fax or e-mail and delete the
>>> information in this message that has been received in error. The sender
>>> does not give any warranty or accept liability as the content, accuracy or
>>> completeness of sent messages and accepts no responsibility for changes
>>> made after they were sent or for other risks which arise as a result of
>>> e-mail transmission, viruses, etc.
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Geoserver-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>>
>>
>>
>> --
>> Regards,
>> Wondimagegn
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
>
> --
>
> Regards,
>
> Andrea Aime
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> phone: +39 0584 962313 <+39%200584%20962313>
> fax: +39 0584 1660272 <+39%200584%20166%200272>
> mob: +39 339 8844549 <+39%20339%20884%204549>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
--
Regards,
Wondimagegn
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel