#939123 - 11/20/07 07:26 AM
Re: UO
[Re: zach_]
|
Explorer
Registered: 09/10/07
Posts: 190
Loc: Texas, USA
|
Quote:
Quote:
Guys, Can someone tell me what I'm doing wrong here? What's the difference between these two sets of coordinates? 38.23244,-118.552438 decimal form, and 3823'2.44"N 11855'24.38"W geo format. They place me 30 miles apart from each other in GE. And the decimal format does not get me any images from Kens or GE web sites. I get Images not available for that location. What the hell am I doing wrong?
The first coordinates are in decimal, and the second are in DMS (degrees, minutes, seconds) There are 60 minutes in a degree, 60 seconds in a minute, so for a simple example decimal 38.50 equals 38 30' in DMS
In your example above, decimal 38.23244 would be 38 degrees and ( .23244 x 60) minutes, or 38 13' 57'' in DMS
Edit: To use Ken's utility, you may want to configure GE to also display coordinates in decimal format. See Tools - Options - 3D View - and click on the "Decimal Degrees" radio button under "Show Lat/Long"
Thanks again Zach, and all others. I may have stumbled (in my half sleep) across a minor glitch in this GE SAR development we're doing for future use. VS and MTurk use DMS coordinates, but Ken uses decimal degree coords to retrieve the Sanborn2 images. Again this sets up a duplication or a potential point of confusion. In order to get a new assignment of San2 we use decimal coords, but to report anything on VS we need to switch to DMS. That should be standardized on one or the other. I suggest DMS since that is the most common way to report geo coordinates. Just another thought. 
|
|
Top
|
|
|
|
#939124 - 11/20/07 08:30 AM
Re: UO
[Re: rpmckinley]
|
Searcher
Registered: 09/27/07
Posts: 610
Loc: Portland Maine
|
Quote:
Quote:
Quote:
Guys, Can someone tell me what I'm doing wrong here? What's the difference between these two sets of coordinates? 38.23244,-118.552438 decimal form, and 3823'2.44"N 11855'24.38"W geo format. They place me 30 miles apart from each other in GE. And the decimal format does not get me any images from Kens or GE web sites. I get Images not available for that location. What the hell am I doing wrong?
The first coordinates are in decimal, and the second are in DMS (degrees, minutes, seconds) There are 60 minutes in a degree, 60 seconds in a minute, so for a simple example decimal 38.50 equals 38 30' in DMS
In your example above, decimal 38.23244 would be 38 degrees and ( .23244 x 60) minutes, or 38 13' 57'' in DMS
Edit: To use Ken's utility, you may want to configure GE to also display coordinates in decimal format. See Tools - Options - 3D View - and click on the "Decimal Degrees" radio button under "Show Lat/Long"
Thanks again Zach, and all others. I may have stumbled (in my half sleep) across a minor glitch in this GE SAR development we're doing for future use. VS and MTurk use DMS coordinates, but Ken uses decimal degree coords to retrieve the Sanborn2 images. Again this sets up a duplication or a potential point of confusion. In order to get a new assignment of San2 we use decimal coords, but to report anything on VS we need to switch to DMS. That should be standardized on one or the other. I suggest DMS since that is the most common way to report geo coordinates. Just another thought.
The reason I use decimal coordinates instead of DMS is purely technical. All calculations have to be done in decimal coordinates in order to figure out how to line up imagery. Also, Google Earth wants the coordinates in decimal format within the KML files themselves. This means that even if I were to accept DMS coordinates, I would have to then convert them to decimal before my script could use them. If I were to then return coordinates in DMS, I would then have to convert the resulting coordinates back into DMS from decimal degrees. This creates a whole mess of tedious calculations that would have to be done and create some knarly string parsing issues (just look at the fact that Google Earth's fly to box chokes on DMS coordinates that contain the decimal symbol).
Another factor in my decision to use decimal degrees is that Violent Skies provides decimal coordinates (as did MTurk) to look up overlays. I've actually been very preplexed as to why VS decided to require DMS coordinates for submitting findings when decimal was being used everywhere else.
In short, working with decimal degrees is just so much easier and cleaner to deal with from a technical standpoint. From a user standpoint, it really doesn't matter, so long as it is consistent. The problem is that Violent Skies is using both in that they require DMS for submitting reports but use decimal degrees when providing coordinates to reported objects. It would be nice if the guys at Violent Skies would allow sightings to be submitted in decimal degrees since I'm sure they are converting them over to this anyways.
_________________________
InternetSAR.org: Volunteers collaboratively analyzing aerial and satellite imagery to assist in search and rescue efforts.
|
|
Top
|
|
|
|
#939125 - 11/20/07 01:48 PM
Re: UO
[Re: KenBarbalace]
|
Searcher
Registered: 10/11/07
Posts: 245
|
Quote:
The reason I use decimal coordinates instead of DMS is purely technical. All calculations have to be done in decimal coordinates in order to figure out how to line up imagery. Also, Google Earth wants the coordinates in decimal format within the KML files themselves. This means that even if I were to accept DMS coordinates, I would have to then convert them to decimal before my script could use them. If I were to then return coordinates in DMS, I would then have to convert the resulting coordinates back into DMS from decimal degrees. This creates a whole mess of tedious calculations that would have to be done and create some knarly string parsing issues (just look at the fact that Google Earth's fly to box chokes on DMS coordinates that contain the decimal symbol).
Another factor in my decision to use decimal degrees is that Violent Skies provides decimal coordinates (as did MTurk) to look up overlays. I've actually been very preplexed as to why VS decided to require DMS coordinates for submitting findings when decimal was being used everywhere else.
In short, working with decimal degrees is just so much easier and cleaner to deal with from a technical standpoint. From a user standpoint, it really doesn't matter, so long as it is consistent. The problem is that Violent Skies is using both in that they require DMS for submitting reports but use decimal degrees when providing coordinates to reported objects. It would be nice if the guys at Violent Skies would allow sightings to be submitted in decimal degrees since I'm sure they are converting them over to this anyways.
Ken, if you would also allow DMS user input on your KML utility page, you could simply convert the DMS entry to Decimal and keep everything the way it is now for calculations and outputs. This would be helpful when working with both VS and your page at the same time. Basically you would only need to add 3 entry boxes for latitude (latDeg, latMin, latSec) and 3 for longitude (lonDeg, lonMin, lonSec) ,,,
So in case you change your mind and want to help us overworked, underpaid rif-raf... I don't know what programming language you use, but here it is in a simple form: . Validate DMS limits on entry: latDeg 0 to 89 latMin 0 to 59 latSec 0 to 59.99 lonDeg 0 to 179 lonMin 0 to 59 lonSec 0 to 59.99 . Get signum of coordinates: latSign = (latDeg > 0) - (latDeg < 0) lonSign = (lonDeg > 0) - (lonDeg < 0) . Convert DMS to decimal degrees: latDECIMAL = latSign * (abs(latDeg) + latMin/60 + latSec/3600) lonDECIMAL = lonSign * (abs(lonDeg) + lonMin/60 + lonSec/3600) . Then you could use latDECIMAL and lonDECIMAL as before for your calculations / outputs and change nothing else... You don't even need any knarly string parsing. How about it?
Edited by zach_ (11/20/07 02:39 PM)
|
|
Top
|
|
|
|
#939126 - 11/20/07 02:45 PM
Re: UO
[Re: zach_]
|
Searcher
Registered: 09/27/07
Posts: 610
Loc: Portland Maine
|
Quote:
Ken, if you would at least allow DMS user input on your KML utility page, you could simply convert the DMS entry to Decimal and keep everything the way it is now for calculations and outputs. This would be helpful when working with both VS and your page at the same time. Basically you would only need to add 3 entry boxes for latitude (latDeg, latMin, latSec) and 3 for longitude lonDeg, lonMin, lonSec) ,,,
So in case you change your mind and want to help us overworked, underpaid rif-raf... I don't know what programming language you use, but here it is in a very simple form: . Validate DMS limits on entry: latDeg 0 to 90 latMin 0 to 60 latSec 0 to 60 lonDeg 0 to 180 lonMin 0 to 60 lonSec 0 to 60 . Get signum of coordinates: latSign = (latDeg > 0) - (latDeg < 0) lonSign = (lonDeg > 0) - (lonDeg < 0) . Convert DMS to decimal degrees: latDECIMAL = latSign * (abs(latDeg) + latMin/60 + latSec/3600) lonDECIMAL = lonSign * (abs(lonDeg) + lonMin/60 + lonSec/3600) . Then you could simply use latDECIMAL and lonDECIMAL as before for your calculations and change nothing else... You don't even need any knarly string parsing. How about it?
Do keep in mind that Violent Skies does provide their coordinates in decimal format directly below the DMS format on the individual page for sightings, so there really is no need to convert from DMS to decimal degrees just to review Violent Skies reports.
To answer your question about programming language, I'm using PHP. If someone wanted to provide me a PHP function that could accept coordinate data in either decimal or DMS in the following format I could review it and plug it into my code: Code:
$coordinates = 38 05'37.39"N, 118 38'00.84"W $coordinates = 38 05'37.39"N, 118 38'00.84"W $coordinates = 38.0937194444,-118.633566667
Right now, I am neck deep into trying to gain full access to the Sanborn2 0909-105xx series of imagery, which people have been asking for, and can not get to creating such a function myself for a day or two at best.
I was hoping to have provided full access to the 0909-105xx series of imagery by this morning, but I'm running into all kinds of set backs.
I figured out how to get the coordinate data I needed for the 0909-105xx series from the reported objects in DKF's Sanborn2.KML overlay, but I'm having to spend a great deal of effort sleuthing out the image file naming schemes being employed by each image set, which is not very consistent. It has taken a great deal of trial and error to figure out the file naming schemes used for each set of imagery in the 0909-10500 series.
All image sets from 0909-10500 through 0909-10529 end in "_6.png", however, most image sets from 0909-10530 on end in "_7.png". The exceptions being 0909-10554, 0909-10555, 0909-10556, 0909-10561, 0909-10562, 0909-10563, 0909-10564, 0909-10565 and 0909-10567, which end in "_8.png".
In addition some of the 0909-105xx series use the old file naming scheme (e.g. http://s3.amazonaws.com/Fossett-Sanborn2/0909-10540/imagery/5120_3840_7.png) while other image sets in the 0909-105xx series use the new file naming scheme where the image set designation is part of the filename in addition to being in the folder name (e.g. http://s3.amazonaws.com/Fossett-Sanborn2/0909-10505/imagery/0909-10505_5120_3840_6.png).
I am also running scripts that interrogate Amazon's server to determine the exact image files that are available (even fully automated, this takes hours upon hours to complete). As part of this interrogation, I discovered one image set where DKF did not omit the empty alpha layer PNG files from the Amazon web server like he normally did, which required me to spend two or three hours manually figuring out which image files for that image set actually contained aerial imagery and which were empty (otherwise people would be assigned empty overlays to review).
Edited by KenBarbalace (11/20/07 02:47 PM)
_________________________
InternetSAR.org: Volunteers collaboratively analyzing aerial and satellite imagery to assist in search and rescue efforts.
|
|
Top
|
|
|
|
#939127 - 11/20/07 02:58 PM
Re: Ouch!
[Re: blue_penguin]
|
Traveler
Registered: 09/27/07
Posts: 72
|
Not only in the same general area but next to each other. The only thing I don't remember seeing on the flat is maybe pinion pine? Of course the sage brush does tend to grow smaller on the sides of the mountain but it still grows there. 
|
|
Top
|
|
|
|
#939128 - 11/20/07 03:09 PM
Re: UO
[Re: KenBarbalace]
|
Searcher
Registered: 10/11/07
Posts: 245
|
Quote:
To answer your question about programming language, I'm using PHP. If someone wanted to provide me a PHP function that could accept coordinate data in either decimal or DMS in the following format I could review it and plug it into my code: Code:
$coordinates = 38 05'37.39"N, 118 38'00.84"W $coordinates = 38 05'37.39"N, 118 38'00.84"W $coordinates = 38.0937194444,-118.633566667
Ok Ken, understand you're busy like there was no tomorrow. So whenever you get a chance: http://www.weberdev.com/get_example-3548.html It is probably a lot more than you need, but the conversion function is in there: Quote: "greatcircle.php Convert latitude/longitude coordinates between degree and decimal format. Also has ability to determine distance between them."
Edit: also please note that I edited my post re DMS entry validation : these are the correct values
Validate DMS limits on entry: latDeg 0 to 89 latMin 0 to 59 latSec 0 to 59.99 lonDeg 0 to 179 lonMin 0 to 59 lonSec 0 to 59.99
The original limit values were wrong.
Edited by zach_ (11/20/07 03:35 PM)
|
|
Top
|
|
|
|
#939129 - 11/20/07 03:38 PM
Re: Ouch!
[Re: annewandering]
|
Searcher
Registered: 10/02/07
Posts: 470
Loc: France
|
Quote:
Not only in the same general area but next to each other. The only thing I don't remember seeing on the flat is maybe pinion pine? Of course the sage brush does tend to grow smaller on the sides of the mountain but it still grows there.
What would you say about a small mixture of all this charming local vegetation, just to put everybody of the same opinion? (still a day or two and they will end up believing that one never saw a tree, by here )

|
|
Top
|
|
|
|
#939130 - 11/20/07 07:48 PM
Re: UO
[Re: KenBarbalace]
|
Explorer
Registered: 09/10/07
Posts: 190
Loc: Texas, USA
|
OK Ken, no sweat, We can live with what we have here for now, Just thinking ahead to any future development of a SAR system. Look up, assignments, and reporting should all be on the same coord format. It really doesn't matter as long as everyone can easily adapt, and that includes any Military or Gov data they may provide. 
|
|
Top
|
|
|
|
Moderator: BeadieJay, bebop, Cyclonic, Delta102, Diane9247, dulce, esterrett, Frank_McVey, Hill, jeffryv, Jumble, Kempster, LuciaM, marinerfan, Noisette, NormB, no_stranger, tekgergedan, TheLedge
|
|