AW: [gdal-dev] An issue about using GDALWARP to dotheNTv2transformation

2011-01-17 Thread Schmitz, Uwe
Heng, > Hi Uwe, > > Hope you had a wonderful Christmas break. Yes, thank you (but I have the impression that mine has been shorter than yours ;-)) > Regarding the issue about the NTv2 transformation, > the map data provider has confirmed that the raster > data do cover some areas which are o

[gdal-dev] Importing and exporting shapefiles in mySQL with OGR

2011-01-17 Thread Dr. Markus Müller
Dear listers, I am trying to get shapefiles in and out of a mySQL database using OGR. I found some example commands for importing and succeeded in doing this. But getting the syntax together to get a spatial dataset out of mySQL db seems to be over my head. Can anybody supply an example comm

[gdal-dev] Re: GDAL WriteArray Memory Error (Python)

2011-01-17 Thread hairymapper
Solved. The error in my previous post occurs because of the way gdal_array.BandWriteArray() tries to catch unknown datatype errors. If gdal.BandWriteArray() receives an numpy array with an unrecognized data type it defaults to using numpy.float64 data type for the output (presumably in the hope t

[gdal-dev] gdaltransform and cs2cs don't agree ...

2011-01-17 Thread Jean-Claude Repetto
Hello, I have found a case where gdaltransform and cs2cs don't give the same results : $ gdaltransform -s_srs +init=IGNF:MILLER -t_srs EPSG:4326 -20037504 10018752 179.798600354466 72.943850852954 12400.9953186931 $ cs2cs -f "%.11f" +init=IGNF:MILLER +to +init=epsg:4326 -20037504 10018752 -17

Re: [gdal-dev] Importing and exporting shapefiles in mySQL with OGR

2011-01-17 Thread Chaitanya kumar CH
Markus, Run the ogrinfo utility on the MySQL database created from the shapefile and the original MySQL database and compare them. You should be able to build a command according to the differences. On Mon, Jan 17, 2011 at 12:55 PM, "Dr. Markus Müller" < markus.u.muel...@zoho.com> wrote: > Dear

RE: [gdal-dev] An issue about using GDALWARP to dotheNTv2transformation

2011-01-17 Thread heng.feng
Brilliant. Thanks a lot, Uwe. This is all I want to know. Yes, you are right that I only recently started working on these data again although I have only got one day off for Christmas (in China) :) From: Schmitz, Uwe [via OSGeo.org] [mailto:ml-node+5931200-375580391-308...@n2.nabble.com] Sent

Re: [gdal-dev] gdaltransform and cs2cs don't agree ...

2011-01-17 Thread Even Rouault
Selon Jean-Claude Repetto : Jean-Claude, I've investigated a bit. Here are my findings. gdaltransform asks PROJ.4 to expand the SRS definition "+init=IGNF:MILLER" into a full PROJ.4 string. The lookup in the IGNF file results in : +proj=mill +towgs84=0.,0.,0.,0.,0.,0.,0.

Re: [gdal-dev] Importing and exporting shapefiles in mySQL with OGR

2011-01-17 Thread Frank Warmerdam
On 11-01-17 02:25 AM, "Dr. Markus Müller" wrote: Dear listers, I am trying to get shapefiles in and out of a mySQL database using OGR. I found some example commands for importing and succeeded in doing this. But getting the syntax together to get a spatial dataset out of mySQL db seems to be ove

[gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-01-17 Thread anna auge
Hi all,I am trying to convert modis level 1B data (type SWATH) to geotiff following these steps.1) Examining the HDFgdalinfo d:\modis\1b\MOD021KM.A2011008.0850.005.2011008195744.hdfgdalinfo HDF4_EOS:EOS_SWATH:"d:\modis\1b\MOD021KM.A2011008.0850.005.2011008195744.hdf":MODIS_SWATH_Type_L1B:EV_1KM_Ref

[gdal-dev] Create a shape file with polygons

2011-01-17 Thread Jorge Martin
Hi, I`m new developing software with GDAL and OGR libraries. I has used the code from the OGR web that read and write a shapefile (points). What I really want is to read and write shapefiles with polygons. There is any code that could help me to begin this program? Many Thanks, Jorge

Re: [gdal-dev] Create a shape file with polygons

2011-01-17 Thread Paolo Corti
> I`m new developing software with GDAL and OGR libraries. I has used the code > from the OGR web that read and write a shapefile (points). What I really > want is to read and write shapefiles with polygons. Hi Jorge if you are using Python this [0] is the best resource out there. Look at the samp

Re: [gdal-dev] Create a shape file with polygons

2011-01-17 Thread Jorge
Hi, Thank you very much in advance. I am developing with C++, but I will try to understand the code. I think it will easy. Thank you. Jorge El 17/01/2011, a las 18:18, Paolo Corti escribió: >> I`m new developing software with GDAL and OGR libraries. I has used the code >> from the OGR web t

Re: [gdal-dev] gdaltransform and cs2cs don't agree ...

2011-01-17 Thread Frank Warmerdam
On 11-01-17 10:55 AM, Even Rouault wrote: I get the same results as in the cs2cs command line. I have no idea why we add +R_A when writting the PROJ.4 string of a Miller projection. SVN history points to a commit that dates back to 10 years ago : http://trac.osgeo.org/gdal/changeset/1862/trunk/o

Re: [gdal-dev] Importing and exporting shapefiles in mySQL with OGR

2011-01-17 Thread Jeff McKenna
On 11-01-17 3:25 AM, "Dr. Markus Müller" wrote: Dear listers, I am trying to get shapefiles in and out of a mySQL database using OGR. I found some example commands for importing and succeeded in doing this. But getting the syntax together to get a spatial dataset out of mySQL db seems to be over

[gdal-dev] Motion: Adopt GDAL/OGR RC2 as 1.8.0 Release

2011-01-17 Thread Frank Warmerdam
Motion: Adopt GDAL/OGR 1.8.0 RC2 as GDAL/OGR 1.8.0 Final Release Folks, There don't seem to be any serious issues with the RC2, so I'd like to adopt it as our 1.8.0 release. I'll start the voting with: +1 Frank -- ---+-

Re: [gdal-dev] Motion: Adopt GDAL/OGR RC2 as 1.8.0 Release

2011-01-17 Thread Daniel Morissette
On 11-01-17 01:46 PM, Frank Warmerdam wrote: Motion: Adopt GDAL/OGR 1.8.0 RC2 as GDAL/OGR 1.8.0 Final Release +1 Daniel -- Daniel Morissette http://www.mapgears.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/

Re: [gdal-dev] Motion: Adopt GDAL/OGR RC2 as 1.8.0 Release

2011-01-17 Thread Tamas Szekeres
+1 Tamas 2011/1/17 Frank Warmerdam > > Motion: Adopt GDAL/OGR 1.8.0 RC2 as GDAL/OGR 1.8.0 Final Release > > Folks, > > There don't seem to be any serious issues with the RC2, so I'd like to > adopt it as our 1.8.0 release. I'll start the voting with: > > +1 Frank > > -- > >

Re: [gdal-dev] Motion: Adopt GDAL/OGR RC2 as 1.8.0 Release

2011-01-17 Thread Even Rouault
> Motion: Adopt GDAL/OGR 1.8.0 RC2 as GDAL/OGR 1.8.0 Final Release > +1 Even ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Motion: Adopt GDAL/OGR RC2 as 1.8.0 Release

2011-01-17 Thread Howard Butler
> Motion: Adopt GDAL/OGR 1.8.0 RC2 as GDAL/OGR 1.8.0 Final Release +1 Howard ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdaltransform and cs2cs don't agree ...

2011-01-17 Thread Jean-Claude Repetto
On 01/17/11 18:40, Frank Warmerdam wrote: A bit of digging shows that +R_A tells PROJ.4 to use a spherical radius that gives a sphere with the same surface area as the original ellipsoid. I imagine I added this while trying to get the results to match PCI's GCTP based implementation though the h

Re: [gdal-dev] Importing and exporting shapefiles in mySQL with OGR

2011-01-17 Thread Dr. Markus Müller
Frank and Jeff, thanks to both of you, that did the trick. Markus On 18/01/2011 1:13, Jeff McKenna wrote: On 11-01-17 3:25 AM, "Dr. Markus Müller" wrote: Dear listers, I am trying to get shapefiles in and out of a mySQL database using OGR. I found some example commands for importing and su

Re: [gdal-dev] gdal_translate drops overviews

2011-01-17 Thread Jean-Claude Repetto
On 01/14/11 19:20, Even Rouault wrote: Thanks for the fix. Now, the overviews are created. But the georeferencing is lost : Jean-Claude, This works for me. I get the 9 GCPs and the GCP projection as expected in the output GeoTIFF. After reinstalling the trunk version of GDAL, it is working.