openstreetmap

TileCache with Mapnik for OpenStreetMap

孤街醉人 提交于 2020-01-24 00:34:52
问题 I have an OpenStreetMap server that uses TileCache to serve tiles. The tiles are generated with Mapnik. I have configured the Mapnik XML stylesheet and I can generate an image with the OSM Mapnik tool 'generate_image.py'. That image is correct and looks good. My TileCache server will serve tiles from my OSM layer; however, all I get are tiles with the background/water blue. I get no land forms, I get no street data. Can anybody help with this? TileCache Config: [osm] type=Mapnik mapfile=/var

Drawing upon openstreetmap in python

故事扮演 提交于 2020-01-22 17:35:02
问题 What I want to do is to generate a static image (e.g. a png) using python and using openstreetmap tiles as a background. Mathplotlib and Basemap is almost what I'm looking for. The problem is being able to use OSM tiles as background. I'm not pleased by the approach suggested in http://stevendkay.wordpress.com/2010/02/24/plotting-points-on-an-openstreetmap-export/ The closest I found is in this answer but using R, and not python Plotting points from a data.frame using OpenStreetMap Did I miss

Drawing upon openstreetmap in python

陌路散爱 提交于 2020-01-22 17:34:12
问题 What I want to do is to generate a static image (e.g. a png) using python and using openstreetmap tiles as a background. Mathplotlib and Basemap is almost what I'm looking for. The problem is being able to use OSM tiles as background. I'm not pleased by the approach suggested in http://stevendkay.wordpress.com/2010/02/24/plotting-points-on-an-openstreetmap-export/ The closest I found is in this answer but using R, and not python Plotting points from a data.frame using OpenStreetMap Did I miss

Show only United States when using Leaflet.js and OSM

别来无恙 提交于 2020-01-21 04:27:29
问题 I'm using leaflet.js and OSM tiles to create a map, but I'd only like the continental United States to be viewable, not the entire world. Is that possible? I'm loading the map like this: var map = L.map('map').setView([39.82, -98.58], 5); L.tileLayer('http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { attribution: '...', maxZoom: 18 }).addTo(map); 回答1: That's possible and easy to do. First of you'll need the coordinates for the bounding box (the outermost edges) of the continental

How to render OSM tiles

瘦欲@ 提交于 2020-01-16 18:07:10
问题 I would like to setup a tiles server. I found some documentation on the net and followed this tutorial. Now it seems like I have a well configured server with a small map (Guyana) in my database, that's cool ! But now, I still don't understand how to get and configure an interface to display my map... The tutorial suggests and give some links to OpenLayers and Leaflet but it seems to use online maps but I want to render my local files. Also, the tutorial say that "mapnik" is what does the

How to count the total lake area in an Atlas

☆樱花仙子☆ 提交于 2020-01-16 16:09:25
问题 Once I have loaded an Atlas object in memory, what is the best way to count the total lake area? Doing a simple tag search finds all the simple Area lakes but I am missing all the lakes based on type=multipolygon Relations that are built on "outer" ways that, stitched together, make a full lake. 回答1: Atlas comes with a ComplexEntity concept that allows the user to construct higher-level entities based on specific concepts. The ComplexWaterEntity object should fit that need: Atlas atlas;

Is this config is capable to import complete osm planet file?

若如初见. 提交于 2020-01-16 14:53:14
问题 We have a server with this config : Processor: E5-2609 v2 RAM: 16GB 1333MHz HDD: 2TB 7200rpm and we want to import complete osm planet file to postgreSQL database. Is that possible with this config or we need more powerfull system? 回答1: The system requirements are listed on switch2osm. Your system seems to be okay but it will take a while importing the whole planet. Don't expect it to finish during a single day. 来源: https://stackoverflow.com/questions/19791495/is-this-config-is-capable-to

Simple osmdroid application doesn't work

久未见 提交于 2020-01-15 09:38:30
问题 I'm trying to launch a very simple android application using OpenStreetMaps-Tools for Android , and I have nothing but runtime errors. Android virtual device: Platform 2.2, API level 8, SD card 1024MiB. My IDE is IntelliJ Idea 11. Here is my AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="test.osmdroid005" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="7" />

leaflet marker not displaying in certain contexts

两盒软妹~` 提交于 2020-01-15 06:42:08
问题 I am using the leaflet htmlwidget implementation to draw a web-based map using R. I was looking for a specific marker, couldn't find it, and realized it wasn't being displayed at all. However, when I subset down my dataset to just that entry, the marker displays beautifully. Here is a screenshot of the marker, with code having been run after subsetting the data to just this marker (using the simple line of R script thecounted <- thecounted[thecounted$age==6,] ): Here is the same location when

Removing Places from OSM

北慕城南 提交于 2020-01-15 06:40:07
问题 Doe is exists a way to remove all the places from the OSM map? Also like shops, bars, restorations, hotels etc. I wish to use a maps with a less info. Is it possible to do this from the original OSM server? Maybe like a option in URL or something else? I use Leaflet library for my project, maybe some option in it? I wished to have it like in GMAPS API: new google.maps.Map(map_div,{ styles:[{ elementType:'all', featureType:'poi', stylers:[{ visibility:'off' }] }]}); Over JS or over extra URL,