Hi, It is almost that easy, but world files have anchor point at the centre of the top left pixel, not at top left corner of top left pixel. If you are interested in real image area you will need to do some plus and minus operations with half a pixel size values. Or you may download gdal utilities from gdal.org and use gdalinfo, it is reporting not only the corners of an image but much other useful information as well. Gdalinfo suits well for making automatic script for all your images. However, I am not sure if there are ready compiled gdal packages for os x.
-Jukka Rahkonen- -----Alkuperäinen viesti----- Lähettäjä: [EMAIL PROTECTED] puolesta: Larry Becker Lähetetty: to 17.7.2008 16:21 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] JTin Summer of Code Update: Hi Eric, I don't know an answer in OpenJump, but computing the corners of an image is straigntforward if you have the world file or can get that information from the GeoTIFF. You'll also need the number of pixels horizontal and vertical. This is available in many graphics editors. Example world file: 0.692505600000000 //horizontalResolution 0.000000000000000 0.000000000000000 -0.692505600000000 //verticalResolution 515.1120000000000000 //left 2613.660000000000000 //top The world file has the coordinate of the upper left pixel (left, top). So, for example, to compute the other edges you would do: right = left + (xPixels * horizontalResolution) bottom = top + (yPixels * verticalResolution) You could do all of this in a spreadsheet. regards, Larry Becker On Wed, Jul 16, 2008 at 6:58 AM, Eric Jarvies <[EMAIL PROTECTED]> wrote: > hello, > > on os x, is there an 'easy' way to either copy(and paste) or save-as or > export the coordinates of a raster image/geotiff? if so, i would apeciate > it if someone could enlighten me. if i go into the Feature Info window, i > of course can VIEW this information, and can highlight it, but it does not > copy when i attempt to apple-C or right-click-copy(there is no > right-click-copy). > > i have a 1000 or so mrsid files i had converted sometime back to geotiff. > now i need to convert them to a handheld format, and the converter requires > i enter left, right, top, and bottom coordinates(xmin, xmax, ymin, ymax). > and so, it would be wonderful if there was an EASY way to go about getting > this info using oj on os x. i have not looked into any other utilities, > perhaps they do or do not exist, not sure. but if anyone here knows, again, > i would much appreciate it. > > regards, > > > > > > Eric Jarvies > > > > > On Jul 15, 2008, at 4:47:17:AM, Stefan Steiniger wrote: > > Hei, >> >> so did you look on the link I send a while ago on the swiss DEM data? >> Everything is there in different or one file. If you need help I may >> make a short description of that data in case they did not provide the >> english translation but only the german or french description. >> >> stefan >> >> Sunburned Surveyor schrieb: >> >>> Chris, >>> >>> You wrote: "3D point data would be fine for now, but if you could get >>> 3D point data + breaklines + boundaries, I would thrilled." >>> >>> Would the breaklines and boundaries be provided as LineStrings with z >>> values in the LineString coordinates? >>> >>> This might take me a little doing, as I'll have to write some AutoLISP >>> to get the data out of CAD as WKT. I need some tools that will do this >>> anyways, but it'll take me a coupld of days. I might be able to get it >>> done by the end of the week? >>> >>> Landon >>> >>> P.S. - Any suggestions on the classes/class I should start my code review >>> with? >>> >>> On Mon, Jul 7, 2008 at 3:26 PM, Christopher <[EMAIL PROTECTED]> >>> wrote: >>> >>>> From: Sunburned Surveyor <[EMAIL PROTECTED]> >>>>> I finally backtracked to Subclipse 1.2 on my laptop, and I >>>>> was able to >>>>> download your source code for JTin. I'll try to get >>>>> that code review >>>>> squeezed in tonight or tomorrow. >>>>> >>>>> That's fine, give me a call if you need anything explained. I just >>>> uploaded an updated set of files. The new thing is that triangle clipping >>>> is >>>> implemented and there is the ability to get a subset of the tin (unused as >>>> of now, but it will be useful in the future). Right now, I'm working on >>>> javadoc'n then hillshades. >>>> >>>> I know that we talked a little about my providing some CAD >>>>> data that >>>>> you could use to test JTin. What type of simple features do >>>>> you want? >>>>> Do you want Point Features? Or do you want LineStrings >>>>> representing >>>>> contours? >>>>> >>>>> Let me know what you have in mind. >>>>> >>>>> 3D point data would be fine for now, but if you could get 3D point >>>> data + breaklines + boundaries, I would thrilled. >>>> >>>> Thanks, >>>> --Christopher >>>> >>>> >>>> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > -- http://amusingprogrammer.blogspot.com/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel