#16864: django.contrib.gis.geos.GEOSGeometry doesn't accept -1 as SRID value (or
any negative number) in WKT format
-----------------------------+----------------------------
 Reporter:  marcel.dancak@…  |          Owner:  nobody
     Type:  Bug              |         Status:  new
Milestone:                   |      Component:  GIS
  Version:  SVN              |       Severity:  Normal
 Keywords:                   |   Triage Stage:  Unreviewed
Has patch:  1                |  Easy pickings:  0
    UI/UX:  0                |
-----------------------------+----------------------------
 It's not possible to create geometry object from WKT string with negative
 SRID, for example GEOSGeometry("SRID=-1;POINT(2639.2 -1076.5)"), because
 django.contrib.gis.geometry.regex.wkt_regex accepts only positive numbers.
 On the other side, creating point directly as
 django.contrib.gis.geos.Point(2639.2, -1076.5, srid=-1) is valid, and it's
 not so unusual to use -1.

 If you consider this as a bug, solution is very trivial, but I have
 included patch as well. Tkanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16864>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to