[udig-devel] CRS not recognized in customized dataStore

Jody Garnett jgarnett at refractions.net
Tue Apr 29 09:45:12 PDT 2008


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


More information about the udig-devel mailing list