pesekon2 / grass

GRASS GIS - free and open source Geographic Information System (GIS)
https://grass.osgeo.org
Other
0 stars 0 forks source link

v.in.wfs: better error messages #33

Open pesekon2 opened 6 months ago

pesekon2 commented 6 months ago
v.in.wfs url="http://localhost:8080/geoserver/zemetreseni/ows?" out=zemetreseni --o --verbose
Retrieving data...
Importing data...
ERROR: Unable to open data source
       </tmp/test_loc/PERMANENT/.tmp/k155-142/49910.0.xml>
WFS import failed
GRASS test_loc/PERMANENT:fgis > v.in.wfs url="http://localhost:8080/geoserver/zemetreseni/ows?" out=zemetreseni --o --verbose name=significant_month
Retrieving data...
Importing data...
Using OGR driver 'GML/Geography Markup Language (GML)'
No projection information available for layer <significant_month>
Over-riding projection check
Check if OGR layer <significant_month> contains polygons...
 100%
Using native format
Creating attribute table for layer <significant_month>...
Importing 10 features (OGR layer <significant_month>)...
 100%
-----------------------------------------------------
Building topology for vector map <zemetreseni@PERMANENT>...
Registering primitives...
10 primitives registered
10 vertices registered
Topology was built
Number of nodes: 0
Number of primitives: 10
Number of points: 10
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
Vector map <zemetreseni> imported from WFS.
pesekon2 commented 6 months ago

With non-existing name:

v.in.wfs url="http://localhost:8080/geoserver/zemetreseni/ows?" out=zemetreseni --o --verbose name=a
Retrieving data...
Importing data...
ERROR: Unable to open data source
       </tmp/test_loc/PERMANENT/.tmp/k155-142/50141.0.xml>
WFS import failed