The way my system identifies which grid changes are in, is based on an
imported text file, and postgresql's spatial engine.
Cache.txt which contains this sort of thing:
030L05.osm -80 42.424486000000002
-79.803944000000001 42.5
030L11.osm -79.5 42.616039999999998
-79.144986000000003 42.75
030L12.osm -80 42.5
-79.5 42.75
Which is file name, minlon, minlat, maxlon, maxlat
I'm NOT prepared to download all of Canada's Canvec data to get these
borders. The MB tiles in there are only there because I downloaded all
of Ontario and those tiles are right on the border.
However, if you can send me a file in this format, I'd be happy to add
it to the text file and import.
This is how I build that file: ($x being the filename)
export maxlat=$(cat $x | grep "lat=" | awk -Flat=\" {'print $2'}
| awk -F\" {'print $1'} | sort | tail -1)
export minlat=$(cat $x | grep "lat=" | awk -Flat=\" {'print $2'}
| awk -F\" {'print $1'} | sort | head -1)
export maxlon=$(cat $x | grep "lon=" | awk -Flon=\" {'print $2'}
| awk -F\" {'print $1'} | sort | head -1)
export minlon=$(cat $x | grep "lon=" | awk -Flon=\" {'print $2'}
| awk -F\" {'print $1'} | sort | tail -1)
printf "%-20s %-22s %-22s %-22s %-22s\n" >> Cache.txt ${Name}.osm
$minlon $minlat $maxlon $maxlat
Michael
On 22/09/10 09:11 AM, Tyler Gunn wrote:
So what's the trick to getting edits to link up properly in the Canvec
activity chart?
http://osm.carterfamily.ca/canvec-activity.cgi
I've thusfar ONLY managed to get a small fraction of my edits to show up
linked out by tile rather than just being accumulated in my big-'ole blob
of edits:
MB | Tygunn | 2010-09-21 22:14:13 | 61665 |
0 | Active
I typically set my changeset comments to something like:
Canvec 062J02.1.osm
Just wondering what pattern I should use?
Thanks!
Tyler
--
Tyler Gunn
[email protected]
_______________________________________________
Talk-ca mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-ca
_______________________________________________
Talk-ca mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-ca