Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread maven apache
2010/1/12 Frank Warmerdam > maven apache wrote: > >> >> >> 2010/1/12 Frank Warmerdam > warmer...@pobox.com>> >> >> >>maven apache wrote: >> >> It suggests that GDAL is not recognising the georeferencing >>of the >> data. The actual pixel values will hopefully stil

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread Frank Warmerdam
maven apache wrote: 2010/1/12 Frank Warmerdam mailto:warmer...@pobox.com>> maven apache wrote: It suggests that GDAL is not recognising the georeferencing of the data. The actual pixel values will hopefully still be accessed properly.

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread maven apache
2010/1/12 Frank Warmerdam > maven apache wrote: > >>It suggests that GDAL is not recognising the georeferencing of the >>data. The actual pixel values will hopefully still be accessed >>properly. >> >>I would actually need to see the whole gdalinfo report on the >> subdataset >>

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread Frank Warmerdam
maven apache wrote: It suggests that GDAL is not recognising the georeferencing of the data. The actual pixel values will hopefully still be accessed properly. I would actually need to see the whole gdalinfo report on the subdataset to be certain that GDAL is not finding ano

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread maven apache
2010/1/12 Frank Warmerdam > maven apache wrote: > >> Then I got its coordinate is : >> --- >> Upper Left (0.0,0.0) >> Lower Left (0.0, 720.0) >> Upper Right ( 1440.0,0.0) >> Lower Right ( 1440.0, 720.0) >> Center ( 720.0, 360.0) >> --

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread Frank Warmerdam
maven apache wrote: Then I got its coordinate is : --- Upper Left (0.0,0.0) Lower Left (0.0, 720.0) Upper Right ( 1440.0,0.0) Lower Right ( 1440.0, 720.0) Center ( 720.0, 360.0) --- Does that mean the gdal can not handle

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread maven apache
2010/1/12 Frank Warmerdam > maven apache wrote: > > the gdal.tif is : > > > > Corner Coordinates: > > Upper Left (0.0,0.0) > > Lower Left (0.0, 720.0) > > Upper Right ( 1440.0,0.0) > > Lower Right ( 1440.0, 720.0) > > Center ( 720.0, 360.0) > >

Re: [gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread Frank Warmerdam
maven apache wrote: > the gdal.tif is : > > Corner Coordinates: > Upper Left (0.0,0.0) > Lower Left (0.0, 720.0) > Upper Right ( 1440.0,0.0) > Lower Right ( 1440.0, 720.0) > Center ( 720.0, 360.0) > > It seems that the bbox is def

[gdal-dev] hdf5 data to geotiff(the coordinates)

2010-01-11 Thread maven apache
Hi: I have some hdf5 data and I want to change the subdataset to geotiff, and I use gdalinfo to get the subdataset name and then I use "gdal_translate subdatasetname result.tif". However I found that the crs of the generated tif is not recognized by the arcgis,then I want to know why so I create a

Re: [gdal-dev] Open source vector geoprocessing libraries?

2010-01-11 Thread Frank Warmerdam
Jason Roberts wrote: Dear geospatial software experts, By integrating with GEOS, OGR can perform various spatial operations on individual geometries, such as buffer, intersection, union, and so on. Is there a library that efficiently performs these kinds of operations on entire OGRLayers?

[gdal-dev] Open source vector geoprocessing libraries?

2010-01-11 Thread Jason Roberts
Dear geospatial software experts, By integrating with GEOS, OGR can perform various spatial operations on individual geometries, such as buffer, intersection, union, and so on. Is there a library that efficiently performs these kinds of operations on entire OGRLayers? For example, this library

Re: [Gdal-dev] Problem with gdal_translate

2010-01-11 Thread NopMap
Hi! Frank Warmerdam wrote: > > NopMap wrote: >> Is this also true for -projwin? From the documentation I got the >> impression >> that -srcwin requires meters while -projwin accepted the coordinates in >> lat/lon?? > > -srcwin takes the locations in pixel/line coordinate system. -projwin > t

[gdal-dev] Check if a vector is open by other application

2010-01-11 Thread Ramiro Gonzalez
Hello I am using OGR to open "ESRI Shapefiles" and show the content of the .dbf file. If the file is already open by other application(ie: Excel) and I ask for the number of fields: int fieldcount = layer->GetLayerDefn()->GetFieldCount(); I get 'fieldcount == 0'. I`d like to know if there i

[gdal-dev] Optional Arguments in Function

2010-01-11 Thread Matthew Denno
Hello, I have a question about writing a function which uses OGR and I am hoping someone can point me in the right direction. I am trying to write a function that takes a few OGRFeatures as arguments. However I want one of them to be optional. I was hoping to do something like the following but

Re: [Gdal-dev] Problem with gdal_translate

2010-01-11 Thread Frank Warmerdam
NopMap wrote: Hi! Frank Warmerdam wrote: You need to specify the corners in the coordinate system of the image. So the values should be the meter based projected coordinates like 1102062,6818226. Is this also true for -projwin? From the documentation I got the impression that -srcwin requ

Re: [Gdal-dev] Problem with gdal_translate

2010-01-11 Thread NopMap
Hi! Frank Warmerdam wrote: > > You need to specify the corners in the coordinate system of the > image. So the values should be the meter based projected coordinates > like 1102062,6818226. > Is this also true for -projwin? From the documentation I got the impression that -srcwin requires m

Re: [Gdal-dev] Problem with gdal_translate

2010-01-11 Thread Frank Warmerdam
NopMap wrote: Hi! I am trying to make a GeoTiff a little bit smaller with gdal_translate. Gdalinfo shows that the TIF has the following size: Upper Left ( 1102062.959, 6818226.972) ( 9d54'0.00"E, 52d 6'0.00"N) Lower Right ( 1692080.162, 6257943.762) ( 15d12'0.77"E, 48d54'0.71"N) I call gdal

[Gdal-dev] Problem with gdal_translate

2010-01-11 Thread NopMap
Hi! I am trying to make a GeoTiff a little bit smaller with gdal_translate. Gdalinfo shows that the TIF has the following size: Upper Left ( 1102062.959, 6818226.972) ( 9d54'0.00"E, 52d 6'0.00"N) Lower Right ( 1692080.162, 6257943.762) ( 15d12'0.77"E, 48d54'0.71"N) I call gdal_translate -pro

RE: [gdal-dev] geoTransforms and OGRSpatialTransforms

2010-01-11 Thread Smart, Gary
Well, part of the problem seems to be that I was addressing a symbolic link to the file and not the actual file itself. Now that I'm addressing the file directly, BOTH files manage to create the geo transform BUT NEITHER can generate the coordinate transformation object (OGRCoordinateTransformatio

[gdal-dev] Distance Measurement

2010-01-11 Thread vvv jjj
Hi, How do I compute distance between 2 points in a GeoTiff Image using GDAL. To be more specific I have a GeoTiff image file and 2 points (x, y position which tell about the image position points). Can I get the distance between the 2 points (for the given projection of input file) using GDAL