#30645: GEOSGeometry incorrectly transforms geometry
-------------------------------------+-------------------------------------
               Reporter:  Yury       |          Owner:  nobody
  Ryabov                             |
                   Type:  Bug        |         Status:  new
              Component:  GIS        |        Version:  2.2
               Severity:  Release    |       Keywords:  SRID, geometry,
  blocker                            |  GIS, GEOS
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Lets demonstrate the bug with a point geometry in WGS84 `Point(37 51)`.

 Here is the plain-sql example of how PostGIS transforms a single point:


 {{{
 SELECT ST_Transform(ST_GeomFromEWKT('SRID=4326;Point(37 51)'), 3857) AS
 result
 --------------------------------------------
 result                                     |
 -------------------------------------------|
 POINT (4118821.159351122 6621293.722740169)|
 }}}

 Lets try to do the same with GEOSGeometry:


 {{{
 >>> from django.contrib.gis.geos import GEOSGeometry
 >>> GEOSGeometry('srid=4326;Point(37 51)').transform(3857,
 clone=True).ewkt
 'SRID=3857;POINT (5677294.030456952 4439106.787250583)'
 }}}

 The result is quite different.

 Not sure if this bug belongs to Django or GEOS or it is something wrong
 with my setup. GEOS version is 3.7.2.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30645>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.1d34a3a51fddb83f2355bc240ac79de5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to