The SQL select part for a spatial type generated by dotConnect looks something like this:
Code: Select all
SDO_UTIL.TO_WKTGEOMETRY("Extent2".SDO_GEOM) AS SDO_GEOM
So it emediately converts the type to his wkt representation. With big polygons this takes a long time.
In most cases i dont want the provider to convert the SDO_GEOMETRY to his wkt representation. I only want the business data. Of course i could modify the select to receive an anonymous object without the spatial column but i want to work with my business class object.
Is there a way to avoid the automatic conversion ? Maybe by changing the configuration before and after a select ?
And i have a second question:
i cant find the configuration option
Code: Select all
config.SpatialOptions.AlwaysUseGeometryDefaultSrid
It is mentioned in this article:
http://blog.devart.com/enhanced-entity- ... resql.html
Thanks.