Opened 9 years ago

Closed 9 years ago

#2400 closed defect (fixed)

epsg_tr.py -postgis is broken in stable branch

Reported by: msieczka Owned by: hobu
Priority: high Milestone: 1.5.4
Component: SWIG (all bindings) Version: svn-trunk
Severity: major Keywords:
Cc: warmerdam

Description

GDAL 1.5 branch, SVN r14575.

Example:

$ epsg_tr.py 2180 -postgis
BEGIN;
---
--- EPSG 2180 : ETRS89 / Poland CS92
---
Traceback (most recent call last):
  File "/usr/local/bin/epsg_tr.py", line 182, in <module>
    trHandleCode(code, gen_dict_line, report_error, output_format)
  File "/usr/local/bin/epsg_tr.py", line 114, in trHandleCode
    wkt = gdal.EscapeString(wkt,scheme=gdal.CPLES_SQL)
AttributeError: 'module' object has no attribute 'EscapeString'

Change History (2)

comment:1 Changed 9 years ago by Even Rouault

Cc: warmerdam added
Component: UtilitiesSWIG (all bindings)
Owner: changed from warmerdam to hobu

Yes, this is a problem with the new generation python bindings in 1.5.

The EscapeString? binding was only introduced in NG bindings in trunk in r13402.

comment:2 Changed 9 years ago by hobu

Resolution: fixed
Status: newclosed

This made it into 1.6, but it was not backported to 1.5

Note: See TracTickets for help on using tickets.