Hi Jody,
Thank You for the samples, meanwhile I implemented something which works
fine as standalone Maven program, but as soon as I integrate this into an
EAR and deploy it on a JBoss server the CRS.lookupIdentifier fails (returns
null) (I in one occasion it was successfull but next time with the same
setup it failed again)
I use the same dependencies (gt-referencing, gt-epsg-hsql, gt-shapefile)
and try to import the same shapefile.
I have no other gt-epsg-* dependency in the project
Any idea where I could search?
Best regards
Andreas
2013/6/19 jody.garnett [via OSGeo.org] <
[email protected]>
> 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
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5060982&i=0>
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/How-to-transform-shapes-with-different-datum-tp5060839p5060982.html
> To unsubscribe from How to transform shapes with different datum?, click
> here<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5060839&code=YmVyZ21hbm4uaGhAZ21haWwuY29tfDUwNjA4Mzl8MjM1NjcwNjY1>
> .
> NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/How-to-transform-shapes-with-different-datum-tp5060839p5061223.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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