Dear All,

I apologize if this has been discussed before.

To put it simply, ihave:

1. a set of, say JPEG, images.
2. a CSV file describing the lat-lon coordinate box for each of the
images (each record also include the coordinate system code, scale name,
image size in pixel, etc.), something like:

image_name, cs, width, height, x1, y1, x2, y2, x3, y3, x4, y4
image1.jpg, 4801, 2000, 2000, 135.123, 39.123, ...
image2.jpg, 4801, 2000, 2000, 135.123, 39.123, ...
....

3. the boundary of the whole area covered.

My objective is:

to have a simple function to get an image given any box within the
boundary (3) above with a specific CRS. Something like:

Image getImage(float x1, float y1, float x2, float y2,
CoordinateReferenceSystem crs);

This function supposed to get some portion of one file, some from
another, etc., should the box requested covers the area of more than 1
image.

I was thinking of using GridCoverage, and I tried to study
GridCoverage2D, FileSystemGridCoverageExchange, .. and other seemingly
related classes, but I am currently stuck on how to knit these things
together..

So, basically, my question is:

1. Is it even possible to use geotools to do what I wanted.
2. If it is possible, I would appreciate very much if anybody could give
me as much as a hint on which classes/methods I should go to.
3. If it is not possible, is there any other kind of data/file/info,
etc. that is required to achive this objective.

Thanks a lot in advance,

Purbo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to