[udig-devel] CRS not recognized in customized dataStore

Theodor Foerster foerster at itc.nl
Thu Apr 24 11:20:28 PDT 2008


Thanks, the error message is gone. I set the IGeoResourceInfo.getCRS()
to the CRS of the supplied FeatureType, that works now well, if the
FeatureType CRS is the same as the CRS of the map, but if the map CRS is
different, I do not see any data (somewhat it seems to be plotted
outside the map). IGeoResourceInfo.getBounds() returns always the CRS,
which describes the extent of the features in its origin CRS.

So one of the two parameters, should be dynamic, but which one?

	Theodor

> -----Original Message-----
> From: udig-devel-bounces at lists.refractions.net 
> [mailto:udig-devel-bounces at lists.refractions.net] On Behalf 
> Of Jody Garnett
> Sent: Thursday, April 24, 2008 7:04 PM
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] CRS not recognized in customized dataStore
> 
> 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
> 
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig) 
> http://udig.refractions.net 
> http://lists.refractions.net/mailman/listinfo/udig-devel
> 
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.


More information about the udig-devel mailing list