Interesting, check to see if gt-epsg-hsql is unpacking the database to a temp 
file, depending on your application server permissions it may fail at doing 
something like that. 

If not you are going to have to connect in with a debugger and step in and 
watch the code fail :D

Note: uDig tried using H2 as an alternative, but it was never adopted by the 
wider geotools community.

Jody 

-- 
Jody Garnett


On Thursday, 20 June 2013 at 8:31 AM, dodid wrote:

> 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 (http://OSGeo.org)] <[hidden email] 
> (/user/SendEmail.jtp?type=node&node=5061223&i=0)>
> > > 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 (http://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.
> > 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: Re: How to transform shapes with different 
> datum? 
> (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 
> (http://osgeo-org.1560.x6.nabble.com/geotools-gt2-users-f4317834.html) at 
> Nabble.com (http://Nabble.com).
> ------------------------------------------------------------------------------
> This SF.net (http://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] 
> (mailto:[email protected])
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 


------------------------------------------------------------------------------
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