User:Krauss/Lembretes

From OpenStreetMap Wiki
Jump to navigation Jump to search

Outras paginas:

Ajuste de imagens

http://www.georeferencer.com/

Exemplos de polígonos brasileiros

osm2pgsql

Em geral `apt` será inutil, precisa construir versao atualizada do zero conforme https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/

Atual osm2pgsql version 0.96.0 (64 bit id space)

Usando osm2pgsql -E 4326 -c -d pgsnapshot -U postgres -W -H localhost --slim --hstore --extra-attributes brazil-latest.osm.pbf. Faltou indicar numero de CPUs.

Resultado:

Completed planet_osm_polygon
Stopped table: planet_osm_ways in 474s
Osm2pgsql took 2472s overall

osmosis

Overpass

Repostar similar a https://help.openstreetmap.org/questions/19774/how-to-get-bbox-of-city

Simplest get BBOX: [out:json]; (relation["ISO3166-2"="BR-SP"][boundary=administrative];); out bb;

Verificar: http://overpass-turbo.eu/ https://s2.sidewalklabs.com


Jump maps

Testar no Firefox http://dudarev.github.io/mapjumper/


Geo URI

Consultas

Pequeno gist.

-- para Telegram https://t.me/OSMBrasil_Comunidade/36377
select osm_id, tags->'highway'||' '||COALESCE(tags->'bridge','') as highway, 
       st_geohash(ST_PointOnSurface(way),8) as geohash, 
       round(st_length(way,true)/1000.0,1) km  
from planet_osm_roads 
where tags->'name' ilike '%Pan%Nordestina%' 
order by 3;

Importações prefeituras

Unificar e reorganizar:

regras e definicoes

Problemas e solucoes