[Talk-de] osm.pm perl module
Gary68
gary at gary68.de
Mi Dez 24 12:37:59 UTC 2008
hallo,
für alle, die ein wenig in perl rummachen. ich habe eine erste version
meines osm.pm moduls veröffentlicht. ihr findet es auf meiner wiki seite
http://wiki.openstreetmap.org/User:Gary68
es enthält nützliche routinen zum umgang mit osm, gpx und html files.
weiterhin routinen zum rechnen, zum tiles anzeigen und file info.
nicht alles ist neu, aber mal schön auf einem haufen. details weiter
unten in der liste der bisher implementierten subs.
beispiele gibt es in der 2. generation der waycheck programme. ebenfalls
auf meiner wiki seite.
ciao
gerhard
gary68
# binSearch ($value, @ref) > $index or -1
# closeOsmFile ()
# checkOverlap (w1xMin, w1yMin, w1xMax, w1yMax, w2xMin, w2yMin, w2xMax,
w2yMax) > 0=no overlap, 1=overlap
# crossing (g1x1,g1y1,g1x2,g1y2,g2x1,g2y1,g2x2,g2y2) > ($sx, $sy)
# distance (x1,y1,x2,y2) > $distance in km
# getNode () > ($gId, $gLon, $gLat, $gU, \@gTags) ; # in main @array = @
$ref
# getRelation
# getWay () > ($gId, $gU, \@gNodes, \@gTags) ; # in main @array = @$ref
# hashValue ($lon, $lat) > $hashValue
# historyLink ($type, $key) > $htmlString
# josmLink ($lon, $lat, $span, $wayId) > $htmlString
# openOsmFile ($file) > osm file open and $line set to first node
# osbLink ($lon, $lat) > $htmlString
# osmLink ($lon, $lat) > $htmlString
# picLinkMapnik ($lon, $lat, $zoom) > $htmlString
# picLinkOsmarender ($lon, $lat, $zoom) > $htmlString
# printGPXHeader ($file)
# printGPXFoot ($file)
# printGPXWaypoint ($file, $lon, $lat, $text)
# printHTMLHeader ($file, $title) > print header to file
# printHTMLFoot ($file) > print foot to file
# printNodeList ($file, @list)
# printProgress ($program, $osm, $startTime, $fullCount, $actualCount)
# printWayList ($file, @list)
# shortestDistance ($gx1, $gy1, $gx2, $gy2, $nx, $ny) > roughly the
distance in km
# skipNodes ()
# stringFileInfo ($file) > $string
# stringTimeSpent ($timeSpent in seconds) > $string
# tileNumber ($lat,$lon,$zoom) > ($xTile, $yTile)
#
Mehr Informationen über die Mailingliste Talk-de