[Geoserver-users] Geoserver-users Digest, Vol 118, Issue 85

Dear Chris Snider

Thank you very much for your reply.

Cheers

Julierme

geoserver-users-request@lists.sourceforge.net

30/03/2016 11:38

Favor responder a
geoserver-users@lists.sourceforge.net

Para
geoserver-users@anonymised.comsts.sourceforge.net

cc

Assunto
Geoserver-users Digest, Vol 118, Issue 85

Send Geoserver-users mailing list submissions to
geoserver-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/geoserver-users
or, via email, send a message with subject or body ‘help’ to
geoserver-users-request@lists.sourceforge.net

You can reach the person managing the list at
geoserver-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than “Re: Contents of Geoserver-users digest…”

Today’s Topics:

  1. Re: WFS-T: Strange problems with QGIS as a client, data are
    not saved but SUCCESS is returned (Alessandro Pasotti)
  2. Re: Managing WFS and WMS Services (Chris Snider)

Message: 1
Date: Wed, 30 Mar 2016 14:05:37 +0200
From: Alessandro Pasotti apasotti@anonymised.com
Subject: Re: [Geoserver-users] WFS-T: Strange problems with QGIS as a
client, data are not saved but SUCCESS is returned
To: Andrea Aime andrea.aime@anonymised.com
Cc: Justin Deoliveira jdeolive@anonymised.com, GeoServer Mailing List
List geoserver-users@lists.sourceforge.net
Message-ID:
CAL5Q672C_p=p1+UERvthxe82HznCpvhXd=Vs3TO6WJP9MKm9cg@anonymised.com
Content-Type: text/plain; charset=“utf-8”

2016-03-30 14:00 GMT+02:00 Andrea Aime andrea.aime@anonymised.com:

On Wed, Mar 30, 2016 at 12:58 PM, Alessandro Pasotti <apasotti@anonymised.com4…>
wrote:

Hi All,

I’m testing the official geoserver 2.8.2 on Linux, I’ve enabled WFS-T
transactional on all workspaces.
I’m doing some insert tests using topp: roads, state_boundaries and
cities as test layers for linestrings, polygons and points.

Using QGIS as a client, this works:

  • insert on cities

This doesn’t:

  • insert on roads and state_boundaries

First issue: geoserver returns wfs:SUCCESS/ (no errors and no warnings
in the logs) but data are not inserted in the shapefiles.

By comparing example XML I’ve tracked down the problem (at least for
linestrings) to the simple GML used by QGIS, compared with the multi
geometry GML used in the geoserver demo requests (which works):

QGIS (silently fails):
<the_geom xmlns=“http://www.openplans.org/topp”>
<gml:LineString srsName=“EPSG:4326”>
<gml:coordinates cs=“,” ts=" ">146.1911…

GeoServer Demo Requests (works):
topp:the_geom
<gml:MultiLineString srsName="
http://www.opengis.net/gml/srs/epsg.xml#4326">
gml:lineStringMember
gml:LineString
<gml:coordinates decimal=“.” cs=“,” ts=" ">146.1911…

What geometry type is GeoServer declaring in DescribeFeatureTypeã If they
do not match you’ll
get the result you are describing.

As far as I know the original developer of the WFS-T subsystem said we
cannot xml validate the
request for some reason, but at the same time the parser is unfortunately
schema driven,
meaning that it will only look for the elements it expects to find,
ignoring the others.
So if it’s looking for a attribute that’s not mandatory, and does not find
it because it’s mis-encoded,
the transaction will succeeded ignoring the unexpected attributes.

We have had a number of reports due to this issue over the years, with a
few variants (e.g., people encoding
geometries in gml 2 in wfs 1.1 transactions), and I agree it would be best
if the
system validated the input xml against the expected schema and threw an
error,
but apparently it’s not an easy thing to fix (meaning, not a spare time
deal),
and one that nobody has gathered funds to use working hours to fix so far.

Cheers
Andrea

Thank you Andrea,

I have clear picture now, and you are right, the problem is in that
DescribeFeatureType returns type=“gml:MultiLineStringPropertyType” while
QGIS thinks that is a simple geometry.

I’ll have a look into QGIS if we can do something to fix this.


Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed…


Message: 2
Date: Wed, 30 Mar 2016 14:23:48 +0000
From: Chris Snider chris.snider@anonymised.com
Subject: Re: [Geoserver-users] Managing WFS and WMS Services
To: Jonathan Moules jonathan-lists@anonymised.com,
pinheiro@anonymised.compinheiro@anonymised.com
Cc: “geoserver-users@lists.sourceforge.net
geoserver-users@lists.sourceforge.net
Message-ID:
DM2PR0401MB097381BCAB9D469E7F951D19F2980@anonymised.com

Content-Type: text/plain; charset=“utf-8”

Hi,

If you restrict your output to openlayers (which isnãt ?reallyã an output format), you wonãt be able to even use the resulting output. The openlayers output format is what generates the layer
previewer which is actually an html page with embedded javascript. Ultimately, the page makes WMS requests for the jpg/png etc formats. So, you would want to have them available as well.

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
[Description: Description: Description: cid:image001.png@anonymised.com]

From: Jonathan Moules [mailto:jonathan-lists@anonymised.com]
Sent: Wednesday, March 30, 2016 5:05 AM
To: pinheiro@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Managing WFS and WMS Services

Hi,

  • Disabling WFS shouldn’t stop the Layer Preview from working.
  • Restricting access to only certain output formats - http://osgeo-org.1560.x6.nabble.com/WMS-output-format-restrictions-td3796402.html
  • Are you sure you want OpenLayers as the output formatã If you’re building your own application that application will be openlayers (or whatever), and the data it uses will mostly be png8, (or jpeg
    for imagery).

Cheers,
Jonathan

---- On Tue, 29 Mar 2016 17:44:41 +0100 <pinheiro@anonymised.commailto:pinheiro@anonymised.com> wrote ----

Dear all,

I am hitting my head in a wall trying to figure out how to manage the web services.

My goals:

1 - To make just one specific layer available for visualization only (no download available);
2 - To provide only OpenLayers for the Output Formats on WMS services.

My issue:

Making the service WFS unable is making all the layers in the layer preview unable.

Could anyone help me to figure out how to configure geoserver in order to publish data just for visualization through OpenLayers WMS onlyã

[cid:image002.jpg@anonymised.com]------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clkãid=278785471&iu=/4140_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@anonymised.comeforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------- next part --------------
An HTML attachment was scrubbed…
-------------- next part --------------
A non-text attachment was scrubbed…
Name: image001.png
Type: image/png
Size: 2248 bytes
Desc: image001.png
-------------- next part --------------
A non-text attachment was scrubbed…
Name: image002.jpg
Type: image/jpeg
Size: 54684 bytes
Desc: image002.jpg



Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clkãid=278785471&iu=/4140



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

End of Geoserver-users Digest, Vol 118, Issue 85