[gdal-dev] GDAL ERS unable to process GDA94 under amd64

2011-05-27 Thread Josh.Vote
Hi All, Sorry the subject is a bit of an acronym soup but I'm having an interesting problem with an ERS file under my amd64 compile of GDAL trunk (revision 22366). I may as well start by describing my problem from the beginning... The attached ERS header belongs to a 5GB ER Mapper dataset for

[gdal-dev] Read WFS Features

2011-05-27 Thread vickarasu
Hello, this is my first post in the mail list and this is the very first time I develope with GDAL/OGR libraries... My problem is that I want to connect to a WFS server in C# and read all the features of a layer. I can read the WFS DataSource and the layer definition but when I want to read the

[gdal-dev] ogr2ogr -wrapdateline not working

2011-05-27 Thread Flo Ledermann
Hi all, I want to use the -wrapdateline on a very simple shape file, containing only a single polygon (as a start and test case) However, I cannot get it working. Running the following on the attached shapefile: $ ogr2ogr -wrapdateline -overwrite polygon_spanning_dateline_wrapped.shp

[gdal-dev] Memory loss with RasterIO

2011-05-27 Thread Goo Creations
Hi all, I've come across some weird memory loss: *uint *data = new uint[region-width*region-height]; int x = 0, y = 0; dataset-GetRasterBand(band)-RasterIO(GF_Read, x, y, width, height, data, width, height, GDT_UInt32, 0, 0); delete [] data; * This code is executed a few thousand times with

Re: [gdal-dev] Read WFS Features

2011-05-27 Thread Chaitanya kumar CH
Victor, Can you test your URL with the ogrinfo utility? It is showing some detailed error. Invalid TYPENAME parameter. No binding for prefix ideewfs. On Fri, May 27, 2011 at 2:06 PM, vickarasu victor.apari...@hotmail.comwrote: Hello, this is my first post in the mail list and this is the very

Re: [gdal-dev] Memory loss with RasterIO

2011-05-27 Thread Goo Creations
Hey Thanks. I'll try playing around with different block sizes, to reduce fragmentation. On Fri, May 27, 2011 at 12:55 PM, Even Rouault even.roua...@mines-paris.org wrote: You're perhaps running into memory fragmentation issues if your buffer is too big. And yes, GDAL maintains internally

Re: [gdal-dev] ogr2ogr -wrapdateline not working

2011-05-27 Thread Even Rouault
Selon Flo Ledermann lederm...@ims.tuwien.ac.at: Instead I get the identical, unclipped polygon as in the input file. What am I doing wrong? Nothing, I've checked the algorithm w.r.t your input data. The algorithm currently only deals with geometries overlapping the +180° meridian, not the

Re: [gdal-dev] Read WFS Features

2011-05-27 Thread Even Rouault
The error you see Chaitanya is not a critical error because there's fallback code to deal with it, and I think it should only appears in trunk due to a recent change. At least it doesn't prevent ogrinfo from working. I haven't tested with GDAL 1.8.0 but I suspect it would work too. According to

[gdal-dev] Re: Read WFS Features

