FeatureServer
Добавлено: 09 дек 2016, 11:58
Жители форума!
Есть такая штука http://featureserver.org/. Я поставил её на отдельный сервер. Есть другой отдельный сервер - PostgreSQL + PostGIS. С помощью osm2pgsql импортировал карту Москвы.osm.pbf. В featureserver.cfg (https://github.com/iocast/featureserver ... server.cfg) прописал параметры fs_postgis, где layer = planet_osm_point. Запустил featureserver_http_server.py.
The following layers are available:
* fs_flickr, http://192.168.0.82:8080/fs_flickr
* fs_twitter, http://192.168.0.82:8080/fs_twitter
* fs_spatiallite, http://192.168.0.82:8080/fs_spatiallite
* fs_postgis, http://192.168.0.82:8080/fs_postgis
* fs_geoalchemy, http://192.168.0.82:8080/fs_geoalchemy
Перешел на http://192.168.0.82:8080/fs_postgis
38.4078238189,54.8280979842None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4275539.39,7328574.66) None None None None 37.519272144,55.5915034889None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4176626.27,7477521.65) None None None None 37.5180823254,55.6013502951None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4176493.82,7479461.66) None None None None 37.5179645562,55.6011852046None None None None None None None None
и т.д. Вместо карты он выводит в строку содержимое таблицы.
Вопрос: как отобразить карту? (как тут - http://featureserver.org/demo.html)
Сижу вторую неделю. Помогите, пожалуйста.
Настройки такие:
[fs_postgis]
type=PostGIS
title=Point from OpenStreetMap
abstract=Point-of-Interests (POIs) from OpenStreetMap. (Hstore example)
dsn=host='соответственно парметры'
layer=planet_osm_point
fid=osm_id
geometry=way
version=hstore(tags)->'version'
fe_attributes=true
srid=900913
srid_out=4326
order=z_order
hstore=true
hstore_attr=tags
ele=hstore(tags)->'ele'
attribute_cols=name, way::Point as "geometry_type", hstore(tags)->'operator' as "operator", hstore(tags)->'highway' as "highway", hstore(tags)->'amenity' as "amenity", hstore(tags)->'historic' as "historic", hstore(tags)->'natural' as "natural", hstore(tags)->'url' as "url", hstore(tags)->'contact:website' as "contact_website", hstore(tags)->'website' as "website", hstore(tags)->'wikipedia' as "wikipedia", hstore(tags)->'wikipedia:en' as "wikipedia_en", hstore(tags)->'wikipedia:de' as "wikipedia_de", hstore(tags)->'addr:street' as "street", hstore(tags)->'addr:housenumber' as "housenumber", hstore(tags)->'addr:postcode' as "postcode", hstore(tags)->'addr:city' as "city", hstore(tags)->'phone' as "phone", hstore(tags)->'tourism' as "tourism", hstore(tags)->'shop' as "shop", hstore(tags)->'opening_hours' as "opening_hours", hstore(tags)->'bicycle_parking' as "bicycle_parking", hstore(tags)->'railway' as "railway", hstore(tags)->'aeroway' as "aeroway", hstore(tags)->'leisure' as "leisure", hstore(tags)->'species' as "species", hstore(tags)->'surface' as "surface"
additional_cols=round(ST_Area2d(ST_Transform(way, 21781))) as sqm
#<minx> <miny> <maxx> <maxy>
bbox=5.95459 45.75986 10.52490 47.83528
# Possible values: Point, LineString, Polygon
geometry_type=Point
Есть такая штука http://featureserver.org/. Я поставил её на отдельный сервер. Есть другой отдельный сервер - PostgreSQL + PostGIS. С помощью osm2pgsql импортировал карту Москвы.osm.pbf. В featureserver.cfg (https://github.com/iocast/featureserver ... server.cfg) прописал параметры fs_postgis, где layer = planet_osm_point. Запустил featureserver_http_server.py.
The following layers are available:
* fs_flickr, http://192.168.0.82:8080/fs_flickr
* fs_twitter, http://192.168.0.82:8080/fs_twitter
* fs_spatiallite, http://192.168.0.82:8080/fs_spatiallite
* fs_postgis, http://192.168.0.82:8080/fs_postgis
* fs_geoalchemy, http://192.168.0.82:8080/fs_geoalchemy
Перешел на http://192.168.0.82:8080/fs_postgis
38.4078238189,54.8280979842None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4275539.39,7328574.66) None None None None 37.519272144,55.5915034889None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4176626.27,7477521.65) None None None None 37.5180823254,55.6013502951None None None None None None None None None None None None None None None None None None None 0.0 None None None None None (4176493.82,7479461.66) None None None None 37.5179645562,55.6011852046None None None None None None None None
и т.д. Вместо карты он выводит в строку содержимое таблицы.
Вопрос: как отобразить карту? (как тут - http://featureserver.org/demo.html)
Сижу вторую неделю. Помогите, пожалуйста.
Настройки такие:
[fs_postgis]
type=PostGIS
title=Point from OpenStreetMap
abstract=Point-of-Interests (POIs) from OpenStreetMap. (Hstore example)
dsn=host='соответственно парметры'
layer=planet_osm_point
fid=osm_id
geometry=way
version=hstore(tags)->'version'
fe_attributes=true
srid=900913
srid_out=4326
order=z_order
hstore=true
hstore_attr=tags
ele=hstore(tags)->'ele'
attribute_cols=name, way::Point as "geometry_type", hstore(tags)->'operator' as "operator", hstore(tags)->'highway' as "highway", hstore(tags)->'amenity' as "amenity", hstore(tags)->'historic' as "historic", hstore(tags)->'natural' as "natural", hstore(tags)->'url' as "url", hstore(tags)->'contact:website' as "contact_website", hstore(tags)->'website' as "website", hstore(tags)->'wikipedia' as "wikipedia", hstore(tags)->'wikipedia:en' as "wikipedia_en", hstore(tags)->'wikipedia:de' as "wikipedia_de", hstore(tags)->'addr:street' as "street", hstore(tags)->'addr:housenumber' as "housenumber", hstore(tags)->'addr:postcode' as "postcode", hstore(tags)->'addr:city' as "city", hstore(tags)->'phone' as "phone", hstore(tags)->'tourism' as "tourism", hstore(tags)->'shop' as "shop", hstore(tags)->'opening_hours' as "opening_hours", hstore(tags)->'bicycle_parking' as "bicycle_parking", hstore(tags)->'railway' as "railway", hstore(tags)->'aeroway' as "aeroway", hstore(tags)->'leisure' as "leisure", hstore(tags)->'species' as "species", hstore(tags)->'surface' as "surface"
additional_cols=round(ST_Area2d(ST_Transform(way, 21781))) as sqm
#<minx> <miny> <maxx> <maxy>
bbox=5.95459 45.75986 10.52490 47.83528
# Possible values: Point, LineString, Polygon
geometry_type=Point