|
I'm trying to incorporate pyproj into a GRASS python
script (Transforming coordinates this way seems way faster than
importing to one LOCATION, then v.proj to another) But, I'm getting
this error when I try to use the pyproj.transform
function: raise TypeError('input must be an array, list, tuple or scalar') TypeError: input must be an array, list, tuple or scalar Before running the python script I do the usual: export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/" export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/grass" export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/grass/script" If I comment out the last export line, the pyproj command runs successfully (and the grass modules are still loaded OK). Is there something in the grass.script modules that somehow conflicts with pyproj? Is it OK to leave out the last PYTHONPATH line? Thanks, Micha -- Micha Silver GIS Consulting 052-3665918 http://www.surfaces.co.il |
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