2011-05-27 Thread vickarasu
I did the test of the URL sending requests by a web browser. I got well formed XML documents with the getCapabilities and the describeFeatureType too. This request yesterday worked in a webbrowser (not in my C# app), but not today. Perhaps there is some problem with the server

[gdal-dev] Clipping multi-polygons shapefiles with Geometry.Intersection . Any help to fix out my method?

2011-05-27 Thread Hajer Ayed
Hi all, I'm a newbie in gdal developement, working with python on a method to clip polygon and multi-polygon shapefiles. To perform this, I first create the Geometry of my clipper, then I set a spatial filter on my layer and loop for the features. If I have a feature of type polygon, I

[gdal-dev] Re: Read WFS Features

2011-05-27 Thread Jukka Rahkonen
vickarasu victor.aparicio at hotmail.com writes: I did the test of the URL sending requests by a web browser. I got well formed XML documents with the getCapabilities and the describeFeatureType too. This request yesterday worked in a webbrowser (not in my C# app), but not today. Perhaps

Re: [gdal-dev] Clipping multi-polygons shapefiles with Geometry.Intersection . Any help to fix out my method?

2011-05-27 Thread hajer
http://osgeo-org.1803224.n2.nabble.com/file/n6410941/intersection.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/gdal-dev-Clipping-multi-polygons-shapefiles-with-Geometry-Intersection-Any-help-to-fix-out-my-method-tp6410874p6410941.html Sent from the GDAL - Dev

[gdal-dev] Re: gdalinfo: corner coords in other projection

2011-05-27 Thread Hermann Peifer
On 26/05/2011 09:21, Jukka Rahkonen wrote: Lefman, Jonathan ERDC-TEC-VAJonathan.Lefmanat usace.army.mil writes: Hi all, Is there an executable utility that takes the corner coordinates from a gtiff and translates them into another projection system? For example, I have a gtiff in UTM and

Re: [gdal-dev] ogr2ogr -wrapdateline not working

2011-05-27 Thread Flo Ledermann
On 05/27/2011 12:13 PM, Even Rouault wrote: Selon Flo Ledermann lederm...@ims.tuwien.ac.at: Instead I get the identical, unclipped polygon as in the input file. What am I doing wrong? Nothing, I've checked the algorithm w.r.t your input data. The algorithm currently only deals with

Re: [gdal-dev] Re: Read WFS Features

2011-05-27 Thread Even Rouault
Le vendredi 27 mai 2011 13:43:11, vickarasu a écrit : I did the test of the URL sending requests by a web browser. I got well formed XML documents with the getCapabilities and the describeFeatureType too. This request yesterday worked in a webbrowser (not in my C# app), but not today.

Re: [gdal-dev] GDAL ERS unable to process GDA94 under amd64

2011-05-27 Thread Even Rouault
So my question is how exactly does CPLFindFile discover a filepath and does anyone have any clue about why it's not working under Debian amd64? Secondly how does ecw_cs.wkt end up at /usr/local/share/gdal/? This is the target directory when building and installing GDAL. This is then looked

Re: [gdal-dev] Problem using RasterIO to flip image

2011-05-27 Thread Even Rouault
Le vendredi 27 mai 2011 18:46:29, Leith Bade a écrit : Hi, I am trying to write an image that has a y inverted buffer. I tried this: band-RasterIO(GF_Write, x, y, width, height, data + width * (height - 1) * sizeof(short), width, height, GDT_Int16, sizeof(short), -width * sizeof(short));

RE: [gdal-dev] GDAL 1.8.0 and MrSid no-data values

2011-05-27 Thread Kirk McKelvey
Sorry Oyvind, somehow I missed your note about it being MG2. I looked into this yesterday and it is indeed a difference in the v8 DSDK. Image properties that are available through the API (such as the nodata value, dynamic range, etc.) are no longer being inserted into the metadata. This

[gdal-dev] Issue with WKT to proj4

2011-05-27 Thread David J. Bakeman
Is there a valid proj4 description of the following coordinate system in wkt? GEOGCS["WGS84_ds", DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Second",0.0484813681109536]] I used the following python code from the web to get the

Re: [gdal-dev] Issue with WKT to proj4

2011-05-27 Thread Frank Warmerdam
On 11-05-27 04:42 PM, David J. Bakeman wrote: Is there a valid proj4 description of the following coordinate system in wkt? GEOGCS[WGS84_ds, DATUM[D_WGS_1984, SPHEROID[WGS_1984,6378137.0,298.257223563]], PRIMEM[Greenwich,0.0], UNIT[Second,0.0484813681109536]] David, I do not believe

[gdal-dev] Re: Convert vector to raster with colored polygons

2011-05-27 Thread spiderplant0
Thanks Chaitanya, that worked perfectly. In case anyone else has this problem here are the full list of command I used... First need to get GDAL 1.8 + as gdal_rasterize in GDAL 1.7 wont work. You can get it here... http://vbkto.dyndns.org/sdk/ Convert your vector to a greyscale .tiff (When I

Re: [gdal-dev] Issue with WKT to proj4

2011-05-27 Thread David J. Bakeman
Frank Warmerdam wrote: On 11-05-27 04:42 PM, David J. Bakeman wrote: Is there a valid proj4 description of the following coordinate system in wkt? GEOGCS[WGS84_ds, DATUM[D_WGS_1984, SPHEROID[WGS_1984,6378137.0,298.257223563]], PRIMEM[Greenwich,0.0], UNIT[Second,0.0484813681109536]]

Re: [gdal-dev] Issue with WKT to proj4

2011-05-27 Thread Frank Warmerdam
On 11-05-27 06:49 PM, David J. Bakeman wrote: Frank Warmerdam wrote: On 11-05-27 04:42 PM, David J. Bakeman wrote: Is there a valid proj4 description of the following coordinate system in wkt? GEOGCS[WGS84_ds, DATUM[D_WGS_1984, SPHEROID[WGS_1984,6378137.0,298.257223563]],