Re: [gdal-dev] zonal statistics with gdal

2012-06-19 Thread Petteri Packalen
Derek, Look at the http://starspan.projects.atlas.ca.gov project. Petteri On Tue, 19 Jun 2012, jdmorgan wrote: Hello, Is there a way to do something along the lines of zonal statistics with gdal.Basically, I have a county shape file and a classified raster dataset.I would like to count the

Re: [gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?

2012-06-19 Thread Even Rouault
Le mardi 19 juin 2012 23:55:49, dcd a écrit : > Hi, > > Is it possible to spatially subset an HDF4Image that contains multiple > subdatasets using gdal_translate (GDAL 1.9.1)? When using a spatial subset > switch ("-a_ullr"), I get the following response: > > "Input file contains subdatasets. Ple

[gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?

2012-06-19 Thread dcd
Hi, Is it possible to spatially subset an HDF4Image that contains multiple subdatasets using gdal_translate (GDAL 1.9.1)? When using a spatial subset switch ("-a_ullr"), I get the following response: "Input file contains subdatasets. Please, select one of them for reading." This happens regardle

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread Even Rouault
Le mardi 19 juin 2012 21:41:06, xavier lhomme a écrit : > From specification > > When using the HTTP POST method, the content type for XML encoded WFS > requests must be set to text/xml. When using the HTTP POST method, the > content type for KVP encoded WFS requests must be set to > application/

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread xavier lhomme
>From specification When using the HTTP POST method, the content type for XML encoded WFS requests must be set to text/xml. When using the HTTP POST method, the content type for KVP encoded WFS requests must be set to application/x-www-form-urlencoded and the content of the document must be equiv

Re: [gdal-dev] MSSQL Spatial and UTF-8

2012-06-19 Thread Jukka Rahkonen
Gunter Becker csogis.de> writes: > > Hi, > > I'm trying to import a shapefile via ogr2ogr into a SQL Server 2008 DB. When > looking at the created table I realised that some columns have some ugly > columnnames. Same to the strings in the data of this table. The problem is > caused by some spec

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-19 Thread Etienne Tourigny
On Tue, Jun 19, 2012 at 2:25 PM, Paolo Corti wrote: > Hi Etienne > >> I would guess your netcdf and gdal installation do not have netcdf-4 support. >> And probably a 'gdalinfo ' shows the hdf5 driver picks it up, right? > > That was! > I was missing out the --enable-netcdf-4 option: after recompil

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread Even Rouault
Le mardi 19 juin 2012 17:06:17, xavier lhomme a écrit : > Hi > I tried to submit a POST request with the KVP form to an ArcGIS Server 10.0 > but in response I've got an XML Parsing error. > > Do I need to translate the KVP form of the url into an XML form ? Yes, the content you send in a POST is

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-19 Thread Paolo Corti
Hi Etienne > I would guess your netcdf and gdal installation do not have netcdf-4 support. > And probably a 'gdalinfo ' shows the hdf5 driver picks it up, right? That was! I was missing out the --enable-netcdf-4 option: after recompiling netcdf with that option option and then recompiling GDAL ev

Re: [gdal-dev] zonal statistics with gdal

2012-06-19 Thread Alexander Bruy
Hi, you can use GDAL Python bindigs for this [0, 1]. The process may look as open shape and raster, then convert pixel coordinates into map (shape) coordinates and process only pixels inside your polygon. [0] http://gdal.org/gdal_tutorial.html [1] http://gdal.org/ogr/ogr_apitut.html 2012/6/19 jd

[gdal-dev] zonal statistics with gdal

2012-06-19 Thread jdmorgan
Hello, Is there a way to do something along the lines of zonal statistics with gdal.Basically, I have a county shape file and a classified raster dataset.I would like to count the number of raster pixels/county (FIPS).Is this possible with GDAL/OGR?If so can someone point me in the right dire

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread xavier lhomme
Hi I tried to submit a POST request with the KVP form to an ArcGIS Server 10.0 but in response I've got an XML Parsing error. Do I need to translate the KVP form of the url into an XML form ? xav 2012/6/12 Even Rouault > Le mardi 12 juin 2012 14:38:05, xavier lhomme a écrit : > > Hello > > >

[gdal-dev] MSSQL Spatial and UTF-8

2012-06-19 Thread Gunter Becker
Hi, I'm trying to import a shapefile via ogr2ogr into a SQL Server 2008 DB. When looking at the created table I realised that some columns have some ugly columnnames. Same to the strings in the data of this table. The problem is caused by some special characters (german umlauts) in the dataset.

[gdal-dev] How to set GEO-tags ProjectedCSTypeGeoKey and ProjectionGeoKey?

2012-06-19 Thread Pavel Rudchenko
Hello! How may I set GEO-tags non-user defined? Now it is: ProjectedCSTypeGeoKey (Short,1): User-Defined ProjectionGeoKey (Short,1): User-Defined But shall be like this: ProjectedCSTypeGeoKey (Short,1): PCS_WGS84_UTM_zone_30N ProjectionGeoKey (Short,1): Proj_UTM_zone_30N My GDAL-wrapper code is: