[Gdal-dev] GDAL affine transform Non-North-Up

2008-12-18 Thread Fodder
Hi All, If I know the co-ordinates for all 4 corners of a non-north-up image, how can I calculate the 6 GDAL affine transform parameters? Cheers, Fodder -- View this message in context: http://www.nabble.com/GDAL-affine-transform-Non-North-Up-tp21087047p21087047.html Sent from the GDAL - Dev m

Re: [gdal-dev] gdaltransform user problems

2008-12-18 Thread Frank Warmerdam
Jack Kirkpatrick wrote: Greetings, My apologies in advance if the following is stupid but I am not a GIS expert (probably not even a GIS novice). Some time ago I had call to transform corner coordinates from "Australian Geodetic Datum 1966" to WGS84 so that I could accurately drape some nau

[gdal-dev] gdaltransform user problems

2008-12-18 Thread Jack Kirkpatrick
Greetings, My apologies in advance if the following is stupid but I am not a GIS expert (probably not even a GIS novice). Some time ago I had call to transform corner coordinates from "Australian Geodetic Datum 1966" to WGS84 so that I could accurately drape some nautical charts in GeoTiff for

Re: [gdal-dev] Compile GDAL With WMS Support (Win32)

2008-12-18 Thread Joel Odom
Frank, thanks (again) for your help. I'm in business. I stepped into the code and found that WMS support was being built in (after I installed curl and changed the nmake.opt file). For some reason, though, WMS doesn't show up on gdalinfo --formats. The reason my open was failing was because I h

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Xiaoyu Guan
Dear Ari and Frank: Thanks very much for helping figure out the problem. Yes, I have checked. I am using Xerces 2.7+ GDAL 1.6 win32. but I download the lastest one from http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip It is would be nice to replace Xerces 2.7 with 3.0 in that packages.

Re: [gdal-dev] Motion: Approve GDAL/OGR 1.4.5RC2 as 1.4.5 Release

2008-12-18 Thread Daniel Morissette
Frank Warmerdam wrote: Motion: Approve GDAL/OGR 1.4.5RC2 as 1.4.5 Release. +1 Daniel -- Daniel Morissette http://www.mapgears.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Compile GDAL With WMS Support (Win32)

2008-12-18 Thread Frank Warmerdam
Joel Odom wrote: I'm trying to use GDAL to pull down WMS images. I installed curl and built with it. (I can see that libcurl.dll is being loaded.) When I pass in my XML service descriptor file to GDALOpen, I get, "ERROR 4: `C:\Documents and Settings\jo44\Desktop\ogr_data\wms.xml' not recognise

[gdal-dev] gdal 1.6 build on redhat Linux, missing gdal.py _gdalmodule.so

2008-12-18 Thread Gong, Shawn (Contractor)
hi list, I just finished building gdal 1.6 on redhat Linux (using gcc 4.2.2, python 2.5.2). After taking Even Rouault and Frank's suggestion, I used the minimized driver approach. It seemed to work. ./configure --prefix=/home/sgong/dev181/dist --with-png=internal --with-libtiff=internal --with-

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Ari Jolma
Frank Warmerdam kirjoitti: Ari Jolma wrote: Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute Interesting

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Frank Warmerdam
Ari Jolma wrote: Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute and this seemed to produce a shapefil

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Greg Ederer
Thanks, Brent. I'll give this a whirl. Cheers, Greg Brent Fraser wrote: Greg, OpenJump is a good topology/geometry fixing tool. Load your shapefile and do Tools->Generate->Buffer, set the Buffer distance to 0 to clean up the polygon vertices. I seem to recall it may have a problem pres

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Brent Fraser
Greg, OpenJump is a good topology/geometry fixing tool. Load your shapefile and do Tools->Generate->Buffer, set the Buffer distance to 0 to clean up the polygon vertices. I seem to recall it may have a problem preserving attributes when the results are saved as a shapefile, but you may be a

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Ari Jolma
Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute and this seemed to produce a shapefile with all three f

[gdal-dev] Compile GDAL With WMS Support (Win32)

2008-12-18 Thread Joel Odom
I'm trying to use GDAL to pull down WMS images. I installed curl and built with it. (I can see that libcurl.dll is being loaded.) When I pass in my XML service descriptor file to GDALOpen, I get, "ERROR 4: `C:\Documents and Settings\jo44\Desktop\ogr_data\wms.xml' not recognised as a supported fi

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Greg Ederer
Brent, My Google search didn't turn up much of use (most of the results were PostGIS-specific). Do you know of a tool that would tell me which feature(s) have problems? Do you know of a tool that might be able to fix these polygons? Thanks! Greg Brent Fraser wrote: Greg, It means the

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Brent Fraser
Greg, It means the GEOS topology library is having problems with geometry of your input shapefile. Most likely related to duplicate vertices (or near-duplicate) in a polygon. Do a Google for "side location conflict". It would be nice if it spat out the FID of the offending polygon... Bre

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Greg Ederer
Hi Brent, Thanks for the example. Here's what I got: Macintosh-4:starspan_tests gregederer$ starspan2 --progress --RID none --vector /Users/gregederer/servers/geoserver_data/data/shapefiles/Admin/afadmn2n.shp --raster rfe_2006_04_pct.tif --stats results.txt avg starspan: --out-prefix: ? T

Re: [gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Brent Fraser
Greg, I've used StarSpan to do similar things; in my case I wanted "mode" not "avg". Using v1.2.01 (I don't think I made major mods to the source): starspan2.exe --progress --RID none --vector boundaries.shp --raster big.tif --stats results.txt mode I edited the resulting results.

Re: [gdal-dev] Using topocentric coordinate system

2008-12-18 Thread Frank Warmerdam
Eran Burstain wrote: Hi ! Lately, the EPSG has added topocentric coordinate system, with codes : System : 6512 Methods : 9836,9837 Parameters : 8834..8839 Can I or how can I Convert/Create a raster band (of image or of elevation) to that system ? Is there a way to describe the system without

[gdal-dev] Zonal statistics with GDAL/StarSpan

2008-12-18 Thread Greg Ederer
Hello all, I'm a GDAL newbie. I have a shape file containing subnational boundaries for Africa. I have a raster containing rainfall for Africa. I need to pull out the spatial average of rainfall for each of the subnational units. I think that I might be able to pull this off using StarSpa

[gdal-dev] Motion: Approve GDAL/OGR 1.4.5RC2 as 1.4.5 Release

2008-12-18 Thread Frank Warmerdam
Folks, As I mentioned a couple weeks ago, I am proceeding with producing stable releases. I have produced a release candidate for a GDAL 1.4.5 release. Once released I anticipate this will be the last GDAL 1.4.x release. The RC2 release includes the "make install - man" problem fix and is other

Re: [gdal-dev] Motion: Approve GDAL/OGR 1.4.5RC1 as 1.4.5 Release

2008-12-18 Thread Frank Warmerdam
Even Rouault wrote: Le Sunday 14 December 2008 19:47:03 Frank Warmerdam, vous avez écrit : Folks, As I mentioned a couple weeks ago, I am proceeding with producing stable releases. I have produced a release candidate for a GDAL 1.4.5 release. Once released I anticipate this will be the last GD

Re: [gdal-dev] Border slivers and JPEG2000 compression

2008-12-18 Thread Matt Wilkie
Hi Micheal, I'm afraid I misadvised you. Nearblack and gdal_rasterize can't write to file formats which don't allow updating in place. Is using jp2 a hard requirement? Have you tried the available geotiff compressions (http://www.gdal.org/frmt_gtiff.html look at Creation Options)? Black and w

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Frank Warmerdam
Xiaoyu Guan wrote: Hi Frank: Thanks very much for your reply. About GML files, actually, I grab The GML files from OpenLayers.org. as you know OpenLayers can read GML files directly. The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml You have to chang

RE: [gdal-dev] Border slivers and JPEG2000 compression

2008-12-18 Thread Smith, Michael
I tried that but it doesn't seem to write to JP2KAK. If I do this: nearblack mosaic_jp2.jp2 I get this error: 0...10..ERROR 6: WriteBlock() not supported for this dataset. ERROR 1: GetBlockRef failed at X block offset 1, Y block offset 19 ERROR 6: WriteBlock() not supported for this dataset. ERR

Re: [gdal-dev] MrSID & December 2008 GDAL/OGR 1.6.0 Release - gdal2tiles

2008-12-18 Thread Klokan Petr Přidal
Hi, You can try OSGeo4W package "gdal16" together with binaries for MrSID plugin ("gdal16-mrsid" package). Unfortunately there are now some troubles with EPSG:900913 (Spherical Mercator a la Google Maps) so I did not recommend yet the switch from gdal-dev to gdal16 package for OSGeo4W users. The

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Xiaoyu Guan
Hi Frank: Thanks very much for your reply. About GML files, actually, I grab The GML files from OpenLayers.org. as you know OpenLayers can read GML files directly. The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml You have to change xml to gml by yoursel