From: <Fre...@ao...> - 2004-10-29 13:44:43
|
Hi all, I have a problem concerning Coordinate system : I have two applications : 1) A canvas which is used to draw line with mouse 2) the SIG application (with the map, layers, ...) I would like to take the coordinates of the line I drawed in the application 1, and transform them in order to draw it on the map (with the others coordinates). I saw in the tutorial the method "transform.transform (point, point)" ... But how can I obtain the coordinate information of my first application (where I draw line) .. I don't understand the parameters we can find in the wkt ... Is there a norm in windows Jframe or Canvas to find easely the wkt ? Moreover, i meet the following problem : when I take the coordinate of the mouse when I click on a layer, the x varies between 793480 and 800000 and the y is around of 2094912 (I use getMapCoordinate)... and when I display the result of : mapPane.getCoordinateSystem().toWKT(), I obtain : LOCAL_CS["Cartésien", LOCAL_DATUM["Inconnu", 32767], UNIT["mètre",1.0], AXIS["x",EAST], AXIS["y",NORTH]] ... Is it the real coordinate system of the active layer ?? Because, it seems different of the coordinate I find by clicking on the map ... It would be nice to help me because I don't understand lots of thing in the specifial terms of the coordinate system ... :-) Thank's ... Frederic |