#1586: v.in.wfs complains about xerces-c support in GDAL
-------------------------+--------------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: 6.4.2 RCs
Keywords: | Platform: MSWindows Vista
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Hi,
in a win-vista OS, v.in.wfs (in GRASS installed via OSGeo installer)
complains about xerces-c:
ERROR: Unable to open data source
<C:PATH_TO_LOCATION/PERMANENT/.tmp/5460.0.xml>
ERROR: WFS-XML file not readable. Check if xerces-c support is compiled
into GDAL/OGR library.
can you run "ogrinfo --formats" from the GRASS terminal prompt?
(mmph, only know how to really check for support using ldd on linux, see
comments about it in the script)
the message to check for xerces-c is just a good guess as to the reason
why v.in.ogr failed, not necessarily the definitive reason. but presumably
it's because the version of GDAL/OGR shipped with osgeo4w wasn't built to
support that.
#1586: v.in.wfs complains about xerces-c support in GDAL
--------------------------------+-------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Packaging | Version: 6.4.2 RCs
Keywords: wingrass, v.in.wfs | Platform: MSWindows Vista
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by hamish):
Replying to [comment:3 alf]:
> the osgeo4w was shipped with GDAL 1.8.1, and the WFS is
> reported in the supported formats list:
>
> ogrinfo --formats
> Supported Formats:
...
> -> "WFS" (readonly)
can you run "ogrinfo" on the WFS server using that driver?
the way the v.in.wfs script works is to download the xml file at the URL
(GetFeature URL starting with 'http'), and then run
v.in.ogr -o dsn=features.xml out=output_map_name
can you do that manually? does the xml file you download look ok inside?
#1586: v.in.wfs complains about xerces-c support in GDAL
--------------------------------+-------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: wingrass, v.in.wfs | Platform: MSWindows Vista
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Changes (by neteler):
* version: 6.4.2 RCs => svn-releasebranch64
Comment:
Current winGRASS standalone:
{{{
g.version -g
version=6.4.3svn
revision=55719
date=2013
v.in.wfs wfs=http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap output=parks
Retrieving data ...
% Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total
Spent Left Speed
0 64 0 64 0 0 175 0 --:--:--
--:--:-- --:--:-- 175
0 64 0 64 0 0 174 0 --:--:--
--:--:-- --:--:-- 0
ERROR: Kann die Datenquelle <C:\Users\neteler\Documents\GIS DataBase
/North-Carolina/user1/.tmp/5872.0.xml> nicht öffnen.
ERROR: WFS-XML file not readable. Check if xerces-c support is compiled
into GDAL/OGR library.
}}}
(Un)related: the v.in.wfs manual page needs a working example.
Test on downloaded XML file (attached to this ticket for inspection):
{{{
GRASS 6.4.3svn (latlong):/tmp > v.in.ogr 8822.0.xml out=cities_1m
Projection of input dataset and current location appear to match
Layer: geonam_gt1M
WARNING: Width for column gml_id set to 255 (was not specified by OGR),
some strings may be truncated!
WARNING: DBMI-DBF driver: column name 'alternatenames' truncated to
'alternaten'
WARNING: DBMI-DBF driver: column name 'featureclass' truncated to
'featurecla'
WARNING: DBMI-DBF driver: column name 'featurecode' truncated to
'featurecod'
WARNING: DBMI-DBF driver: column name 'countrycode' truncated to
'countrycod'
WARNING: DBMI-DBF driver: column name 'modificationdate' truncated to
'modificati'
Counting polygons for 206 features...
Importing map 206 features...
Segmentation fault (core dumped)
ogrinfo --version
GDAL 1.9.1, released 2012/05/15
# OGR itself does not have problems:
ogrinfo -ro 8822.0.xml
INFO: Open of `8822.0.xml'
using driver `GML' successful.
1: geonam_gt1M (Point)
uname -a
Linux oboe.localdomain 3.8.4-202.fc18.x86_64 #1 SMP Thu Mar 21 17:02:20
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
}}}
#1586: v.in.wfs complains about xerces-c support in GDAL
--------------------------------+-------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.in.wfs | Platform: MSWindows Vista
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by mmetz):
Replying to [comment:8 neteler]:
>
> New debugging: As a start on Linux:
>
> Test on downloaded XML file (attached to this ticket for inspection):
{{{
GRASS 6.4.3svn (latlong):/tmp > v.in.ogr 8822.0.xml out=cities_1m
Projection of input dataset and current location appear to match
Layer: geonam_gt1M
WARNING: Width for column gml_id set to 255 (was not specified by OGR),
some strings may be truncated!
WARNING: DBMI-DBF driver: column name 'alternatenames' truncated to
'alternaten'
WARNING: DBMI-DBF driver: column name 'featureclass' truncated to
'featurecla'
WARNING: DBMI-DBF driver: column name 'featurecode' truncated to
'featurecod'
WARNING: DBMI-DBF driver: column name 'countrycode' truncated to
'countrycod'
WARNING: DBMI-DBF driver: column name 'modificationdate' truncated to
'modificati'
Counting polygons for 206 features...
Importing map 206 features...
Segmentation fault (core dumped)
ogrinfo --version
GDAL 1.9.1, released 2012/05/15
}}}
>
Works for me on Linux with GRASS 6.4.3svn and GDAL 1.9.2, released
2012/10/08.
#1586: v.in.wfs complains about xerces-c support in GDAL
--------------------------------+-------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.in.wfs | Platform: MSWindows Vista
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by hellik):
Replying to [comment:7 neteler]:
> Current winGRASS standalone:
[...]
> ERROR: Kann die Datenquelle <C:\Users\neteler\Documents\GIS DataBase
/North-Carolina/user1/.tmp/5872.0.xml> nicht öffnen.
> ERROR: WFS-XML file not readable. Check if xerces-c support is compiled
into GDAL/OGR library.
> }}}
>
the same with osgeo4w (DEBUG=3 on)
{{{
v.in.wfs output=parks wfs=http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap
D2/3: filename =
C:/OSGeo4W/apps/grass/grass-6.4.3svn/scripts/v.in.wfs
D2/3: g.parser: set GIS_OPT_WFS=http://www2.dmsolutions.ca
/cgi-bin/mswfs_gmap
D2/3: g.parser: set GIS_OPT_OUTPUT=parks
D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
"C:\OSGeo4W\apps\msys\bin\sh.exe
C:/OSGeo4W/apps/grass/grass-6.4.3svn/scripts/v.in.wfs @ARGS_PARSED@"
Retrieving data ...
% Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total
Spent Left Speed
0 64 0 64 0 0 56 0 --:--:--
0:00:01 --:--:-- 56
0 64 0 64 0 0 55 0 --:--:--
0:00:01 --:--:-- 0
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 3
D3/3: region item: zone: 0
D3/3: region item: north: 50N
D3/3: region item: south: 40N
D3/3: region item: east: 20E
D3/3: region item: west: 0
D3/3: region item: cols: 24000
D3/3: region item: rows: 12000
D3/3: region item: e-w resol: 0:00:03
D3/3: region item: n-s resol: 0:00:03
D3/3: region item: top: 1.000000000000000
D3/3: region item: bottom: 0.000000000000000
D3/3: region item: cols3: 24000
D3/3: region item: rows3: 12000
D3/3: region item: depths: 1
D3/3: region item: e-w resol3: 0:00:03
D3/3: region item: n-s resol3: 0:00:03
D3/3: region item: t-b resol: 1
D3/3: G_adjust_Cell_head: epsilon_ns: 8.33333e-008,
epsilon_ew: 1e-006
ERROR: Unable to open data source
<C:\grassdata/srtm41gar/test/.tmp/7320.0.xml>
ERROR: WFS-XML file not readable. Check if xerces-c support is compiled
into GDAL/OGR library.
D1/3: g.parser: ret = 1
}}}
#1586: v.in.wfs complains about xerces-c support in GDAL
--------------------------------+-------------------------------------------
Reporter: alf | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.in.wfs | Platform: MSWindows Vista
Cpu: Unspecified |
--------------------------------+-------------------------------------------
Comment(by hellik):
Replying to [comment:8 neteler]:
> I have enabled the previously suppressed error messages from the WFS
> server in r55754 (6.4) and r55754 (6.5).
>
> New debugging: As a start on Linux:
{{{
v.in.wfs output=geonam_gt1M
wfs=http://mapserver.flightgear.org/ms?Service=WFS&request=GetFeature&version=1.0.0&typename=geonam_gt1M
D2/3: filename =
C:/OSGeo4W/apps/grass/grass-6.4.3svn/scripts/v.in.wfs
D2/3: g.parser: set
GIS_OPT_WFS=http://mapserver.flightgear.org/ms?Service=WFS
D2/3: g.parser: set GIS_OPT_OUTPUT=geonam_gt1M
D3/3: win_spawn: args = C:\windows\system32\cmd.exe /c
"C:\OSGeo4W\apps\msys\bin\sh.exe
C:/OSGeo4W/apps/grass/grass-6.4.3svn/scripts/v.in.wfs @ARGS_PARSED@"
Retrieving data ...
% Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total
Spent Left Speed
100 544 0 544 0 0 447 0 --:--:--
0:00:01 --:--:-- 447
100 544 0 544 0 0 447 0 --:--:--
0:00:01 --:--:-- 0
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 3
D3/3: region item: zone: 0
D3/3: region item: north: 50N
D3/3: region item: south: 40N
D3/3: region item: east: 20E
D3/3: region item: west: 0
D3/3: region item: cols: 24000
D3/3: region item: rows: 12000
D3/3: region item: e-w resol: 0:00:03
D3/3: region item: n-s resol: 0:00:03
D3/3: region item: top: 1.000000000000000
D3/3: region item: bottom: 0.000000000000000
D3/3: region item: cols3: 24000
D3/3: region item: rows3: 12000
D3/3: region item: depths: 1
D3/3: region item: e-w resol3: 0:00:03
D3/3: region item: n-s resol3: 0:00:03
D3/3: region item: t-b resol: 1
D3/3: G_adjust_Cell_head: epsilon_ns: 8.33333e-008,
epsilon_ew: 1e-006
ERROR: Unable to open data source
<C:\grassdata/srtm41gar/test/.tmp/2484.0.xml>
ERROR: WFS-XML file not readable. Check if xerces-c support is compiled
into GDAL/OGR library.
D1/3: g.parser: ret = 1
Der Befehl "request" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "version" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "typename" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
}}}