[gdal-dev] Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

2013-05-13 Thread Alessandro Candini
I cannot import gdal utilities anymore. I was working on a project on an Arch Linux machine, using Django 1.5.1 and GDAL 1.9.2. Today I have updated my distro and the DataSource failed its import: from django.contrib.gis.gdal import DataSource ... Exception Value: cannot import name DataSource

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Yeah Paolo, your solution is probably the easiest way to reach my goal, I did't thought at it... Thanks! On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini wrote: You are right: I have put ogr2ogr.py file inside /usr/bin and... user@office ~ $ ogr2ogr.py ERROR: Python bindings of

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
? Maybe with a bunch of GDAL python functions already present in version 1.7.3, I can get the same result... Any suggestions? Selon Alessandro Candini: Thanks. But is it already included in GDAL distribution? I have version 1.7.2 on my system and I did not found this file in the whole system

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
://lists.osgeo.org/mailman/listinfo/gdal-dev -- Alessandro Candini MEEO S.r.l. Via Saragat 9 I-44122 Ferrara, Italy Tel: +39 0532 1861501 Fax: +39 0532 1861637 http://www.meeo.it "ATTENZIONE:le informazioni contenute in questo messaggio so

[gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Hi list. I have to perform the following command: ogr2ogr -t_srs EPSG:900913 output.shp input.shp but inside a python script. So I have included the OGR library with import ogr but I do not know what are the commands in python that substitute the ogr2ogr tool. Does it exist an analogue t

[gdal-dev] Getting SRID from ESRI shapefile

2012-02-06 Thread Alessandro Candini
Is it possible to get a SRID code from an ESRI shapefile? For example, I've got the following: ~ $ ogrinfo -al LC_FIN_smooth.shp | head -n 30 INFO: Open of `LC_FIN_smooth.shp' using driver `ESRI Shapefile' successful. Layer name: LC_FIN_smooth Geometry: Polygon Feature Count: 33308 Extent: