User:Gormo

From OpenStreetMap Wiki
Jump to navigation Jump to search
About Me
This user submits data to OpenStreetMap under the name
gormo (on OSM)
.
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;
}


}}

Einsame Straßen (PostPass)

https://overpass-turbo.eu/s/2omx


{{data:sql,server=https://postpass.geofabrik.de/api/0.2/}}
with polys as (
    SELECT ST_Union(
      st_buffer(geom::geography, 250)::geometry
      ) AS geom
    FROM postpass_polygon
    WHERE tags->>'landuse' IN ('residential','commercial','industrial')
    AND geom && {{bbox}}
	), roads as (
    
    SELECT 
        osm_id,
        geom, tags
    FROM postpass_line r
    where r.tags->>'highway' IN ('secondary','tertiary','unclassified')
  and r.geom && {{bbox}}
), diff as (
  select ST_Difference(roads.geom, polys.geom) AS geom, roads.tags
  from polys cross join roads
  where not st_isempty ( ST_Difference(roads.geom, polys.geom) )
)

select *,  LEAST(round(st_length( geom::geography ) / 1000),5) as km
,round(st_length( geom::geography )) as meter
from diff
where st_length( geom::geography ) > 1000

/* select * from roads */



{{style: /* added by auto-styler */
*[km=1]
{ color: #FF66CC; fill-color:#FF66CC; }
*[km=2]
{ color: #FF33AA; fill-color:#FF33AA; }
*[km=3]
{ color: #E60073; fill-color:#E60073; }
*[km=4]
{ color: #B30059; fill-color:#B30059; }
*[km=5]
{ color: #800040; fill-color:#800040; }
}}

Gallery

Field papers

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

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