Hi,

Thanks for the answer.
It is a linear geometry but the problem is independent of the geometry as this 
happens with point features as well.
The gml preview returns a null pointer exception for these layers.

<ServiceExceptionReport version="1.2.0" 
xsi:schemaLocation="http://www.opengis.net/ogc 
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";><ServiceException>
      java.lang.RuntimeException: java.lang.NullPointerException
java.lang.NullPointerException
</ServiceException></ServiceExceptionReport>

It works for the other layers so you might be on to something. What could cause 
this exception?

Regards,




From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: Tuesday, February 13, 2018 7:19 PM
To: Takács Gábor
Cc: [email protected]
Subject: Re: [Geoserver-users] geometry not recognized for some layers on WFS 
service

Hi,
from what I can see in the screenshot you have curved geometries in those 
tables?
Could it be that QGIS is not supporting/recognizing them, and as such it treats 
them as strings as fallback?

If you pick one of those layers and get the GML 3.2 preview (in the preview 
page dropdwon, under WFS) what do you get as the output?

Cheers
Andrea


On Tue, Feb 13, 2018 at 9:37 AM, Takács Gábor 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I’ve inherited a geoserver without any prior knowledge about it’s workings.
The Geoserver version is 2.11.2.
JVM 1.8.0_151
Tomcat 9.0.0.M26

My problem is that for some layers the geometry is not recognized when 
accessing trough the WFS service. WMS works for all, but WFS only for some of 
the layers.
I’ve checked the configuration of the stores, the workspaces, and the layers 
themselves, and they’re identical.  Even the used schemas are technically the 
same.
The store type for all is directory of shapefiles.
Yet for some reason when I connect to the offending layers (for example trough 
QGIS) it returns a layer without geometry. And the geometry field is listed as 
a data field on the layer properties page. (See attached screenshot).

At this point I’m completely stuck, any suggestions would be appreciated.


Regards,
Gabor Takacs
Survey Department Budapest
H-1112 Budapest, Repülõtéri út 2.
+36 20 426 1151<tel:+36%2020%20426%201151>
[email protected]<mailto:[email protected]>
www.geodezia.hu<http://www.geodezia.hu/>
[cid:[email protected]]
Confidentiality note: This message and any attachment are confidential and may 
be privileged or
otherwise protected from disclosure. If you are not the intended recipient, 
please email the sender
and delete the message and any attachment from your system. If you are not the 
intended recipient,
you must not copy this message or attachment or disclose the contents to any 
other person.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to