Hi,

Im relatively new to the GDAL package but I've got the feeling I'm hitting
this same (old) problem.

At the moment I am trying to write a python script that transfers sets of
shapefiles in the Dutch nation grid (EPSG 28992) to WGS84, ultimately to
export them to KML files. Therefore I run the following code:

-snip-
inSpatialRef.ImportFromEPSG(28992)
outSpatialRef.ImportFromEPSG(4326)
coordTrans = osr.CoordinateTransformation(inSpatialRef, outSpatialRef)
-snip-
geom.Transform(coordTrans)

throws the following error:

Traceback (most recent call last):
  File "Y:/template(do not remove)/py scripts/reproj_osg.py", line 66, in
<module>
    geom.Transform(coordTrans)
  File "C:\Python26\lib\site-packages\osgeo\ogr.py", line 3173, in Transform
    return _ogr.Geometry_Transform(*args)
TypeError: in method 'Geometry_Transform', argument 2 of type
'OSRCoordinateTransformationShadow *'

I tried it with other (NAD) projections and that works fine. Could this
still be the same issue?

Best regards,
 Tom
-- 
View this message in context: 
http://n2.nabble.com/PROJ-4-EPSG-28992-tp2033665p4066454.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to