[udig-devel] CRS not recognized in customized dataStore

Theodor Foerster foerster at itc.nl
Tue Apr 29 11:49:31 PDT 2008


Ok, that does make sense. I set a breakpoint at getFeatureReader().
However, when I select a CRS on the map, which is different from the
original source layer of the datastore getCoordinateSystemReproject()
still returns null. That is a bit strange.

I am currently using RC 14.

	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: Tuesday, April 29, 2008 6:45 PM
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] CRS not recognized in customized dataStore
> 
> Theodor Foerster wrote:
> > Actually, the dataStore I am using, does not check or transform the 
> > features according to a query or CRS. So where should I do 
> that? Do I 
> > have to transform the features, when next() is called? By now, I 
> > always thought, that udig/geotools takes care of this 
> transformation 
> > issue. I might have been wrong there.
> >
> >   
> The DataStore implementor does; GeoTools provides a 
> ReprojectingFeatureCollection that can be "wrapped"
> your raw result. But actully checking the Query and applying 
> the ReprojectingFeatureCollection is up to the DataStore 
> implementor....
> 
> Why is it this way? Because some DataStores have their own 
> facilities for reprojection - the datastore implementor is in 
> the best position to make the judgment call about what to do.
> 
> The AbstractDataStore (and possibly the JDBCDataStore class) 
> abstract super class has some support for this already, but 
> you should do a check about what is happening ...
> 
> 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