[udig-devel] CRS not recognized in customized dataStore

Jody Garnett jgarnett at refractions.net
Thu Apr 24 10:03:30 PDT 2008


Theodor Foerster wrote:
> Hi,
> I am writing a Datastore, which should be able to recognize the
> underlying CRS. The CRS information is IMO passed to udig through a
> FeatureType. The data is rendered in udig, however udig tells me, that
> "the Coordinate Reference System of data is unknown". This problem seems
> to be related to the following bug report
> http://jira.codehaus.org/browse/UDIG-1314. 
>
> I create the FeatureType already from scratch within the datastore and
> when I call, featureType.getDefaultGeometry().getCoordinateSystem() I
> get the correct CRS. Thanks for your help.
>   
That is the check - if 
featureType.getDefaultGeometry().getCoordinateSystem() is returning 
something you are doing everything correctly on your end...

What else could it be ....

Can you please check your GeoResourceInfo object and make sure it has 
the correct CRS and Bounds please? It is this Info object that is 
referred to first (DataStore is specific to working with features, and 
since uDig works with many sorts of content we ask each GeoResource to 
give us a summary including its bounds and CRS).

Cheers,
Jody



More information about the udig-devel mailing list