Hi Adrian, Thanks for the info and I appreciate. Here is the more detail about the data. You are right those are UTM Projected points. UTM Grid Zone: 10S "UTM-X, m:" 560531 "UTM-Y, m:" 4181786 Datum: 1927 NAD
What I want to do is, just to start with, I need to create a map for
these points.
X,Y
566469,4181502
567309,4177908
567306,4178221
563567,4182488
563601,4182221
560531,4181786
I created a map manually using ArcGIS, by just opening the above points
saved in a .txt file. Please find the attached map file.
I just want to do produce the same map programmatically by using some
open source GIS API.
Is it possible to do this by using JTS?
Do I need to create some coordinate points like this........
Coordinate ptc = new Coordinate(14.0d,14.0d);
// Create an array and add the coordinates for a line
Coordinate[] lsc = new Coordinate[7];
lsc[0] = new Coordinate(5.0d,5.0d);
lsc[1] = new Coordinate(6.0d,5.0d);
lsc[2] = new Coordinate(6.0d,6.0d);
lsc[3] = new Coordinate(7.0d,6.0d);
lsc[4] = new Coordinate(7.0d,7.0d);
lsc[5] = new Coordinate(8.0d,7.0d);
lsc[6] = new Coordinate(8.0d,8.0d);
I am new to this, it will be great if you could point out some classes
which does this (i.e) by taking the above UTM coordinate points and
produce the map like the one I attached.
Thanks,
Senthil
-----Original Message-----
From: Adrian Custer [mailto:[EMAIL PROTECTED]
Sent: Monday, July 10, 2006 7:36 AM
To: Natarajan, Senthil
Cc: Geotools users list
Subject: Re: [Geotools-gt2-users] Generating Map for set of Lat/Long
Points
Hello,
This is a great first question. I wish we had a tutorial just to answer
this question and I hope to build one eventually. For now you are going
to have to work your way through some things on your own.
First, your question is actually incomplete. We could easily generate a
data set with a point at each of those coordinates, as I will explain
below. However, if you then expect to match these coordinates to other
geographic data, you have to have slightly more information, namely the
projection system you are using. Your data do not seem to be longitudes
and latitudes but some other projected data; you will therefore need to
find out what projection they are using.
If all you want to do is create a file of geometric points at those
coordinates, then you are essentially going to be using the JTS library
since this is what Geotools uses. You could look on the JTS web site or
you could read the current documentation prototype at:
http://docs.codehaus.org/display/GEOTDOC/Programmers+Manual+Prototype
and checkout the tutorial file
http://docs.codehaus.org/download/attachments/50776/GnuGIS_Geotools_Tuto
rial000010_Geometry010_Creation.java?version=1
Note these are both prototypes, in early stages, and so are less elegant
than they could be but they should get you started. However, because you
are not using any projection information,
THIS WILL NOT GIVE YOU POINTS THAT YOU CAN MATCH TO OTHER DATA.
You have been warned. To do that you will need to build projection data
and use both your geometry and the projection info to build a geotools
feature. I'm hoping to write a tutorial about this shortly. Look around
at the web site for more info.
It would be nice to have a helper function in Geotools to do this simple
operation and perhaps we can add that eventually.
Good luck,
sincerely,
adrian custer
On Sun, 2006-07-09 at 19:13 -0400, Natarajan, Senthil wrote:
> Hi,
>
> I was wondering is it possible to generate a Map using GeoTools API
> for a set of Lat/Long points.
>
> Basically I need to generate a Map for these Locations.
>
> X, Y
>
> 566469,4181502
>
> 567309,4177908
>
> 567306,4178221
>
> 563567,4182488
>
> 563601,4182221
>
> 560531,4181786
>
>
>
> If it is possible could you point out some example code how to
> generate the Map. If it is not possible could you please suggest some
> open source Java API which does this.
>
>
>
> Thanks,
>
> Senthil
>
>
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
<<attachment: Locations.jpg>>
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
