-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] site survey #707
base: main
Are you sure you want to change the base?
[ENH] site survey #707
Conversation
so what's the workflow with this mode? select nets -> grab everything -> done button -> local trilat -> local kml output? |
} else if (rssi >= 70) { | ||
return "#70_to_79"; | ||
} else if (rssi >= 60) { | ||
return "#60_to_69"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Basically, "select a net" from the main list view -> (wait for the DB query to finish before it allows you to do a site survey, unfortch.) -> click the survey button when it's offered -> walk around a bit, staring at your screen like a zombie -> click "end survey" -> get the standard Android "hey, what should I do with this file" dialog and pick how you want get/send your file! alternately, exit the network activity and go about your business, discarding those observations unwritten or shared. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* @author rksh | ||
*/ | ||
public class Observation { | ||
private DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fun!
Oooooooo, I like it! |
+"<Style id=\"100_and_up\"><IconStyle><color>cc0000ff</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"90_to_99\"><IconStyle><color>cc0055ff</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"80_to_89\"><IconStyle><color>cc00aaff</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"70_to_79\"><IconStyle><color>cc00ffff</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"60_to_69\"><IconStyle><color>cc00ffaa</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"50_to_59\"><IconStyle><color>cc00ff55</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" | ||
+"<Style id=\"0_to_49\"><IconStyle><color>cc00ff00</color><scale>0.75</scale><Icon> <href>http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png</href></Icon></IconStyle><LabelStyle><scale>0</scale></LabelStyle></Style>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArcGIS was complaining about the resulting KML file being invalid, and after running it thru a schema validator, looks like it doesn't like these IDs:
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '100_and_up' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '90_to_99' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '80_to_89' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '70_to_79' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '60_to_69' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '50_to_59' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '40_to_49' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '30_to_39' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '20_to_29' is not a valid value of the atomic type 'xs:ID'.
element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style', attribute 'id': '0_to_19' is not a valid value of the atomic type 'xs:ID'.
i think it's just because they start with a non-letter -- if rename them all rssi_90_to_99
etc, it validates just fine!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point - hadn't actually read the spec. fixed in 3e9b800
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shortened after seeing the file sizes, but still leading w/ alpha.
…as an impact on export size)
Strings-ified text and added more. Now to begin the translations! |
a sketch of a simple (too simple?) site survey function. WiFi only at first