Hi martin,
thanks so much for helping. here are the outputs:
Source: GEOGCS["WGS 84",
  DATUM["WGS_1984",
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
    AUTHORITY["EPSG","6326"]],
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
  UNIT["degree", 0.017453292519943295],
  AXIS["Longitude", EAST],
  AXIS["Latitude", NORTH],
  AUTHORITY["EPSG","4326"]]

Target: PROJCS["CH1903 / LV03",
  GEOGCS["CH1903",
    DATUM["CH1903",
      SPHEROID["Bessel 1841", 6377397.155, 299.1528128, 
AUTHORITY["EPSG","7004"]],
      AUTHORITY["EPSG","6149"]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Longitude", EAST],
    AXIS["Latitude", NORTH],
    AUTHORITY["EPSG","4149"]],
  PROJECTION["Hotine_Oblique_Mercator"],
  PARAMETER["longitude_of_center", 7.439583333333333],
  PARAMETER["latitude_of_center", 46.95240555555556],
  PARAMETER["azimuth", 90.0],
  PARAMETER["scale_factor", 1.0],
  PARAMETER["false_easting", 600000.0],
  PARAMETER["false_northing", 200000.0],
  PARAMETER["rectified_grid_angle", 90.0],
  UNIT["m", 1.0],
  AXIS["x", EAST],
  AXIS["y", NORTH],
  AUTHORITY["EPSG","21781"]]

Transform: CONCAT_MT[PARAM_MT["Ellipsoid_To_Geocentric",
    PARAMETER["dim", 2],
    PARAMETER["semi_major", 6378137.0],
    PARAMETER["semi_minor", 6356752.314245179]],
  PARAM_MT["Affine",
    PARAMETER["num_row", 4],
    PARAMETER["num_col", 4],
    PARAMETER["elt_0_3", -674.4],
    PARAMETER["elt_1_3", -15.1],
    PARAMETER["elt_2_3", -405.3]],
  PARAM_MT["Geocentric_To_Ellipsoid",
    PARAMETER["dim", 2],
    PARAMETER["semi_major", 6377397.155],
    PARAMETER["semi_minor", 6356078.962818189]],
  PARAM_MT["Hotine_Oblique_Mercator",
    PARAMETER["semi_major", 6377397.155],
    PARAMETER["semi_minor", 6356078.962818189],
    PARAMETER["longitude_of_center", 7.439583333333333],
    PARAMETER["latitude_of_center", 46.95240555555556],
    PARAMETER["azimuth", 90.0],
    PARAMETER["scale_factor", 1.0],
    PARAMETER["false_easting", 600000.0],
    PARAMETER["false_northing", 200000.0],
    PARAMETER["rectified_grid_angle", 90.0]]]

Thanks heaps,
Martin





Martin Desruisseaux wrote:
> Hello
>
> Martin Tomko a écrit :
>   
>> 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)
>>     
>
>
> Could you post the following please?
>
> - The output of System.out.println(sourceCRS);
> - The output of System.out.println(targetCRS);
> - The output of System.out.println(theMathTransform);
>
>
>       Martin
>
>
>   


-- 
Martin Tomko
Postdoctoral Research Assistant 
    
Geographic Information Systems Division
Department of Geography
University of Zurich - Irchel
Winterthurerstr. 190
CH-8057 Zurich, Switzerland

email:  [EMAIL PROTECTED]
site:   http://www.geo.uzh.ch/~mtomko
mob:    +41-788 629 558
tel:    +41-44-6355256
fax:    +41-44-6356848


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

Reply via email to