mzorova wrote: > Hello, > > I am completely new to GIS and have a project that requires some GIS > functionality and I have spent the last week (in vain) trying to do it from > first principles, learn how I might use geotools2 from the geotools wiki and > the javadocs, and I have to say I am more confused than when I started, > though I have learnt of the existence of a lot of concepts, I don't quite > grasp how they might be used to help me solve the problem at hand. > > My problem is as follows: > > I have: > + an map image in PNG format > + the latitude and longitude of the CENTER of the above map > + the projection of the above map (plate carree) > + the datum used for the above map (NAD83) > I think you are missing one bit of information - the scale of the image. If you had the scale of the image you could calculate the two corners you describe. I *think* this information is all used at the end of the day to make a MathTransform from your image to the screen. > Unfortunately, after all the reading and searching, I am completely lost and > really do not even know where to start looking. > Do you have any indication of scale? And if it is only one image you may just want to "try" and position the image correctly using trial and error. You can use a shapefile (say countries.shp included in the udig sample data set) as a reference point.
Jody > A small snippet of Geotools2 code that does something like the above would > be incredibly useful in pointing me towards the right modules of the > geotools codebase where I can dig deeper. I know that has probably something > to do with the referencing module, but I have NO idea what the code needs to > look like to get started. > > Any help at all would be GREATLY appreciated. Thanks so much in advance for > your patience with a newbie query. > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
