[gdal-dev] ArcGIS 10

2010-08-11 Thread Discourse Maps
I hear the new ArcGIS10 has GDAL and NumPy built into the geoprocessor. If this is true, does that mean that users will not have to install the various Python library bindings GDAL, numpy, etc. after a full Arc10 install?

[gdal-dev] Raster to array, then array to Raster (while preserving projection info)

2010-06-21 Thread Discourse Maps
I am using convertRastertoArray (modifying the array) and then using convertArraytoRaster. The problem is that when I convert back to raster, the projection information is lost. The projection of my input is: WGS 84, UTM 17N. (EPSG = 32617) Can someone provide some code as to the

[gdal-dev] Creating a simple shapefile with ogr

2010-05-27 Thread Discourse Maps
Hi, I am trying to create a basic polygon shapefile using OGR in Python. Any help with fixing my code is appreciated. Currently, it creates a shapefile, but nothing shows up in ArcGIS. # GDAL from osgeo import ogr, gdal from osgeo.gdalconst import * # sample data data =

[gdal-dev] Using GDAL with Windows 7

2010-05-04 Thread Discourse Maps
Greetings, Is GDAL compatible with Windows 7? Specifically I am trying to use a Windows 7 machine (with ArcGIS 9.3.1 and Python 2.5) to install the bindings. GDAL 1.6 did not work, but perhaps the newest version of GDAL 1.7.x does?? Thanks!

[gdal-dev] GDAL Python Projection Question

2010-04-12 Thread Discourse Maps
Hi, I am attempting to use GDAL with Python to reproject a raster (called 'deforest') from Geographic Coordinate System to NAD83_UTM10N. Most of the projection tutorials seem to be in C... Can anyone offer assistance for Python? My current code: os.chdir(gp.workspace) ds =

[gdal-dev] (no subject)

2010-03-01 Thread Discourse Maps
I am simply trying to open a raster image, manipulate in NumPy and then spit it back out in GDAL. I am having trouble setting null data... I tried: ds.GetRasterBand(1).SetNoDataValue( - ) but nothing seems to work. Any help is appreciated! Below is my code: #! /usr/bin/env python