Re: [gdal-dev] GDAL/OGR (skeleton of) Python API documentation available on http://gdal.org/python/
Wow, cool! Thank you very much! Frank Am 12.02.2011 14:23, schrieb Even Rouault: Hi, just to mention you can now find a GDAL/OGR Python API documentation on http://gdal.org/python/ . http://trac.osgeo.org/gdal/wiki/GdalOgrInPython has been updated to point to it. Disclaimer: don't expect too much of it. This is just the result of a run of epydoc on the osgeo module. You will essentially get the names of available classes and methods, but very few descriptions of what they do (except for OGR classes where the OGR C documentation is copied). Best regards, Even ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Frank BRONIEWSKI METRICO s.à r.l. géomètres technologies d'information géographique rue des Romains 36 L-5433 NIEDERDONVEN tél.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] generate vrt from grass data
Le dimanche 13 février 2011 05:57:24, Massimo Di Stefano a écrit : > Hi All > > i'm using python-gdal to generate vrt file, it works fine but for some data > like : > > (from the spearfish dataset) the raster file : > > spearfish60/PERMANENT/cellhd/tractids > > > gdalinfo give me : > > > http://www.geofemengineering.it/data/vrtlog.txt > > tring to generate a vrt freeze my shell and i have to force quit it. > > i tested it on osx 10.6.6 (gdal.framework, grass6.5.svn) > > and on linux debian sid (gdal svn , grass65 svn) > > i got the same results ( ctrl+D ctrl+C doesn't work, force quit the shell) Should be fixed by http://trac.osgeo.org/gdal/ticket/3961 The huge color table revealed quadratic performance in the XML serialization. > > > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] convert shapefile to raster
Rashad, This would probably give you a Float64 type bands with the pixels valued at 255.0 Try setting the band type to Byte using the -ot option. On Sun, Feb 13, 2011 at 4:11 PM, Mohammed Rashad wrote: > > How to convert shapefile to a raster image using gdal > > I tried > gdal_rasterize -burn 255 -burn 0 -burn 0 -ts 100 100 -l ernakulam > ernakulam.shp ekm.tif > > gdal_rasterize -A DIST -ts 100 100 -l ernakulam ernakulam.shp ekm.tif > > gdal_rasterize -A AREA -ts 100 100 -l ernakulam ernakulam.shp ekm.tif > > but still no output > > > > ogrinfo -al -so ernakulam.shp > > INFO: Open of `ernakulam.shp' > using driver `ESRI Shapefile' successful. > > Layer name: ernakulam > Geometry: Polygon > Feature Count: 16 > Extent: (76.168263, 9.788524) - (76.840498, 10.301794) > Layer SRS WKT: > (unknown) > AREA: Real (20.15) > PERIMETER: Real (20.15) > INDIA_: Real (11.0) > INDIA_ID: Real (11.0) > STATE: String (20.0) > DIST: String (20.0) > TALUK: String (20.0) > CENTROID_Y: Real (20.15) > CENTROID_X: Real (20.15) > i selected AREA > > -- > Thanks && Regards > Rashad > > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] convert shapefile to raster
How to convert shapefile to a raster image using gdal I tried gdal_rasterize -burn 255 -burn 0 -burn 0 -ts 100 100 -l ernakulam ernakulam.shp ekm.tif gdal_rasterize -A DIST -ts 100 100 -l ernakulam ernakulam.shp ekm.tif gdal_rasterize -A AREA -ts 100 100 -l ernakulam ernakulam.shp ekm.tif but still no output ogrinfo -al -so ernakulam.shp INFO: Open of `ernakulam.shp' using driver `ESRI Shapefile' successful. Layer name: ernakulam Geometry: Polygon Feature Count: 16 Extent: (76.168263, 9.788524) - (76.840498, 10.301794) Layer SRS WKT: (unknown) AREA: Real (20.15) PERIMETER: Real (20.15) INDIA_: Real (11.0) INDIA_ID: Real (11.0) STATE: String (20.0) DIST: String (20.0) TALUK: String (20.0) CENTROID_Y: Real (20.15) CENTROID_X: Real (20.15) i selected AREA -- Thanks && Regards Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev