[Geoserver-users] WFS Mixed Geometry

Hi Sandra,

Yes, with QGIS the only option is to split your layer into separate point and polygon layers. It will also save much pain if you will have more clients type OpenLayers etc. later and they should be using the same data. One geometry type per layer is restricting but fighting against it makes you to suffer.

-Jukka Rahkonen-

···

Sandra Kennish wrote:

Hi

The areas are showing now in MapInfo, but not in QGIS so I believe they are being served, just not visible in QGIS as you say.

As this is for use primarily in desktop GIS I will probably have to split them off in to 2 tables though.

Thank you for your help.

Sandra

Sandra Kennish

GIS Officer

From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen@anonymised.com]
Sent: 16 June 2014 15:47
To: Sandra Kennish; ‘geoserver-users@lists.sourceforge.net’
Subject: Re: WFS Mixed Geometry

Hi,

I believe that QGIS has no way to show both points and polygons on the same layer. MapInfo can do it with its own data but I have no experience on MapInfo and WFS.

Forget the GIS clients because they only hide what really happens from you. Send a direct WFS GetFeature request from your browser and see what it sends for you. The URL is like this

http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.0.0&request=getfeature&typename=topp:states&maxfeatures=20

Edit the server name to point to your server and typename to be your typename. Increase maxfeatures little by little. It you can find both kind of geometries from the GML that comes from the server you have confirmed that the issue is in QGIS and Mapinfo and their limited capabilities for showing mixed geometries. If the GML contains only points we must continue our research.

-Jukka Rahkonen-

Sandra Kennish wrote:

Hi Julia

The points only display when I connect in either MapInfo or QGIS with WFS, but when connecting with WMS in either MapInfo or QGIS both points and polygons show.

Sandra

Sandra Kennish

GIS Officer

From: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen@anonymised.com]
Sent: 16 June 2014 14:22
To: ‘geoserver-users@lists.sourceforge.net’
Subject: Re: [Geoserver-users] WFS Mixed Geometry

Hi,

When you wrote ”only the points display in WFS” did you mean that the GML data that comes from Geoserver has only points or do you have some client software in the middle which shows only points on the map?

-Jukka Rahkonen-

Sandra Kennish wrote:

Hello

We have Geoserver 2.4.1 connected to a PostGIS database. I have a table with mixed geometry (points and areas) which displays fine in WMS, but only the points display in WFS.

Can anyone enlighten me as to why WFS wouldn’t display the areas please? Do I need to have separate tables for different geometry?

Thanks

Sandra

Sandra Kennish

GIS Officer

North York Moors National Park Authority

The Old Vicarage

Bondgate

Helmsley

York

YO62 5BP

Tel: 01439 772700

Mobile: 07813 789126

www.northyorkmoors.org.uk

CONFIDENTIALITY: The contents of this message are the views of the author, not necessarily the views of the North York Moors National Park Authority. This is a private message intended for the named addressee(s) only. Its contents may be confidential.

If you have received this message in error please reply to say so and then delete the message. Any use, copying, disclosure or distribution by anyone other than the addressee is forbidden.

www.northyorkmoors.org.uk

Scanned by MailDefender - managed email security from intY - www.maildefender.net

Scanned by MailDefender - managed email security from intY - www.maildefender.net

CONFIDENTIALITY: The contents of this message are the views of the author, not necessarily the views of the North York Moors National Park Authority. This is a private message intended for the named addressee(s) only. Its contents may be confidential.

If you have received this message in error please reply to say so and then delete the message. Any use, copying, disclosure or distribution by anyone other than the addressee is forbidden.

www.northyorkmoors.org.uk

Scanned by MailDefender - managed email security from intY - www.maildefender.net

Scanned by MailDefender - managed email security from intY - www.maildefender.net

CONFIDENTIALITY: The contents of this message are the views of the author, not necessarily the views of the North York Moors National Park Authority. This is a private message intended for the named addressee(s) only. Its contents may be confidential.

If you have received this message in error please reply to say so and then delete the message. Any use, copying, disclosure or distribution by anyone other than the addressee is forbidden.

www.northyorkmoors.org.uk

Scanned by MailDefender - managed email security from intY - www.maildefender.net