Details
-
Type:
Task
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.7.5
-
Component/s: arcsde plugin
-
Labels:None
Description
At featuretype creation time, a SeLayer must be created, which should contain CRS information. This is easily parseable from the CoordinateReferenceSystem's WKT, but the valid coordinate range is critical to let arcsde correctly calculate the coordinate precision.
I tryed to create a "generic enough" coordinate range, but it seems impossible since, for example, UTM and Lat Lot coordinates are so disparate and needs different levels of accuracy and range.
So the first step would be to setup a real EPSG database and extract this information as explained by Martin:
Extent area = crs.getValidArea();
if (area != null) {
GeographicExtent ge = extent.getGeographicElement();
if (ge instanceof GeographicBoundingBox) {
GeographicBoundingBox box = (GeographicBoundingBox) ge;
double xmin = box.getWestBoundLongitude();
double xmax = box.getEastBoundLongitude();
// etc...
}
}