OGR и WFS
- Denis Rykov
- Гуру
- Сообщения: 3376
- Зарегистрирован: 11 апр 2008, 21:09
- Репутация: 529
- Ваше звание: Author
- Контактная информация:
Re: OGR и WFS
Как именно это проявляется?
Spatial is now, more than ever, just another column- The Geometry Column.
-
- Новоприбывший
- Сообщения: 8
- Зарегистрирован: 29 ноя 2013, 14:06
- Репутация: 0
Re: OGR и WFS
Наример,
ogrinfo -ro -al "WFS:http://v2.suite.opengeo.org/geoserver/ows" WFSLayerMetadata
Выдает
Unable to open datasourse ....
Пробовал разные сервера которые QGIS открывает. Покопался в коде, там свой драйвер
ogrinfo -ro -al "WFS:http://v2.suite.opengeo.org/geoserver/ows" WFSLayerMetadata
Выдает
Unable to open datasourse ....
Пробовал разные сервера которые QGIS открывает. Покопался в коде, там свой драйвер
- SergeyRyzhkov
- Гуру
- Сообщения: 909
- Зарегистрирован: 02 июл 2014, 19:13
- Репутация: 203
- Ваше звание: GP-экотеррористы
- Откуда: Санкт-Петербург
- Контактная информация:
Re: OGR и WFS
А версия какая?
У меня все норм
У меня все норм
Спойлер
C:\_dataGIS>ogrinfo -ro -al "WFS:http://v2.suite.opengeo.org/geoserver/ows" WFSL
ayerMetadata
INFO: Open of `WFS:http://v2.suite.opengeo.org/geoserver/ows'
using driver `WFS' successful.
Layer name: WFSLayerMetadata
Geometry: None
Feature Count: 19
Layer SRS WKT:
(unknown)
layer_name: String (0.0)
title: String (0.0)
abstract: String (0.0)
OGRFeature(WFSLayerMetadata):1
layer_name (String) = opengeo:countries
title (String) = Countries of the World
abstract (String) = The 247 countries in the world. Data courtesy of NaturalEa
rth.
OGRFeature(WFSLayerMetadata):2
layer_name (String) = medford:bikelanes
title (String) = Medford, OR - Bike Lanes
abstract (String) = Bike lanes in Jackson County, Oregon as of December 2008.
OGRFeature(WFSLayerMetadata):3
layer_name (String) = medford:buildings
title (String) = Medford, OR - Buildings
abstract (String) = The building outlines for Medford, Oregon as of March 2009
.
OGRFeature(WFSLayerMetadata):4
layer_name (String) = medford:citylimits
title (String) = Medford, OR - City Limits
abstract (String) = Local Jurisdiction of Medford, Oregon as of July 2009.
OGRFeature(WFSLayerMetadata):5
layer_name (String) = medford:firestations
title (String) = Medford, OR - Firestations
abstract (String) = Location of Fire Stations in Jackson County as April 2009.
OGRFeature(WFSLayerMetadata):6
layer_name (String) = medford:hospitals
title (String) = Medford, OR - Hospitals
abstract (String) = Location of Hospitals in Jackson County, Oregon as of Octo
ber 2006.
OGRFeature(WFSLayerMetadata):7
layer_name (String) = medford:hydro
title (String) = Medford, OR - Hydro
abstract (String) = US Fish & Wildlife National Wetlands Inventory of wetland
linear features as of October 2000.
OGRFeature(WFSLayerMetadata):8
layer_name (String) = medford:libraries
title (String) = Medford, OR - Libraries
abstract (String) = Location of Libraries in Jackson County, Oregon as of Augu
st 2006.
OGRFeature(WFSLayerMetadata):9
layer_name (String) = medford:parks
title (String) = Medford, OR - Parks
abstract (String) = Open parks within Medford, Oregon.
OGRFeature(WFSLayerMetadata):10
layer_name (String) = medford:police
title (String) = Medford, OR - Police
abstract (String) = Location of Police Stations in Jackson County, OR as April
2009.
OGRFeature(WFSLayerMetadata):11
layer_name (String) = medford:schools
title (String) = Medford, OR - Schools
abstract (String) = Location of Jackson County, Oregon schools as of March 200
9.
OGRFeature(WFSLayerMetadata):12
layer_name (String) = medford:stormdrains
title (String) = Medford, OR - Storm Drains
abstract (String) = Storm drains within Medford, Oregon.
OGRFeature(WFSLayerMetadata):13
layer_name (String) = medford:streets
title (String) = Medford, OR - Streets
abstract (String) = All public streets within Jackson County, Oregon as of Sep
tember 2009.
OGRFeature(WFSLayerMetadata):14
layer_name (String) = medford:taxlots
title (String) = Medford, OR - Taxlots
abstract (String) =
OGRFeature(WFSLayerMetadata):15
layer_name (String) = medford:wetlands
title (String) = Medford, OR - Wetlands
abstract (String) = US Fish & Wildlife National Wetlands Inventory of Jackson
County, Oregon wetland areas as of October 2000.
OGRFeature(WFSLayerMetadata):16
layer_name (String) = medford:zoning
title (String) = Medford, OR - Zoning
abstract (String) = City Zones from the Jackson County City Planning as of Apr
il 2008.
OGRFeature(WFSLayerMetadata):17
layer_name (String) = usa:states
title (String) = States of the USA
abstract (String) = States of the United Stats of America, including the Distr
ict of Columbia and Puerto Rico. Data taken from the 2010 Census.
OGRFeature(WFSLayerMetadata):18
layer_name (String) = opengeo:borders
title (String) = World - Borders
abstract (String) = Borders of world continents.
OGRFeature(WFSLayerMetadata):19
layer_name (String) = opengeo:cities
title (String) = World - Cities
abstract (String) = Location of some major international cities.
ayerMetadata
INFO: Open of `WFS:http://v2.suite.opengeo.org/geoserver/ows'
using driver `WFS' successful.
Layer name: WFSLayerMetadata
Geometry: None
Feature Count: 19
Layer SRS WKT:
(unknown)
layer_name: String (0.0)
title: String (0.0)
abstract: String (0.0)
OGRFeature(WFSLayerMetadata):1
layer_name (String) = opengeo:countries
title (String) = Countries of the World
abstract (String) = The 247 countries in the world. Data courtesy of NaturalEa
rth.
OGRFeature(WFSLayerMetadata):2
layer_name (String) = medford:bikelanes
title (String) = Medford, OR - Bike Lanes
abstract (String) = Bike lanes in Jackson County, Oregon as of December 2008.
OGRFeature(WFSLayerMetadata):3
layer_name (String) = medford:buildings
title (String) = Medford, OR - Buildings
abstract (String) = The building outlines for Medford, Oregon as of March 2009
.
OGRFeature(WFSLayerMetadata):4
layer_name (String) = medford:citylimits
title (String) = Medford, OR - City Limits
abstract (String) = Local Jurisdiction of Medford, Oregon as of July 2009.
OGRFeature(WFSLayerMetadata):5
layer_name (String) = medford:firestations
title (String) = Medford, OR - Firestations
abstract (String) = Location of Fire Stations in Jackson County as April 2009.
OGRFeature(WFSLayerMetadata):6
layer_name (String) = medford:hospitals
title (String) = Medford, OR - Hospitals
abstract (String) = Location of Hospitals in Jackson County, Oregon as of Octo
ber 2006.
OGRFeature(WFSLayerMetadata):7
layer_name (String) = medford:hydro
title (String) = Medford, OR - Hydro
abstract (String) = US Fish & Wildlife National Wetlands Inventory of wetland
linear features as of October 2000.
OGRFeature(WFSLayerMetadata):8
layer_name (String) = medford:libraries
title (String) = Medford, OR - Libraries
abstract (String) = Location of Libraries in Jackson County, Oregon as of Augu
st 2006.
OGRFeature(WFSLayerMetadata):9
layer_name (String) = medford:parks
title (String) = Medford, OR - Parks
abstract (String) = Open parks within Medford, Oregon.
OGRFeature(WFSLayerMetadata):10
layer_name (String) = medford:police
title (String) = Medford, OR - Police
abstract (String) = Location of Police Stations in Jackson County, OR as April
2009.
OGRFeature(WFSLayerMetadata):11
layer_name (String) = medford:schools
title (String) = Medford, OR - Schools
abstract (String) = Location of Jackson County, Oregon schools as of March 200
9.
OGRFeature(WFSLayerMetadata):12
layer_name (String) = medford:stormdrains
title (String) = Medford, OR - Storm Drains
abstract (String) = Storm drains within Medford, Oregon.
OGRFeature(WFSLayerMetadata):13
layer_name (String) = medford:streets
title (String) = Medford, OR - Streets
abstract (String) = All public streets within Jackson County, Oregon as of Sep
tember 2009.
OGRFeature(WFSLayerMetadata):14
layer_name (String) = medford:taxlots
title (String) = Medford, OR - Taxlots
abstract (String) =
OGRFeature(WFSLayerMetadata):15
layer_name (String) = medford:wetlands
title (String) = Medford, OR - Wetlands
abstract (String) = US Fish & Wildlife National Wetlands Inventory of Jackson
County, Oregon wetland areas as of October 2000.
OGRFeature(WFSLayerMetadata):16
layer_name (String) = medford:zoning
title (String) = Medford, OR - Zoning
abstract (String) = City Zones from the Jackson County City Planning as of Apr
il 2008.
OGRFeature(WFSLayerMetadata):17
layer_name (String) = usa:states
title (String) = States of the USA
abstract (String) = States of the United Stats of America, including the Distr
ict of Columbia and Puerto Rico. Data taken from the 2010 Census.
OGRFeature(WFSLayerMetadata):18
layer_name (String) = opengeo:borders
title (String) = World - Borders
abstract (String) = Borders of world continents.
OGRFeature(WFSLayerMetadata):19
layer_name (String) = opengeo:cities
title (String) = World - Cities
abstract (String) = Location of some major international cities.
-
- Новоприбывший
- Сообщения: 8
- Зарегистрирован: 29 ноя 2013, 14:06
- Репутация: 0
Re: OGR и WFS
GDAL 1.11.0, released 2014/04/16
- SergeyRyzhkov
- Гуру
- Сообщения: 909
- Зарегистрирован: 02 июл 2014, 19:13
- Репутация: 203
- Ваше звание: GP-экотеррористы
- Откуда: Санкт-Петербург
- Контактная информация:
Re: OGR и WFS
Не уверен что могу помочь, к сожалению.
Если смотреть http://www.gdal.org/ogr_formats.html , то WFS нет по-умолчанию. Нужен драйвер соответствующий, может у Вас его нет?
Если смотреть http://www.gdal.org/ogr_formats.html , то WFS нет по-умолчанию. Нужен драйвер соответствующий, может у Вас его нет?
-
- Новоприбывший
- Сообщения: 8
- Зарегистрирован: 29 ноя 2013, 14:06
- Репутация: 0
Re: OGR и WFS
ogrinfo --formats выдает что есть
- Denis Rykov
- Гуру
- Сообщения: 3376
- Зарегистрирован: 11 апр 2008, 21:09
- Репутация: 529
- Ваше звание: Author
- Контактная информация:
Re: OGR и WFS
У меня тоже работает:
GDAL 1.11.2, released 2015/02/10
Код: Выделить всё
rykov@work:~$ ogrinfo -ro "WFS:http://v2.suite.opengeo.org/geoserver/ows" WFSLayerMetadata
INFO: Open of `WFS:http://v2.suite.opengeo.org/geoserver/ows'
using driver `WFS' successful.
Layer name: WFSLayerMetadata
Geometry: None
Feature Count: 19
Layer SRS WKT:
(unknown)
layer_name: String (0.0)
title: String (0.0)
abstract: String (0.0)
OGRFeature(WFSLayerMetadata):1
layer_name (String) = opengeo:countries
title (String) = Countries of the World
abstract (String) = The 247 countries in the world. Data courtesy of NaturalEarth.
Spatial is now, more than ever, just another column- The Geometry Column.
-
- Новоприбывший
- Сообщения: 8
- Зарегистрирован: 29 ноя 2013, 14:06
- Репутация: 0
Re: OGR и WFS
На Linux и WinXP работает!!!
К сожалению у мне больше нужно Windows 7(((
Люди добрые у кого Windows 7 попробуйте пожалуйста и отпишитесь!
Всю голову сломал...
К сожалению у мне больше нужно Windows 7(((
Люди добрые у кого Windows 7 попробуйте пожалуйста и отпишитесь!
Всю голову сломал...
-
- Новоприбывший
- Сообщения: 8
- Зарегистрирован: 29 ноя 2013, 14:06
- Репутация: 0
Re: OGR и WFS
Решено.
Установил параметры на GDAL:
QString proxy = listOfProxies[0].hostName()+ ":" + QString::number(listOfProxies[0].port());
qDebug() << proxy;
CPLSetConfigOption( "GDAL_HTTP_PROXY",proxy.toLocal8Bit().data() );
// CPLSetConfigOption( "GDAL_HTTP_PROXY", "192.168.1.1:8080" );
CPLSetConfigOption( "GDAL_PROXY_AUTH", "NTLM" );
CPLSetConfigOption( "GDAL_HTTP_PROXYUSERPWD", " : " );
Установил параметры на GDAL:
QString proxy = listOfProxies[0].hostName()+ ":" + QString::number(listOfProxies[0].port());
qDebug() << proxy;
CPLSetConfigOption( "GDAL_HTTP_PROXY",proxy.toLocal8Bit().data() );
// CPLSetConfigOption( "GDAL_HTTP_PROXY", "192.168.1.1:8080" );
CPLSetConfigOption( "GDAL_PROXY_AUTH", "NTLM" );
CPLSetConfigOption( "GDAL_HTTP_PROXYUSERPWD", " : " );
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 19 гостей