> Is X not Lat and Y not Long?
No, you'll need to reverse that.
--
James Card -- <http://jdcard.com/>
Often there are several ways to understand a given set of
facts; some of them may be more useful than others.
spatialite> SELECT AsGeoJSON(ST_Transform(MakePoint(-75.94499, 45.26621, 4326), 32618));
{"type":"Point","coordinates":[425866.0552741262,5012957.964198887]}
spatialite> .nullvalue NULL
spatialite> SELECT AsGeoJSON(ST_Transform(GeomFromGeoJSON('{"type":"Point","coordinates":[-75.94499,45.26621]}'), 32618));
NULL
However, where all involved parties have a prior arrangement, alternative coordinate reference systems can be used without risk of data being misinterpreted.
I suppose that those who need to use other coordinate reference systems will continue to use the 2008 GeoJSON specification.
Perhaps GeomFromGeoJSON should use WGS 84 as default if CRS member is missing, but with on override option if user happens to know the correct CRS by some sort of prior arrangement
GeomFromGeoJSON( geoJSONGeometry String [, SRID Integer]) : Geometry
-Jukka Rahkonen-
-Jukka Rahkonen-