10

It sounds as if GeoNames has everything you need - you can download the whole (or parts of) the database. From your description of the problem it sounds like you need cities1000.zip,


10

You can achieve the following using some expression-based SVG symbols. Basically, you'd have multiple attributes that determine icon #1, #2, and so on. As far as I know, it is currently not possible to make the SVG location depend on the corresponding label location though. So you'll want to avoid placing labels in the lower right corner, a setting for ...


8

The OSM Wiki has instructions for downloading to different formats. And here is some information about shapefiles. Cloudmade has produced exports to different formats for France and can be found here.


7

Bring your data into PostgreSQL with something like mysql_fdw, or other methods. Once you have this table, add a geography column, and populate the new column: ALTER TABLE places ADD COLUMN geog geography(Point,4326); UPDATE places SET geog = ST_MakePoint(longitude, latitude); Now select the nearest 10 places that are within 100 kms: SELECT places.*, ...


7

One other approach is to use the Overpass javascript library to query the read-only OSM API. You can write a query that will select all of the relevant tags for an area. Here is an example from the wiki: <bbox-query s="51.15" n="51.35" w="7.0" e="7.3"/> <recurse type="node-way"/> <query type="way"> <item/> <has-kv k="highway" ...


7

The coordinates seem to be are in "Swiss grid" coordinate System. EPSG:21781 -> Copy paste the table to a Text file (it will be tab-separated CSV), remove the ' between the numbers. Replace the / between the coordinates with a tab (\t) and import into QGIS with the corresponding fields for X and Y and EPSG:21781 as CRS. From here you can convert the data to ...


7

If you want a really simple algorithm how about this: Take your point and draw a straight line to the bounding box of your polygon. Count how many times it crosses the polygon boundary. If number is odd it must be inside, if even it must be outside.


7

Simple answer: You can not. Unlike Google maps API, these icons are part of the pre-rendered tiles you get from openstreetmap.org, and there is nothing you can do about it. You may however look for other tile sorces based on Openstreetmap data, like Stamen . Or render your own tiles with tools like Maperitive. Then you are free to leave out any data you ...


5

The Natural Earth data sets may meet your needs. Take a look at the Cultural Features http://www.naturalearthdata.com/features/ The data is available at 1:10 million, 1:50 million, and 1:110 million scales and it is published under a very liberal Public Domain license. http://www.naturalearthdata.com/about/terms-of-use/


5

No. I am unaware of any legal way to bulk download Google's POI database. Many alternates exists including free options such as OSM and purchase options such as HERE. A simple web search will reveal many more. Now, although you cannot download Google's POIs in a traditional manner the Google Places API will give you access to over 100 million Google POIs or ...


5

I would create a geometry collection from the points using st_collect(): http://postgis.net/docs/ST_Collect.html Then I would create convex hull from the point collection: http://postgis.net/docs/ST_ConcaveHull.html If you have a table of point geometries called testpoints where geometry column name was the_geom, this should create the polygon that you are ...


5

easy. 1. download *.osm.pbf 2. install osmosis 3. in the command window type osmosis --rbf INPUT.osm.pbf --nk keyList="amenity" --wx OUTPUT.osm


5

You can use the data from openstreetmap. The data is free and can be obtained from overpass api. Here is a link to overpass turbo


4

There is a website which you can look into: www.motomapia.com. Here you can download POIs from wikipedia for a particular location. All the POIs visible in the browser would be downloaded. Regarding Obf , its a binary format and I dont think it can be converted to any other format.


4

