User:Kmpoppe

From OpenStreetMap Wiki
Jump to navigation Jump to search
OSM Logo This user submits data to OpenStreetMap under the name
kmpoppe.
Twitter user Kmpoppe tweets as @kmpoppe
Telegram user Kmpoppe uses Telegram as @kmpoppe
GitHub user Kmpoppe has an account on GitHub as @kmpoppe.
Hot logo.svg Kmpoppe volunteers at Humanitarian OSM Team.
Mapswipe Logo Kmpoppe helps the Missing Maps Project by using MapSwipe
Europe on the globe (red).svg Kmpoppe hails from Europe.
Bremen Wappen(Mittel).svg Kmpoppe hails from Bremen.
Babel
de Dieser Benutzer spricht Deutsch als Muttersprache.
en This user is a native speaker of English.
Geocaching.svg Kmpoppe maps while geocaching.
JOSM Kmpoppe submits data to OpenStreetMap using JOSM.
StreetComplete Kmpoppe submits data to OpenStreetMap using StreetComplete.
Public transport This user maps and travels public transport.
Hiker Kmpoppe
is a hiker.
Dog.svg Kmpoppe maps while walking a dog.
Closed note marker.png Kmpoppe actively collaborates by resolving notes.
Presa de decissions.png Kmpoppe likes to help beginners.

Welcome fellow mappers

My name is Kai, born ca. 1982 in Bremen, Germany ;-)

I started mapping in OSM to edit features for my other hobby Genealogy - and used the maps long before while Geocaching.

Shout outs to the German Telegram Group where many nice people have answered a lot of my newbie questions :-)

If you're dissatisfied with any of my edits, feel free to edit my talk page.

Contact

If you'd like to contact me, either use the OSM message function or contact me on the only social media channel that I monitor, twitter/@kmpoppe - or on Telegram/@kmpoppe

Open-Source-Stuff

I support the idea Open-Source and would encourage everyone to do so as well. Things I've worked/I'm working on include:

  • 2FactorAuth: A great collection of sites, using 2-Factor-Authentication for enhanced security - twofactorauth.org (on GitHub)
  • MapSwipe: This mobile app easily allows users to support the Humanitarian OSM Team by presenting you with easy tasks (e.g. identifying building and roads). The data flows into the Tasking Manager. This supports Humanitarian organizations to get better maps for faster response in a crisis. - mapswipe.org (on GitHub)

Other things I do

See links to stuff I do in the right-hand table; and here:

My Plugins

I'm a programmer by heart and have been for 25-ish years. So, naturally, I thought I could also contribute something here.

WMS Tile Server for OS OpenData USRN (July 2020)

I provide a WMS Tile Server for the Ordnance Survey OpenData USRN that was published in July of 2020.

A screenshot-documentation showing how to add the server to JOSM is available.

All styles have a white text showing the USRN ID of the street perpendicular to the line with a 6 pixel gap.

URLs available for different line styles:

  • Red line: wms:http://poppe.work:8080/geoserver/wms?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=cite:openUSRN&STYLES=os-usrn-red&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
  • Green line: wms:http://poppe.work:8080/geoserver/wms?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=cite:openUSRN&STYLES=os-usrn-green&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
  • Blue line: wms:http://poppe.work:8080/geoserver/wms?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=cite:openUSRN&STYLES=os-usrn-blue&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
  • White line: wms:http://poppe.work:8080/geoserver/wms?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=cite:openUSRN&STYLES=os-usrn-white&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}

