[gdal-dev] How to convert GeoJson to EsriJson

Mateusz Loskot mateusz at loskot.net
Tue Jan 21 13:11:27 PST 2020


Well, the driver says no and I'm not aware of any workarounds to make it
say yes or make GeoJSON driver output yhr ESRIJSON.

GDAL 2.3 extracted read-only ESRIJSON driver from read-write GeoJSON
driver.

Mateusz Loskot, mateusz at loskot.net
(Sent from mobile, may suffer from top-posting)

On Tue, 21 Jan 2020, 21:44 Lucas Caixeta Lucas GT4W, <
lucascaixeta.gt4w at gmail.com> wrote:

> Thank you Mateus!! you asnwer was very enlightening.
>
> So, problaby it is not possible to do this parse right? is there a way to
> get a esri type geojson?
>
> Best regards.
>
> Mateusz Loskot <mateusz at loskot.net> escreveu no dia terça, 21/01/2020
> à(s) 18:37:
>
>> On Tue, 21 Jan 2020 at 21:29, Lucas Caixeta Lucas GT4W <
>> lucascaixeta.gt4w at gmail.com> wrote:
>>
>>>
>>> I tried to convert geojson to esrijson either but got an error
>>> this message, ESRIJSON driver does not support data source creation.
>>>
>>> ------
>>> $ ogr2ogr -f ESRIJSON  file_output.json cities.json
>>> ERROR 1: ESRIJSON driver does not support data source creation.
>>>
>>
>> I'd say, the error is clear.
>>
>> Additionally, https://gdal.org/drivers/vector/esrijson.html says
>> "This driver can read the JSON output of Feature Service..."
>> and nowhere says read/write.
>>
>> TL;TR: ESRIJSON can only read, AFAIK.
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
> --
>
>
> *LUCAS CAIXETA SIMÃO*
> Analista de Sistemas
>
> *www.gt4w.com.br <http://www.gt4w.com.br/>*Fone/Fax: (35) 3822-8259
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200121/89c2a62b/attachment.html>


More information about the gdal-dev mailing list