hello everybody,
when i put before the add of my first layer these lines,

MapContext map=new DefaultMapContext();

CoordinateReferenceSystem crs=DefaultGeographicCRS.WGS84;

      ReferencedEnvelope re=new ReferencedEnvelope(10.1602292, 
10.1741338,36.8468991,36.853853199999996, DefaultGeographicCRS.WGS84);

      map.setCoordinateReferenceSystem(crs);
 
map.setAreaOfInterest(re);

i have always these lines

minX=1130433.28
minY=4417197.27
maxX=1133360.86
maxY=4419251.99 when i display the min(X,Y) and max(X,Y) of the 
ReferenceEnveloppe 

object. instead of

 minY='36.8468991' minX='10.1602292' maxY='36.853853199999996' 
maxX='10.1741338'.

The displayed of the "map.getCoordinateReferenceSystem()" with map like 
MapContext show me these lines:

GEOGCS["WGS84(DD)", 
  DATUM["WGS84", 
    SPHEROID["WGS84", 6378137.0, 298.257223563]], 
  PRIMEM["Greenwich", 0.0], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic longitude", EAST], 
  AXIS["Geodetic latitude", NORTH]] 
.
Please help me to have the X=lon an Y=lat like the format of the data which are 
in my .xml file.This is my .xml file

<osm version='0.6' generator='JOSM'>
  <bounds minlat='36.8468991' minlon='10.1602292' maxlat='36.853853199999996' 
maxlon='10.1741338' origin='CGImap 0.0.2' />
  <node id='243997182' timestamp='2008-01-29T14:58:17Z' uid='22060' 
user='chrischan' visible='true' version='1' changeset='708944' lat='36.8570917' 
lon='10.1670734' />
  <node id='243997183' timestamp='2008-01-29T14:58:17Z' uid='22060' 
user='chrischan' visible='true' version='1' changeset='708944' lat='36.8554984' 
lon='10.1685669' />
  <node id='243997185' timestamp='2009-05-12T23:28:34Z' uid='123321' 
user='Hatem' visible='true' version='2' changeset='1170291' lat='36.8536855' 
lon='10.1699434' />
  <node id='243997186' timestamp='2008-01-29T14:58:17Z' uid='22060' 
user='chrischan' visible='true' version='1' changeset='708944' lat='36.852923' 
lon='10.1704466' />
  <node id='243997187' timestamp='2008-01-29T14:58:17Z' uid='22060' 
user='chrischan' visible='true' version='1' changeset='708944' lat='36.8524628' 
lon='10.170644' />
  <node id='243997188' timestamp='2008-01-29T14:58:17Z' uid='22060' 
user='chrischan' visible='true' version='1' changeset='708944' lat='36.852037' 
lon='10.1707041' />
  <node id='243997189' timestamp='2009-05-12T19:23:58Z' uid='123321' 
user='Hatem' visible='true' version='2' changeset='1167652' lat='36.8515842' 
lon='10.1706955' />
  

Ndefo Kamgne Arnauld

Cité Ettayour,Immeuble Bolbol 1,Appartement A2,Ariana

0021624249357




      
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to