> When I load a shapefile and transform it to a shapefile with the same CRS
> everything is fine. But as soon as try to transform the shapefile with a
> different datum, the result is misplaced, or, if I turn of 'lenient',
> Geotools tells me that the Bursa Wolf parameters are missing.
> 
> 

Are you reading this from a prj file?

The WKT syntax provided by some tools does not always provided enough 
information for GeoTools
to accurately make the transform.

What you can do is look up the "official" definition that matches, and then 
proceed as normal.
> Is there a working example?
> 
> 

The example works with the CoordinateReferenceSystem has enough information :-) 
> Can Geotools identify the required Bursa Wolf parameters?
> 
> 

It cannot make up information for you, but it can come close - hunt down an 
official definition that matches the information you do have.

I was pretty sure I put an example in the docs - here it is:
- 
http://docs.geotools.org/latest/userguide/library/referencing/crs.html#matching-a-coordinatereferencesystem
> I'm using Geotools 9.1 and have the dependencies gt-shapefile,
> gt-referencing, gt-swing and gt-epsg-hsql
> 
> 

So if you stitch those two examples together you should get what you want. To 
be slightly more responsible you could either:
- output a warning so users of your application know you are making stuff up
- pop open the swing CRS Chooser and ask for user intervention

All the best,
Jody
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to