One-liner, assuming the POI points are stored in a "geography" column, you supply the ids of the two points and the search radius in meters: WITH line AS ( SELECT ST_MakeLine(p.geog::geometry, q.geog::geometry)::geography AS geog FROM pois p, pois q WHERE p.id = :id1 and q.id = :id2 ) SELECT p.name, p.id FROM pois p JOIN line ON ST_DWithin(p.geog, ...


4

OpenStreetMap has an API to retrieve data. See the manual at: http://wiki.openstreetmap.org/wiki/API_v0.6 . Also at openstreet maps there is some "extracts" like you want available. Check if someone matchs: http://wiki.openstreetmap.org/wiki/Planet.osm#Downloading


4

The best starting point for overpass queries is the Openstreetmap wiki, follow the overpass-turbo link on the left. It generates the following query: [out:json][timeout:25]; // gather results ( // query part for: “aeroway=aerodrome” node["aeroway"="aerodrome"]({{bbox}}); way["aeroway"="aerodrome"]({{bbox}}); relation["aeroway"="aerodrome"]({{bbox}});...


4

Basically, you can just drop the area parts of your query to get what you want: ( node["aeroway"="aerodrome"]; way["aeroway"="aerodrome"];>; relation["aeroway"="aerodrome"];>>;); out meta; but your query might get cancelled due to server load. Alternatively, you can query by bbox fo parts of the world.


4

Similar to an example in the Overpass by Example library, I'd suggest to use the following query: [timeout:60]; area["name"="Mayenne"]->.boundaryarea; way(area.boundaryarea)["building"="church"]; foreach( node(w)->.n; .n is_in->.a; area.a[name][boundary=administrative][admin_level~"^[2-8]$"] -> .a; out center; convert way ::...


4

To select all points in the points layer which is within bufDist of the points in the itpoint layer, you can use the following: def selectPointsInRadius(bufDist): inputlayer = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] print ('points-layer found') #stores features in a dictionary for fast access featDict = {feature.id(): ...


3

not quite the answer I wanted, but usable in an application: create a query to Nominatim http://nominatim.openstreetmap.org/search?q=45.8364043,24.8345179&format=xml&addressdetails=1


3

One way to investigate this sort of thing is to use the "Export" tab on a sample area on the main OSM site. If you export it as OSM XML, you will get a fairly large file, part of which will contain something like: -<node version="12" timestamp="2012-10-29T00:16:52Z" changeset="13668746" visible="true" uid="158826" user="cquest" lon="2.3549579" lat="48....


3

You may not absolutely need to create geometries, but you will want to do it so that you can take advantage of indexes. The below code works with Postgres 9.1+ CREATE TABLE mypoints(gid SERIAL PRIMARY KEY, latitude double precision, longitude double precision, address varchar(100), types varchar (25), geom geometry(POINT, 4326)); INSERT INTO mypoints (...


3

I was also trying to open obf file in GIS Software. But it is not possible to convert an obf file into kml or shape file. The obf format is a binary format used only for osmand.


3

You can use the wikimapia API http://wikimapia.org/api/ Specifically, you can use the API box to get the data from the category such as 'Schools' as KML http://wikimapia.org/wiki/API_box


3

Open Data Kit combined with ODK Collect is perfect for the field survey portion of your question. It is free and open-source software. ODK Aggregate is the server component where your data will be stored. ODK Collect is the app you'll install on the Android phone of each volunteer. This video is a great overview of the Open Data Kit suite of tools. Go to ...


3

I perform things like this with this code snippets: inputlayer = QgsMapLayerRegistry.instance().mapLayersByName('pieces_sepc')[0] itlayer = QgsMapLayerRegistry.instance().mapLayersByName('POINT')[0] dist = 60 def selectPointsInRadius(inputlayer, itlayer, dist): #iterate over feature of inputlayer and get geometry for feat in inputlayer.getFeatures()...


3

You can't. Google does not let developers to control the amount of POIs being shown, and does not let developers download POI sets. Furthermore, each GMaps user will see more or less POIs depending on their own search history. (And this is your periodic reminder that using GMaps' tiles goes against Big G's terms of service; and that's why GoogleMutant ...


2

https://github.com/MorbZ/OsmPoisPbf Check above link and download osmpois.jar This will parse the .osm.pbf file and will creates .csv file with containing tag type,tag name ,tag id,longitude, latitude


2

Try Overpass, it gives easy access to search POI data from openstreetmap. Or get the germany.osm data dump and use this link to get the POIs as a CSV file. (Problems with unzipping a bzip2 file should probably be asked on another stackexchange site)


Only top voted, non community-wiki answers of a minimum length are eligible