Re: [gdal-dev] GML 3.2 conversion error with GDAL 1.8.1

2011-11-02 Thread Rahkonen Jukka
Thanks, You can find the data here http://latuviitta.org/documents/inspire_au.xml http://latuviitta.org/documents/inspire_au.xsd There are two layers 1: AdministrativeUnit 2: AdministrativeBoundary (Line String) Ogr2ogr converts the latter one but does not find any geometries from the Administr

[gdal-dev] Re: Wiki page about CMake for GDAL

2011-11-02 Thread Jayesh Chaudhary
Great. I'd love to receive critique of the proposed approach. > There must be some weakness of it :-) > > > I just wanted to add one or two points. How > > can I get write permissions for the Wiki? > > As Etienne pointed, you need OSGeo User ID > I created the ID and I was able to login! .. so f

Re: [gdal-dev] GML 3.2 conversion error with GDAL 1.8.1

2011-11-02 Thread Chaitanya kumar CH
Hi, OGR doesn't handle the role element. It should have just skipped it. I'm looking into it. On Thu, Nov 3, 2011 at 1:31 AM, Jukka Rahkonen wrote: > Hi, > > I tried to convert a GML file which contains polygon with ogr2ogr, version > 1.8.1. > Conversion fails with a message ERROR 1: Unrecognise

Re: [gdal-dev] Extract centroids

2011-11-02 Thread Chaitanya kumar CH
That's exactly what I meant. None of the prebuilt utilities do that. You should try other desktop GIS programs like QGIS. On Thu, Nov 3, 2011 at 12:12 AM, katrin eggert wrote: > Hi (again ! :) ) > Ok you mean developing a function and use OGR library right? so none of > the pre-built functions (e

[gdal-dev] GML 3.2 conversion error with GDAL 1.8.1

2011-11-02 Thread Jukka Rahkonen
Hi, I tried to convert a GML file which contains polygon with ogr2ogr, version 1.8.1. Conversion fails with a message ERROR 1: Unrecognised geometry type . ERROR 1: Invalid surfaceMember Here is an example of the GML (Inspire Administration units feature type). Is the error in the GML of in GDAL

[gdal-dev] Re: Question about Reprojecting a Shapefile

2011-11-02 Thread Tom Russo
On Thu, Nov 03, 2011 at 05:23:42AM -0400, we recorded a bogon-computron collision of the flavor, containing: > > Message: 1 > Date: Wed, 2 Nov 2011 17:33:40 + > From: katrin eggert > Subject: [gdal-dev] Question about Reprojecting a Shapefile > To: gdal-dev@lists.osgeo.org > Message-ID: >

Re: [gdal-dev] Kakadu Jpeg2000 driver

2011-11-02 Thread Livneh Yehiyam
Hi Tamas It happened with any jp2 file I could get my hands on. E.g. The small jp2 files that come with the ecw sdk. If you need, I can search online and send you a link. Sent from my mobile - From: "Tamas Szekeres" Subject: Re: [gdal-dev] Kakadu Jpeg2000 driver Date:

Re: [gdal-dev] Kakadu Jpeg2000 driver

2011-11-02 Thread Tamas Szekeres
This sounds like a driver specific problem. Do you have some test data to reproduce this? Best regards, Tamas 2011/11/2 Livneh Yehiyam > Hi > > I'm trying to use the Kakadu Jpeg2000 (JP2KAK) driver to read raster data. > > > I'm working on windows7 64 bit with gdal source version

Re: [gdal-dev] Extract centroids

2011-11-02 Thread Chaitanya kumar CH
katrin, You can programatically extract the centroids. You can use the OGR_G_Centroid() function on the geometry. On Thu, Nov 3, 2011 at 12:06 AM, katrin eggert wrote: > Greetings > Just one question: I tried to find in Google if GDAL could be used to > extract polygons centroids. But I was not

[gdal-dev] Extract centroids

2011-11-02 Thread katrin eggert
Greetings Just one question: I tried to find in Google if GDAL could be used to extract polygons centroids. But I was not able to find anything. Is it possible? Kat ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [gdal-dev] Question about Reprojecting a Shapefile

2011-11-02 Thread Chaitanya kumar CH
katrin, Your second command should be enough if you are trying to convert reproj_parcel.shp to Areas_.shp Make sure that you have the supporting files such as .dbf .shx ... On Wed, Nov 2, 2011 at 11:03 PM, katrin eggert wrote: > Hi I'm trying to reprojec a shapefile using > ogr2ogr -f "esri Shap

[gdal-dev] Question about Reprojecting a Shapefile

2011-11-02 Thread katrin eggert
Hi I'm trying to reprojec a shapefile using ogr2ogr -f "esri Shapefile" -t_srs EPSG:32736 Areas_.shp reproj_parcel.shp but I get this error: FAILURE: Unable to open datasource `reproj_parcel.shp' with the following drivers. with: ogr2ogr -t_srs EPSG:32736 Areas_.shp reproj_parcel.shp I also get th

[gdal-dev] FW: Kakadu Jpeg2000 driver

2011-11-02 Thread Livneh Yehiyam
One more thing: I used the sample c# app GDALReadDirect.cs to test it. From: Livneh Yehiyam Sent: Wednesday, November 02, 2011 3:42 PM To: gdal-dev Subject: Kakadu Jpeg2000 driver Hi I'm trying to use the Kakadu Jpeg2000 (JP2KAK) driver to read raster data. I'm working on windows7 64 bit with gda

[gdal-dev] Kakadu Jpeg2000 driver

2011-11-02 Thread Livneh Yehiyam
Hi I'm trying to use the Kakadu Jpeg2000 (JP2KAK) driver to read raster data. I'm working on windows7 64 bit with gdal source version 1.8.1 I've compiled the Kakadu SDK version v6.0 (v6_0-00828N), and compiled Gdal with the driver enabled. I'm using the c# binding. I can open the dataset, and ev

Re: [gdal-dev] Problems writing big tiff image with RasterIO function

2011-11-02 Thread Jorge
Ok, thank you very much! I have written a little image with only the last lines of the original image and this image does not have the strange values, so the problem should be the bug you have mentioned. Best regards, Jorge El 02/11/2011, a las 09:53, Even Rouault escribió: > Selon Jorge Ma

Re: [gdal-dev] Problems writing big tiff image with RasterIO function

2011-11-02 Thread Even Rouault
Selon Jorge Martin : > Hello, > > I am using an old version of the gdal library: 1.4.4. > > I have include below the code I used to write the tiff image: > Your code looks OK (provided that the values in your buffer are also OK), so I'd suspect indeed it is a bug in 1.4.4 that hopefu

Re: [gdal-dev] Problems writing big tiff image with RasterIO function

2011-11-02 Thread Jorge Martin
Hello, I am using an old version of the gdal library: 1.4.4. I have include below the code I used to write the tiff image: //- WriteImage(string aPath, int *myBuffer, int myNumLines, int myN