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 actual geometries have been passed to the function.

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.

Ari


Best regards,

Tamas



2013/10/10 Dheeraj Reddy Mamidi <drmam...@rothwellgroup.com <mailto:drmam...@rothwellgroup.com>>

    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 write protected memory. This is
    often an indication that other memory is corrupt.

    Is the above error something to do with
    SWIGTYPE_p_GDALProgressFunc callback and OSGeo.OGR.SWIGTYPE_p_void
    callback_data arguments? I tried passing those parameters null as
    suggested by some in the forums butI keep getting the error
    "Attempt to dereference null GDALProgressFunc". I am not sure what
    that means.

    And when I instantiate callback as new
    SWIGTYPE_p_GDALProgressFunc() and new callback_data as new
    SWIGTYPE_p_void(), I don't get error Attempt to dereference null
    GDALProgressFunc, but still have error saying
    AccessViolationException was unhandled. Attempted to read or write
    protected memory. This is often an indication that other memory is
    corrupt.

    Can someone please help me figure this out and let me know how to
    make use of OSGeo.OGR.Layer.Intersection() in the right way with
    c# bindings. Thank you.

    Thanks,
    Dheeraj



    _______________________________________________
    gdal-dev mailing list
    gdal-dev@lists.osgeo.org <mailto:gdal-dev@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/gdal-dev




_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to