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]], PRIMEM["Greenwi

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

[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 vie

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 be

[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

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 mean

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(

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 lo

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.

[gdal-dev] Problem using RasterIO to flip image

2011-05-27 Thread Leith Bade
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)); But I get a segfault in memcpy. What am I doing wrong? Than

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 : > >> 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

[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-VA 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 I want to transla

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 maili

[gdal-dev] Re: Read WFS Features

2011-05-27 Thread Jukka Rahkonen
vickarasu 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 there is s

[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 calc

[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 http://www.idee.es/I

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 ht

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

2011-05-27 Thread Even Rouault
Selon Flo Ledermann : > 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 -180° one (and even in the in

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 wrote: > You're perhaps running into memory fragmentation issues if your buffer is > too > big. And yes, GDAL maintains internally a block cache whose blocks

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 wrote: > Hello, this is my first post in the mail list and this is the very first > time > I develo

Re: [gdal-dev] Memory loss with RasterIO

2011-05-27 Thread Even Rouault
You're perhaps running into memory fragmentation issues if your buffer is too big. And yes, GDAL maintains internally a block cache whose blocks are destroyed when the dataset is closed. But by default (unless you explicitely set it to another value), it is limited to 40 MB. But mixing small alloca

[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 d

[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 polygon_spa

[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 la

[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 w