Jesse Eichar probaly wrote: >> How would I do to set the new crs? I found some things on the geotools >> site, but they do not apply to the crs editing. >> Perhaps this would all change with the migration to the 2.4? Which >> raises my nice question to you: any news about the 3.3 sdk? :) >> >> > > To change the CRS of a feature you actually have to create a new Feature > and FeatureType. I think there are some utilities in uDig for this. > They aren't super clean because they are primarily internal classes. > Look at FeatureUtil for a start. Right now the CRS of a feature is > located on the FeatureType rather than the geometry so you need a new > feature type for the feature and therefore a new feature. I know.... > Ugh. Like I said see if there is anything in FeatureUtil and feel free > to create a patch if you think it can be made easier to use by the > general public.
Alright, thanks, didn't notice that nice class. I'm really weak in the feature part of geotools, so I'll have to study a bit more that part to understand how to best do certain things. As I workaround I created the geometry and features and then filled the prj file with the proper wkt. It works, but... it's more than awful, I know... :) Andrea _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
