[gdal-dev] OGRLayer.Intersection() Question

Ari Jolma ari.jolma at gmail.com
Fri Jul 26 00:09:42 PDT 2013


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_GDALProgressFunc callback 
> and OSGeo.OGR.SWIGTYPE_p_void callback_data. Can someone please help 
> me figure out on how to handle these. I keep getting the error 
> "Attempt to dereference null GDALProgressFunc". I am not sure what 
> that means.

I don't know the details of C# bindings but the callback function and 
the callback data are by default NULL and you should be able to just 
ignore them, i.e., not supply any arguments.

Ari

>
> Please share an example on how to call Intersection routine or some 
> other routine which takes above mentioned argument types.
>
> Thank you,
> Dheeraj Reddy Mamidi
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130726/50641c05/attachment-0001.html>


More information about the gdal-dev mailing list