Opened 3 years ago

Closed 3 years ago

#19865 closed Bug (invalid)

Point.transform(srid=1234) is wrong documented

Reported by: jarus Owned by: nobody
Component: GIS Version: 1.4
Severity: Normal Keywords: gis point documentation srid
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the documentation is srid as keyword defined for the Point.transform method but the correct keyword argument is ct. There a two simple solutions, correct the kwarg in the documentation or in the code base. Also this is very confusing because there is a FutureWarning warning in 1.4.

FutureWarning: Calling transform() with no SRID will raise GEOSException in v1.5

I interpreted this to correct the method call to mypoint.transform(srid=4264) but this raise the exception that the method doesn't have this kwarg.

Best regards,
Christoph

Change History (1)

comment:1 Changed 3 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

I think you mixed two different transform methods:

If you read somewhere in the docs that Point.transform takes a srid parameter, please give us the exact location and reopen the ticket.

Note: See TracTickets for help on using tickets.
Back to Top