Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-12 Thread Tamas Szekeres
Setting the options parameter seems to be working for me (modified the sample appto allow this). The issue you mentioned might be dedicated to the implementation of Layer.Intersection itself (I'm not too familiar in) and

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-11 Thread Dheeraj Reddy Mamidi
Hi Tamas, I was working with OsGeo.OGR.Layer.Intersection c# bindings and have problems with setting string[] of options. The intersection of layers are creating some invalid geometries to write in to intersected layer (Error is thrown - ApplicationException was unhandled - Attempt to write non-p

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-11 Thread Tamas Szekeres
Dheeraj, The issue is now fixed in trunk and branch-1-10 (check out the latest sources) I've also added a sample application for these methods: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/OGRLayerAlg.cs Best regards, Tamas 2013/10/10 Dheeraj Reddy Mamidi > Tamas, > > I ap

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Tamas Szekeres
2013/10/11 Ari Jolma > > Layer::Intersection supports progress notification but support in the Swig > layer may not be complete. There is of course a possibility of a bug in the > Layer::Intersection code too. > > Already figured out :-) But it still also requires additional changes in the C# bi

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Ari Jolma
On 10/10/2013 09:33 PM, Tamas Szekeres wrote: Dheeraj, I don't think the OSGeo.OGR.Layer.Intersection supports progress notification. You might probably have encountered a bug which should be fixed. Do you have a sample code to reproduce this issue? I would specifically interested in the actu

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Tamas Szekeres
Dheeraj, I noticed you are talking about the layer level geometry functions, which hasn't been updated in the C# bindings yet. I'll add the necessary implementation shorly. Also added a ticket to track the changes: http://trac.osgeo.org/gdal/ticket/5264 Best regards, Tamas 2013/10/10 Dheeraj

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Dheeraj Reddy Mamidi
Tamas, Sorry the sample code had wrong data source names. Here is the corrected sample code.. var spatialReference = new OSGeo.OSR.SpatialReference(""); spatialReference.ImportFromProj4("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"); var driver = OSGeo.OGR.Ogr.GetDriverByName("ESRI Shapefi

Re: [gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Tamas Szekeres
Dheeraj, I don't think the OSGeo.OGR.Layer.Intersection supports progress notification. You might probably have encountered a bug which should be fixed. Do you have a sample code to reproduce this issue? I would specifically interested in the actual geometries have been passed to the function. Be

[gdal-dev] OGRLayer.Intersection() question

2013-10-10 Thread Dheeraj Reddy Mamidi
Hi list, I have troubles with C# bindings of OGR. I was trying to perform intersection on two feature classes (shape file formats) using OSGeo.OGR.Layer.Intersection(), but have problems making it work. I keep getting an error saying "AccessViolationException was unhandled. Attempted to read or wr

Re: [gdal-dev] OGRLayer.Intersection() Question

2013-07-26 Thread Dheeraj Reddy Mamidi
Hi Ari, I did try passing the two callback arguments as null (trying to ignore). It doesn't seem to work by doing that. Thanks, Dheeraj On Fri, Jul 26, 2013 at 1:09 AM, Ari Jolma wrote: > On 07/01/2013 10:13 PM, Dheeraj Reddy Mamidi wrote: > > Hi All, > > I was trying to perform intersectio

Re: [gdal-dev] OGRLayer.Intersection() Question

2013-07-26 Thread Ari Jolma
On 07/01/2013 10:13 PM, Dheeraj Reddy Mamidi wrote: Hi All, I was trying to perform intersection on two feature classes (shape file format) using OGRLayer.Intersection(), but have problems making it work with C# bindings. I am not able to figure out on how to pass the arguments SWIGTYPE_p_GD

[gdal-dev] OGRLayer.Intersection() Question

2013-07-01 Thread Dheeraj Reddy Mamidi
Hi All, I was trying to perform intersection on two feature classes (shape file format) using OGRLayer.Intersection(), but have problems making it work with C# bindings. I am not able to figure out on how to pass the arguments SWIGTYPE_p_GDALProgressFunc callback and OSGeo.OGR.SWIGTYPE_p_void cal