Skip to main content
corrected spelling, removed thanks
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

I would like to create a shape fileshapefile containing the extents of each of the rasters in a directory. Is it possible to capture the extent of a raster using Python?

UPDATE: Thanks for the fix. II am trying to add the filename to the table and for some reason it inserts a new row into the table and doesn't accept "updateRow(row)"? what am I doing wrong? Also the files don't seem to retain the projection I assign them.

I would like to create a shape file containing the extents of each of the rasters in a directory. Is it possible to capture the extent of a raster using Python?

UPDATE: Thanks for the fix. I am trying to add the filename to the table and for some reason it inserts a new row into the table and doesn't accept "updateRow(row)"? what am I doing wrong? Also the files don't seem to retain the projection I assign them.

I would like to create a shapefile containing the extents of each of the rasters in a directory. Is it possible to capture the extent of a raster using Python?

UPDATE: I am trying to add the filename to the table and for some reason it inserts a new row into the table and doesn't accept "updateRow(row)"? what am I doing wrong? Also the files don't seem to retain the projection I assign them.

edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
script corrected and posted for anyone who needs
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
GDAL option issues
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
updated code
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
solution accepted but issue with properly adding file info into the shapefile
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
convoluted solution possible but would like to make the process more efficient
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
convoluted solution possible but would like to make the process more efficient
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading