On Mon, Jun 7, 2010 at 9:07 PM, arnauld ndefo <[email protected]> wrote:
> Hello everybody,
> i have understood what you have told me. But you haven't understood my
> anxiety.
> As i have stayed the last time, i have the file .xml. In this file, i have
> the latitude and longitude coordinate in the Degree unit. To construct the
> Coordinate object, i will match the X to Longitude and the Y to latitude.
> I will take a example.
> When i want to draw a LineString to this coordinate:
>
> Coordinate coord1 = new Coordinate(10.1623439,36.8545816)
> Coordinate coord2 = new Coordinate(10.1703396,36.8531219);
>
> ;( 10.1623439 is the latitude of a node in my file .xml and 36.854581 is
> the longitude.) The JMAPFRAME don't display this LineString
>
> But when i do this:
>
> Coordinate coord1 = new Coordinate(1131270.8550,4418856.9693);
> Coordinate coord2 = new Coordinate(1131439.2747,4418792.6636);
>
> the line is display with the JMapFrame. I don't know what is the unit
> of 1131270.8550,4418856.96 and how can i do to have all the coordinate
> geographic in my file .xml to this format.
>
Your problem is a basic geography one not really a GeoTools problem. You can
only make your map work if you know the projection (CRS/SRS) of all of your
data. Once you find out the units and projection of your data set then you
can proceed to try to reproject your data file to match. GeoTools can help
with this which is what others have been pointing you to, however without
some clues it can't help you out.
Ian
--
Ian Turton
------------------------------------------------------------------------------
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