How to set up a server yourself

  1. Download the latest stable release of the GeoServer from http://geoserver.org/release/stable/ (Platform Independent Binary) and unzip the downloaded file to a new directory.
  2. Check the Installation instructions at https://docs.geoserver.org/latest/en/user/installation/index.html#installation for the prerequisites (especially a working Java JDK). Depending on your operating system continue with the OS-specific instructions on how to setup the GeoServer and start it so that you can login to the administration interface.
  3. Download the GeoPackage from https://osdatahub.os.uk/downloads/open/OpenUSRN and unzip it to the data_dir or a subdirectory of your choosing.
  4. Login to the administration interface of GeoServer with the username admin and the password geoserver. Obviously this password should be changed first thing – scroll down to "Security" in the left navigation panel and click on "Users, Group, Roles". Go to "Users/Groups", click the user "admin" and then change the password to something unique you remember.
  5. Next, go to "Stores" in the "Data" section and click "Add new store". Under "Vector Data Sources" choose "GeoPackage".
  6. You need to supply a workspace (this should default to "cite"), a Data Source Name (choose something unique) and the Database under "Connection Properties" – click "Browse..." to find the .gpkg file that you extracted in the data_dir. Scroll down to "Save".
  7. After adding the Data Source, you’ll automatically be redirected to "Add New Layer" – the layers are what will be published via the WMS-service of GeoServer. The proposed Layer Name is "openUSRN", which is read from the GeoPackage automatically. Click "Publish".
  8. Almost everything is set, apart from the "Bounding Boxes" (scroll down to that heading). Under Native Bounding Box, click "Compute from data". It'll take a few seconds and then add the correct values. Under "Lat/Lon Bounding Box" click "Compute from native bounds".
  9. There's no need to change anything else and you can click "Save". If you want to add the same style that I used on my server (2 px solid line in different colour and a text description), click "Styles" under "Data" and add a new style, give it a name and paste this Style content:
<StyledLayerDescriptor version="1.0.0" 
	xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
	xmlns="http://www.opengis.net/sld" 
	xmlns:ogc="http://www.opengis.net/ogc" 
	xmlns:xlink="http://www.w3.org/1999/xlink" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<NamedLayer>
		<Name>default_line</Name>
		<UserStyle>
			<Title>OS USRN Line with id</Title>
			<Abstract>A sample style that draws a line</Abstract>
			<FeatureTypeStyle>
				<Rule>
					<Name>rule</Name>
					<Title>OS USRN Line with id</Title>
					<Abstract>A solid blue line with a 2 pixel width</Abstract>
					<LineSymbolizer>
						<Stroke>
							<CssParameter name="stroke">#0000FF</CssParameter>
							<CssParameter name="stroke-width">2</CssParameter>
						</Stroke>
					</LineSymbolizer>
					<TextSymbolizer>
						<Label>
							<ogc:PropertyName>usrn</ogc:PropertyName>
						</Label>
						
							<CssParameter name="font-family">Arial</CssParameter>
							<CssParameter name="font-size">12</CssParameter>
							<CssParameter name="font-style">normal</CssParameter>
							<CssParameter name="font-weight">bold</CssParameter>
						
						<LabelPlacement>
							<LinePlacement>
								<PerpendicularOffset>7</PerpendicularOffset>
							</LinePlacement>
						</LabelPlacement>
						<Fill>
							<CssParameter name="fill">#FFFFFF</CssParameter>
						</Fill>
					</TextSymbolizer>
				</Rule>
			</FeatureTypeStyle>
		</UserStyle>
	</NamedLayer>
</StyledLayerDescriptor>
  1. Go to Layers, click on the Title of the Layer you added and click "Publishing", scroll down to "WMS Settings"/"Layer Settings" and set the "Default Style" to the name of the Style you just added.
  2. Using the above mentioned documentation, you can now add your server as a WMS server in JOSM. If you're unsure if the server delivers the correct layers, use the "GetCapabilites" URL:

http://<ServerName>:8080/geoserver/wms?service=wms&version=1.1.1&request=GetCapabilities and click "3. Get layers"

Link collection

I'll save some OSM related links here, that I might use regularly. I could use Evernote but ... Oh well ;-)

Directions

https://www.openstreetmap.org/directions?engine=graphhopper_car

Public transport networks QA

PTNA

UK

Overpass Queries

[1] NWR im Flüsseviertel ohne FES und GF mit Straßennamen