Jody,

Whilst I accept ArcSDE is now no longer supplied as part of ArcGIS 10.3, we 
have introduced GeoServer into a solution for a customer and would like to make 
its introduction as smooth as possible. We can demonstrate GeoServer's 
capabilities to customers with ArcSDE geodatabases very quickly without having 
to migrate any data, although obviously that will need to happen in the future. 

I have a fix which treats the empty sdeLayer extent the same as the case where 
the geometry collection is completely outside the extent of the layer, all 
contained within the GeometryEncoderSDE.addSpatialFilter() method.

What is the best way of progressing this?
Do you want to see the fix?
Do I need to raise a JIRA ticket?

Rob

From: Jody Garnett [mailto:jody.garn...@gmail.com] 
Sent: 16 October 2015 17:46
To: Robert Ward
Cc: GeoTools Developers
Subject: Re: [Geotools-devel] Crash in ArcSDE plugin

We should be able to return an Empty ReferencedEnvelope.

The ArcSDE DataStore is going to become rapidly unsupported as ESRI is stopping 
making that product available (as I understand it).

I expect we are going to have to round up "interested parties" and make a new 
datastore using the GSR API.



--
Jody Garnett

On 16 October 2015 at 03:30, Robert Ward <robert.w...@scisys.co.uk> wrote:
Hi All,

I've found a problem in the ArcSDE plugin and I'm not sure the best way
of fixing it.
If using ArcSDE SDK 10.0 or ArcSDE SDK 10.2.2 a feature class in an
Oracle database has an empty extent (i.e. the feature class has been
created and has never contained any features), any calls to
SeShape.generateRectangle with an empty extent cause a crash.
It is easy to detect because SeExtent.isEmpty is true.

The crash is happening in GeometryEncoderSDE.addSpatialFilter at line
260    extent.generateRectangle(seExtent);

There are a several options to fix this:
1) After line 244 if seExtent.isEmpty() == true then fiddle the extent,
e.g. create a valid extent in the middle of the feature class coordinate
reference system
2) After line 244 if seExtent.isEmpty() == true then bail out, not sure
to where
3) Earlier on the in process if it is known that the extent is empty and
there will be no features returned then don't bother with getting data
from the feature class.

Regards

Robert Ward


SCISYS UK Limited. Registered in England and Wales No. 4373530.
Registered Office: Methuen Park, Chippenham, Wiltshire SN14 0GB, UK.

Before printing, please think about the environment.


------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to