[QGIS-Developer] CRS for GeoJson Data

Etienne Trimaille etienne.trimaille at gmail.com
Fri Nov 24 07:18:27 PST 2017


We are using GeoJSON on your plugin, with different projections, it works
well, no problem to read it in QGIS.

2017-11-24 15:54 GMT+01:00 C Hamilton <adenaculture at gmail.com>:

> Given that the GeoJSON standard specifies WGS84 shouldn't that be the
> default that QGIS uses when it saves a GeoJSON file? I guess there could be
> an option that would allow legacy GeoJSON files. What would it take to have
> QGIS always save WGS84 by default?
>
> For now I am updating Lat Lon Tools to support GeoJSON points. For my
> purposes I will stick by the standard and not worry about alternative CRS
> GeoJSON files.
>
> Calvin
>
> On Wed, Nov 22, 2017 at 5:23 PM, Even Rouault <even.rouault at spatialys.com>
> wrote:
>
>> On mercredi 22 novembre 2017 15:08:08 CET Tom Chadwin wrote:
>>
>> > I remember irritated tweets from someone like Sean Gillies involved the
>> spec
>>
>> > about how projected CRSes had no place in GeoJSON.
>>
>> >
>>
>>
>>
>> The last year standardized version of GeoJSON, IETF RFC7946, mentions in
>>
>> https://tools.ietf.org/html/rfc7946#page-12
>>
>>
>>
>> """
>>
>> The coordinate reference system for all GeoJSON coordinates is a
>>
>> geographic coordinate reference system, using the World Geodetic
>>
>> System 1984 (WGS 84) [...]
>>
>> Note: the use of alternative coordinate reference systems was
>>
>> specified in [GJ2008], but it has been removed from this version of
>>
>> the specification [...]
>>
>> """
>>
>>
>>
>> Regarding OGR, it will support reading & writing GeoJSON files with any
>> CRS. Unless that on the write side you specify RFC7946=YES as layer
>> creation option, in which case automatic reprojection to WGS84 is done.
>>
>>
>>
>> Even
>>
>>
>>
>> --
>>
>> Spatialys - Geospatial professional services
>>
>> http://www.spatialys.com
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171124/fc315202/attachment.html>


More information about the QGIS-Developer mailing list