User:Gormo

From OpenStreetMap Wiki
Jump to navigation Jump to search
About Me
This user submits data to OpenStreetMap under the name
gormo.
Flag of Germany.svg This user hails from Germany
Bike Gormo
is a bicyclist.
Hiker Gormo
is a hiker.
JOSM Gormo submits data to OpenStreetMap using JOSM.
...? Gormo appreciates the use of Good changeset comments.
Babel user information
de-N Dieser Benutzer spricht Deutsch als Muttersprache.
en-3 This user has advanced knowledge of English.
Users by language


Lived a long time near Goslar.

Now Hannover.

Meine CS-Diskussionen


Mappe aktuell meist beim Fahrradfahren.


Meine Miniprojekte

"Ortsteile User:Gormo/Bad Münder".

https://overpass-turbo.eu/s/Fj0 deutsche Namen bei Gdansk



User:Gormo/Bergbauklassifikation

Web mapping

How to read github GIST GeoJSON files and display them on leaflet: http://jsfiddle.net/8p2o4qn6/6/

JSON from Overpass Turbo via AJAX call

var qry = "data=[out:json][timeout:25];(way(61195113);way(61206841););out tags;";
$.ajax( {
  url: "https://overpass-api.de/api/interpreter",
 data: { data: qry },
 jsonp: 'jsonp',
 dataType: 'jsonp',
 success: function(data,status,xhr) {
    if (data == undefined) {
      // should not be reached
      console.log("Barf!");
    } else {
      $.each(data.elements,
        function(i,v) {
          // i is numeric index, v is one returned element
          // handle ...
        }
      ); // end each
    } // end else clause of "if data == undefined"
  } // end success
}); // end ajax

http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(way(61195113);way(61206841););out tags;&jsonp=cb

read OSM wiki with jquery

$("#loadwiki_button").on('click', function() {
	$.ajax( {
	  url: "http://wiki.openstreetmap.org/w/api.php",
	  data: {	action:'query',
		titles: $("#wikipage").val(),
		prop:'revisions',
		rvprop: 'content',
		rvsection: $("#secnum").val(),
		format:'json',
	  },
	  jsonp: 'callback',
	  dataType: 'jsonp',
	  success: function(data,status,xhr) {
			var txt = "";
			if (data.query == undefined) {
				// should not be reached
				console.log("Barf! No content???");
			} else {
				$.each(data.query.pages,
					function(i,v) {
						// yes, the property is named '*'.
						console.log(data.query.pages[i].revisions[0]['*']);
					}
				); // end each
			}
	  }, // end success
	}) // end ajax
}); // end loadwiki_button onclick

Overpass Turbo snippets

Oberfläche von Wegen

https://overpass-turbo.eu/s/xJg

{{style:
way
{ color:black; width:4; opacity:1; }

way[surface=unpaved],way[surface=ground],way[surface=dirt] {
  color:brown; width:4; opacity:1;
}

way[surface=gravel],way[surface=fine_gravel],way[surface=sand],way[surface=compacted] {
  color:orange; width:4; opacity:1;
}

way[surface=grass] {
  color:green; width:4; opacity:1;
}

way[surface=concrete],way[surface=asphalt],way[surface=paving_stones] {
  color:darkgrey; width:4; opacity:1;
}

}}

Kundenparkplätze, die nicht als solche getaggt sind

name~"Kunden" and amenity=parking and access!~"customers"

http://overpass-turbo.eu/s/jA5

Wikidata-Tags auf interessantem Zeug

http://overpass-turbo.eu/s/jBJ

Bergbau

http://overpass-turbo.eu/s/ezV

_n-Tags

http://overpass-turbo.eu/s/dAq

Boards

http://overpass-turbo.eu/s/8Kh

{{style:

node {
  color: grey;
}

node[board_type=geology] {
  color: brown;
}

node[board_type=plants] {
  color: green;
}

node[board_type=nature] {
  color: darkgreen;
}

node[board_type=history] {
  color: orange;
}

node[board_type=notice] {
  color: magenta;
}

node[dennert_fir_tree=yes] {
  //dashes: 4,4;
  //color: darkgreen;
  icon-image: url("http://i.imgur.com/0Qll2ZC.jpg");
}

}}

Access style

{{style:
node[access] {
  symbol-size:5;
}
node[access=yes],node[access=public] {
  color: green;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
node[access=no],node[access=private] {
  color: red;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
node[access=permissive],node[access=customers],node[access=designated] {
  color: yellow;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
}}

wikidata for places

http://overpass-turbo.eu/s/iod

Mehr Stil: http://overpass-turbo.eu/s/iug

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“place=* and place!~"locality"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “place=* and place!~locality”
  node["place"]["place"!~"locality"]({{bbox}});
);
// print results
out meta;
>;
out skel qt;

{{style:

node {
  color: red;
}

node[wikipedia] {
  color: blue;
}

node[wikidata] {
  color: green;
}

node[wikidata][wikipedia] {
  color: #00AAE4;
}

}}

Verkaufsautomaten

https://overpass-turbo.eu/s/yIU

[out:json][timeout:25];
// gather results
(
  // query part for: “amenity=vending_machine”
  node["amenity"="vending_machine"]({{bbox}});
  way["amenity"="vending_machine"]({{bbox}});
  relation["amenity"="vending_machine"]({{bbox}});
  // query part for: “vending=*”
  node["vending"]({{bbox}});
  way["vending"]({{bbox}});
  relation["vending"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
{{style:

node [amenity=vending_machine] {
  color: red;
}

node [vending] {
  color: green;
}

node [vending=cigarettes],node[vending=telephone_vouchers] {
  symbol-size: 4;
  color: grey;
}

node[vending=parcel_pickup;parcel_mail_in], node[vending=stamps],node[vending=parcel_mail_in], node[vending=parcel_pickup]{
  color: yellow;
  symbol-size: 4;
}

node[vending=condoms] {
  color: magenta;
  symbol-size: 4;
}

node[vending=excrement_bags] {
  color: black;
  symbol-size: 4;
}

node[vending=parking_tickets] {
  color: skyblue;
  symbol-size: 4;
}

node[vending=bicycle_tube] {
  symbol-size: 4;
}

node[vending=elongated_coin] {
  symbol-size: 4;
}


}}

Gallery

Field papers

Wendlandstraße: http://fieldpapers.org/atlases/3algku4a , http://fieldpapers.org/atlases/3bbz1p78

Herrenhauser Kirche: http://fieldpapers.org/atlases/5q6saq6g