Thanks Martin! It works. /Paul
-----Original Message----- From: Martin Tomko [mailto:[EMAIL PROTECTED] Sent: den 5 december 2008 11:24 To: [email protected]; Malm Paul Subject: warnings when executing example SHP2SHP Paul, I think the problem is that you have multiple gt2_epsg_...jar libraries in your build path and you are doing some coordinate transformation. Have a look and keep only one - whichever you plan to use. the PostgreSQL requires I think that you install Postgress too. I use the hsql one, and an irregularly supported one is the WKT, I think. But I am no expert... Also see http://docs.codehaus.org/display/GEOTDOC/02+Meet+the+GeoTools+Library and http://docs.codehaus.org/display/GEOTDOC/07+Referencing Hope that helps, Martin T. [EMAIL PROTECTED] wrote: > Send Geotools-gt2-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Geotools-gt2-users digest..." > > > Today's Topics: > > 1. Re: problem with transformation from/to WG84 - CH1903 > ("EPSG:4326", "EPSG:21781") (Martin Tomko) > 2. Re: problem with transformation from/to WG84 - CH1903 > ("EPSG:4326", "EPSG:21781") (Martin Desruisseaux) > 3. Re: problem with transformation from/to WG84 - CH1903 > ("EPSG:4326", "EPSG:21781") (Martin Tomko) > 4. warnings when executing example SHP2SHP (Malm Paul) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 05 Dec 2008 09:42:29 +0100 > From: Martin Tomko <[EMAIL PROTECTED]> > Subject: Re: [Geotools-gt2-users] problem with transformation from/to > WG84 - CH1903 ("EPSG:4326", "EPSG:21781") > To: Martin Desruisseaux <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Martin (Desruisseaux), > sorry, that was my mistake from copying and pasting into the mail. I > tried both (I know that the order is sometimes tricky). > here are the results one comes with: > with the correct WGS84 order: > lat: 47.346805555555555 lon: 8.963944444444444 proj x: > 1.5637025606181357E7 proj y: -2852223.337476256 the result is totally > off. > With the swapped order: > lon: 8.963944444444444 lat: 47.346805555555555 proj x: > 1.0735073726643294E7 proj y: 245114.46377226454 at least the y is > correct (spot on). The x is totally off (expected value around 715253) > > Note that I swapped the order in the input. The switch in > CRS.decode(sourceSys,true) did not change anything! > I am still stuck with this one... > > Martin T. > > Martin Desruisseaux wrote: > >> Hello >> >> Watch out axis order. If you are using EPSG:4326 as your source CRS, >> the official axis order (according EPSG) is (latitude, longitude), >> not the other way arround. >> >> You can check which axis order you have with the following code: >> >> System.out.println(sourceCRS); >> >> and look at the order in which AXIS[...] element appears. >> >> If you really want (longitude, latitude) axis order, use >> >> sourceCRS = CRS.decode(sourceSys, true); >> >> >> >> Martin >> >> >> >> > > > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
