Re: [gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Peter J Halls
Tom, so far as I am aware, neither GDAL/OGR nor ArcGIS update a shapefile in situ - I believe that ArcGIS creates a temporary dataset, performs the update as it copies the input data over, then deletes and renames to get the replacement. I have used a similar method with Shapelib over the

[gdal-dev] c# binding and .net4

2010-08-04 Thread Livneh Yehiyam
Hi As you probably aware GDAL currently fails to run when used in a .net4 client. I know that there is a newer version of swig (2.0) that fixes that. Are there any plans to move to the new swig version? Thanks Yehiyam ***

Re: [gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Frank Warmerdam
Tom Jeffery wrote: Chaitanya, I wrote up a method to find and delete geometries that fall outside of the reported Extent from the shapefile. It seems to be doing the trick, though with some strange side effects. It finds the bad features properly, and I remove them with layer.DeleteFeature(

Re: [gdal-dev] new GDAL driver: how to proceed?

2010-08-04 Thread Chaitanya kumar CH
Constantin, In GDAL code, autoconf is used with configure.in to generate the configure script. In earlier versions of autoconf, configure.ac was named configure.in, which is still being used here. I believe it works almost the same. It is handwritten. Refer to http://trac.osgeo.org/gdal/wiki/rfc8

[gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Tom Jeffery
Chaitanya, I wrote up a method to find and delete geometries that fall outside of the reported Extent from the shapefile. It seems to be doing the trick, though with some strange side effects. It finds the bad features properly, and I remove them with layer.DeleteFeature(feature.GetFID()), bu

Re: [gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Chaitanya kumar CH
Tom, The -skipfailures flag skips only failures to create new features. Null geometries in non-null shapetype shapefile are not handled. The only way I can think of to clean such a file is by checking the geometry in each feature. On Thu, Aug 5, 2010 at 1:01 AM, Tom Jeffery wrote: > > Chaitanya

[gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Tom Jeffery
Chaitanya, I've found the issue with the particular shapefile I'm using. It actually has some null geometries in it, which are fixable using ESRI's "Repair Geometry" tool. I read that ogr2ogr is also suppose to remove records with empty geometries, but it doesn't seem to be working on my file,

Re: [gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Chaitanya kumar CH
Tom, GDAL/OGR updates the shapefile along with the dbf file when a feature is changed. That means updating the extents according to the geometries in the changed features. My guess is that there is a problem reading a feature's geometry extents. Call the OGRGeometry::getEnvelope method on each ge

[gdal-dev] Re: GDAL 1.7.2 Windows compilation JAVA JNI doesn't work

2010-08-04 Thread Zdeněk Vráblík
Hi, I have compiled the gdal 1.7.2 for 32 bit windows and tested in Windows XP. This works fine. Than my colleague tested the 64bit dll files with 64 bit Windows 7 and it was working too. Regards, Zdenek On Wed, Aug 4, 2010 at 5:07 PM, Zdeněk Vráblík wrote: > Hi all, > > I have problem to use

[gdal-dev] Re: Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Tom Jeffery
Chaitanya, The updated file is read properly with ogrinfo. The only difference between ogrinfo -al between the two, besides the new field that was created, is the extent, which looks like this: Original file: Extent: (1528126.013001, 45899.818172) - (1542444.478012, 61468.662925) Updated file:

[gdal-dev] GDAL 1.7.2 Windows compilation JAVA JNI doesn't work

2010-08-04 Thread Zdeněk Vráblík
Hi all, I have problem to use java jni generated dll files. I have available precompiled dll files with internal formats + MrSID and ECW. These dll works fine including JNI. Now I have compiled gdal myself, because I need add more formats (GPX, GML, KML ) and later possibly SDE. I can't load the

Re: [gdal-dev] WinCE programming support

2010-08-04 Thread Frank Warmerdam
Zermeno, Robert J CIV NAVAIR, 472100D wrote: Hi GDAL, At my work, I have been assigned to support TIF images on Windows CE platform. My task is to support Pocket PC Arch. From 2002 to present. So, I am building from EVC 3.0 to MSVC 2005 with Windows Moblie 6. I am using GDAL to accomplish th

Re: [gdal-dev] Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Chaitanya kumar CH
Tom, Can you check the destination shapefile with 'ogrinfo' and see if it works? If ogrinfo gives a valid output of the new file, check with 'ogrinfo -al' and compare it with the old file's output. ( http://www.gdal.org/ogrinfo.html ) On Wed, Aug 4, 2010 at 6:57 PM, Tom Jeffery wrote: > > I'm w

[gdal-dev] WinCE programming support

2010-08-04 Thread Zermeno, Robert J CIV NAVAIR, 472100D
Hi GDAL, At my work, I have been assigned to support TIF images on Windows CE platform. My task is to support Pocket PC Arch. From 2002 to present. So, I am building from EVC 3.0 to MSVC 2005 with Windows Moblie 6. I am using GDAL to accomplish this task. Now, I noticed that no one is mainta

[gdal-dev] Programmatically saving out a .tif file

2010-08-04 Thread Zermeno, Robert J CIV NAVAIR, 472100D
Hi everyone, I know I am having a programming issues here because using GDAL apps provided, it outputs correctly. I am using the SVN daily build of 7-21-2010 in Borland C++. My issue: First, I converted the file , world.jp2, taken from http://www.microimages.com/gallery/jp2/ to TIF format via

Re: [gdal-dev] Raster Strategies Examples

2010-08-04 Thread brian
Edi, Personaly I beleve gdalwarp is the wrong tool for the job, you already have it all set up for mapserver so just use shp2img. On Mon, 2010-08-02 at 17:14 +0200, Edi KARADUMI wrote: > as you may know, i have very slow performance when i zoom out and im > stucked here. As i have read i should

Re: [gdal-dev] EXCEPTION_ACCESS_VIOLATION, when using GDAL Java API

2010-08-04 Thread Ivan Lucena
I noticed that you are reading and writing from the same GeoRaster, "georaster:georaster/georas...@localhost:1521/orcl,rdt_2,0". Is that what you want? > ---Original Message--- > From: <181797...@qq.com> > To: gdal-dev > Subject: [gdal-dev] EXCEPTION_ACCESS_VIOLATION, when using G

[gdal-dev] Editing attributes with ogr causing corrupt shapefile

2010-08-04 Thread Tom Jeffery
I'm working with GDAL's Java bindings, and trying to simply add an index field to a shapefile. This is working, but the resulting shapefile gets corrupted somehow, where viewing it in ArcMap causes the message "Warning, inconsistent extent." and viewing it in ArcCatalog shows all the points in th

[gdal-dev] EXCEPTION_ACCESS_VIOLATION, when using GDAL Java API

2010-08-04 Thread 菡萏的声音
Hi,all: I use GDAL Java API to write raster data to Oracle Spatial GeoRaster Object, and encouter a strange problem: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x0afa0770, pid=5904, tid=5548 # # JRE version: 6.0_15-b03

Re: [gdal-dev] how to create a grid shape file with in the extent of the image

2010-08-04 Thread Jose Gomez-Dans
Hi, On 4 August 2010 07:52, mail2vajram wrote: > i have a land use land cover image, i need to create a 1000 * 1000 m > grid(shape file format) over the image and i have to calculate the area of > the each class in each grid how to do this.. Maybe this is of use to you, using python and G