gvSIG bugs #1440

Error adding WFS layers

Added by Pau Pérez over 11 years ago. Updated over 10 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Juan Lucas Domínguez
Category:WFS
Target version:2.0.0-final
Severity: Add-on version:
gvSIG version:2.0.0 Add-on build:
gvSIG build:2056 Add-on resolve version:
Operative System:Windows Add-on resolve build:
Keywords:WFS, wfs Proyecto:
Has patch:No Hito:
Add-on name:Unknown

Description

When adding WFS services, there is errors when you accept at the end of the assistant of loading WFS layers.
This error is repeated in several urls, including a test that we have in the CITMA: http://cartoweb.cma.gva.es/arcgis/services/wfs_forestal/MapServer/WFSServer.
The error seems to be with the GetMap request, and when the label WFS server response that describes the geometry contains <Shape>, <Shape>.
I attach a compress file . rar with a list of several requests (peticiones.txt) indicating which work and which do not. For those that do not work, I attach a .log file.
Among the list of requests, there are other errors, apart from the already mentioned, which I discuss in peticiones.txt file attachment.
Errors are repeated in RC1 (build 2060).

cargar_WFS.rar (69.7 KB) Pau Pérez, 11/30/2012 12:24 PM

History

#1 Updated by Joaquín del Cerro Murciano over 11 years ago

  • Category set to WFS
  • Assignee set to Juan Lucas Domínguez
  • Target version set to 2.0.0-rc2

#2 Updated by Joaquín del Cerro Murciano over 11 years ago

  • Target version changed from 2.0.0-rc2 to 2.0.0-final

#3 Updated by Juan Lucas Domínguez over 11 years ago

Hello, Pau. A question:

How do you deal with coordinate systems when using WFS servers?
Do you set the view to the CRS of the WFS because you don't want to reproject it?
Do you set the view to the CRS of the WFS because reprojection does not work?

#4 Updated by Juan Lucas Domínguez over 11 years ago

gvsig-gpe:r272
gvsig-desktop:r39696

Some improvements made, but it doesn't work in all cases:

- If the CRS uses meters (EPSG:23030, EPSG:25830, etc), then it will probably work. In some cases, it does not work because the
server is not well configured or the geometries are not properly parsed by gvSIG.

- If the CRS is geodetic (EPSG:4326, EPSG:4258) and the server version is 1.1.0, then it does not work because gvSIG still does not support the new axis order.

#5 Updated by Pau Pérez over 11 years ago

Hello,

I did not test WFS with different coordinate systems, because I thought that the problem was with the geometry tags <shape>. I always tested views with the same CRS of WFS service.

I've been testing a WFS service with different CRS:

http://www.idee.es/IGN-WFS-SIGLIM/ogcwebservice (WFS version 1.1.0)

- With the same ellipsoid, no error. View in EPSG:25830, and WFS service in EPSG:4258.
- With different ellipsoid, there is a displacement. View in EPSG:23030, anf WFS service in EPSG:4258.

Juan Lucas Domínguez wrote:

Hello, Pau. A question:

How do you deal with coordinate systems when using WFS servers?
Do you set the view to the CRS of the WFS because you don't want to reproject it?
Do you set the view to the CRS of the WFS because reprojection does not work?

#6 Updated by Juan Lucas Domínguez over 11 years ago

Hello.

The displacement happens because in the WFS form, there is no option to set the correct transformation, so gvSIG uses the standard transformation between the ellipsoids, which is not very precise.

That server http://www.idee.es/IGN-WFS-SIGLIM/ogcwebservice is strange because it says it is version 1.1.0 but it uses the coordinates in the old style (lon, lat) and that is why we can see it in the current version of gvSIG (normally we cannot use WFS 1.1.0 servers using geodetic CRS like EPSG:4326 or EPSG:4258)

#7 Updated by Juan Lucas Domínguez over 11 years ago

The next issue that needs to be solved is this. I think brackets "(" and ")" are not properly used in our requests:


<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" version="1.1.0" language="en-US" xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="PROPERTYNAME" locator="InvalidParameterValue">
<ows:ExceptionText>msWFSGetFeature(): WFS server error. Optional PROPERTYNAME parameter. A list of properties may be specified for each type name. Example TYPENAME=name1&name2&PROPERTYNAME=(prop1,prop2)(prop1)</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

#8 Updated by Juan Lucas Domínguez over 11 years ago

  • Status changed from New to Fixed

Fixed small WFS issues. Also, user is now able to choose WFS protocol version (this can be a workaround for the axis order issue until a better solution is implemented).
gvsig-desktop:r39766

Fixed parsing of server short response when querying for feature count.
gvsig-desktop:r39769

The WFS wizard has changed a bit. If the CRS shown in the wizard is geodetic (EPSG:4326, EPSG:4258, etc), then try to choose WFS version 1.0.0 in the combo box, to prevent possible issues. If the combo box only has version 1.1.0 and the CRS is geodetic, then it will probably not work.

Sometimes, servers say that they are version 1.1.0 but they provide the coordinates with the old order (lon, lat) so in this case the application works also.

All the she server URLs provided by Pau now work:

1. Confederación Ebro.
Funciona.
http://ide-ebro.chebro.es/GIS-Ebro-OWS/ogcwebservice?

2. Secretaria de Estado de Vivienda y Actuaciones Urbanas.
Funciona.
http://siu.vivienda.es/geoserver/wfs?

3. Min. Agricultura, Alim. y M.A. Comarcas Agrarias.
Ahora ya funciona. Antes de "Aceptar" hay que elegir la versión 1.0.0 en el combo de la parte inferior para evitar el problema del orden de ejes.
http://wms.magrama.es/sig/WFS/ComarcasAgrarias/wfs.aspx?

4. CITMA. Parques Naturales.
Ya funciona.
http://cartoweb.cma.gva.es/arcgis/services/wfs_forestal/MapServer/WFSServer?

5. Límites provinciales IDEE.
Funciona.
http://www.idee.es/IGN-WFS-SIGLIM/ogcwebservice?

6. Atlas Virtual de la Avifauna Terrestre de España
Ya funciona.
http://avesbiodiv.org/cgi-bin/AtlasAves?

7. Cartociudad provincias IDEE.
Funciona pero aparecen algunas provincias solamente. Creo que este servidor no está bien configurado.
http://www.cartociudad.es/wfs-provincia/services?

#9 Updated by Álvaro Anguix over 10 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF