createSchema needs the CRS's valid coordinate range

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...
}
}

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:06 PM

CodeHaus Comment From: aaime - Time: Sat, 5 Mar 2011 11:44:45 -0600
---------------------
Quite the old issue. We do have a EPSG database that contains the info, it's the one you used for the GS preview. Wondering if that is enough to close this one?

Simone Giannecchini
October 28, 2016, 1:07 PM

Not a bug but a RFE, too old and nobody bothered.

Killing it.

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

High
Configure