Thanks for the reply, if I remove the geometry attribute I get the following
error:
Rendering process failed Can't find source expression for: geometry
RE: The WFS NULL namespaces issue should have been fixed some time ago:
We are using 2.8.2, upgrading is not an option for us just yet, not really a
problem as I can work around it. I thought the two issues could have been
related when looking at the target name in the debugger it had a null
namespace, if I manually set the filed to when on a breakpoint
http://inspire.ec.europa.eu/schemas/net/4.0 it matches the geometry descriptor
and gets further.
Regards, Vic
From: Nuno Oliveira [mailto:[email protected]]
Sent: 11 April 2017 11:54
To: [email protected]
Subject: Re: [Geoserver-users] WMS with an appschema
Hi,
You don't need to explicitly set the geometry attribute, removing:
<Geometry>
<ogc:PropertyName>net:geometry</ogc:PropertyName>
</Geometry>
should get you what you expect.
In any case, when referencing a complex feature attribute (i.e. when using
app-schema) a XPath expression needs to be used:
http://docs.geoserver.org/latest/en/user/data/app-schema/wms-support.html#getmap<https://urldefense.proofpoint.com/v2/url?u=http-3A__docs.geoserver.org_latest_en_user_data_app-2Dschema_wms-2Dsupport.html-23getmap&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=Ye5liM7ntO0Cbl5Z66ZdisSPJLArpOvkg8BPyVAGwoc&e=>
The WFS NULL namespaces issue should have been fixed some time ago:
https://osgeo-org.atlassian.net/browse/GEOS-8017<https://urldefense.proofpoint.com/v2/url?u=https-3A__osgeo-2Dorg.atlassian.net_browse_GEOS-2D8017&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=kNbEjOTsNHEBHX_ALq5YZO2fzrttxqOMfTLg8La5LQU&e=>
If you are using a version that got the fix
(2.10.3<https://urldefense.proofpoint.com/v2/url?u=https-3A__osgeo-2Dorg.atlassian.net_issues_-3Fjql-3Dproject-2B-253D-2BGEOS-2BAND-2BfixVersion-2B-253D-2B2.10.3&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=F_kbheTGMbRUN9twkHfU44BF_-56fBmputYtiXeXOXI&e=>,
2.12-beta<https://urldefense.proofpoint.com/v2/url?u=https-3A__osgeo-2Dorg.atlassian.net_issues_-3Fjql-3Dproject-2B-253D-2BGEOS-2BAND-2BfixVersion-2B-253D-2B2.12-2Dbeta&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=w0qDYbUw6m4nBpHKYiCFLgpelnmBdcU4dZDfTylujgc&e=>,
2.11.1<https://urldefense.proofpoint.com/v2/url?u=https-3A__osgeo-2Dorg.atlassian.net_issues_-3Fjql-3Dproject-2B-253D-2BGEOS-2BAND-2BfixVersion-2B-253D-2B2.11.1&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=5bW3rdPB9URjJCmsLX6rD_xpZsXTYMuuW7iYBBWNYes&e=>)
please open a ticket for it.
Regards,
Nuno Oliveira
On 04/11/2017 09:41 AM, Kirk, Victor (GB) wrote:
I'm trying to get WMS working for an appschema I've set up, but I get the error
:
"The requested Style can not be used with this layer. The style specifies an
attribute of net:geometry and the layer is: tn-ra:inspire_stations".
I've stepped through the look up in the debugger and I can see the Name
instance used to look up the attribute descriptor does not have a namespace
entry so a match is not found. I tried setting the default namespace in the
sld but get the same error. I've also tried accessing the service with and
without the workspace namespace, I tried this as the WFS comes out with null
namespaces when you use the workspace namespace.
Can anyone tell me if I'm missing something obvious?
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor
xmlns:sld="http://www.opengis.net/sld"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_sld&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=pQE0mBi5AIHFcEtAX8SkzXqLAmcLFDEZ2LzuD47UO6c&e=>
xmlns:ogc="http://www.opengis.net/ogc"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_ogc&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=qsY05Pu7VEqCNRqlRxaLEa6h-F74J_GEBqjHuDvBmgc&e=>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=Y2JOrqXLmJ_b8sDd5CYDDaxwrrUSdMRCXIDK2oZQUw4&e=>
version="1.1.0"
xmlns:gml="http://www.opengis.net/gml"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_gml&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=UPOyDC5uTV-v_LDfd31jGB3YLjRTOMSydHog4rdimbQ&e=>
xmlns:se="http://www.opengis.net/se"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_se&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=oMCgX_wmVd4Q-TY40u4kgz8x-8jHqt-0PkWcsHAR-Lg&e=>
xmlns:net="http://inspire.ec.europa.eu/schemas/net/4.0"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_schemas_net_4.0&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=6pIgR2bjAS0ZUiCEhjZg3SHc3VTp3TCQlhRdvUwlnlE&e=>
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_sldhttp-3A__schemas.opengis.net_sld_1.1.0_StyledLayerDescriptor.xsd&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=5wOnWCbjJ2M88SQGU73KvdRsH0tbfW656w2oBaSaFGU&e=>>
<sld:NamedLayer>
<se:Name>TN.CommonTransportElements.TransportNode</se:Name>
<sld:UserStyle>
<se:Name>TN.CommonTransportElements.TransportNode</se:Name>
<sld:IsDefault>1</sld:IsDefault>
<se:FeatureTypeStyle version="1.1.0">
<se:Description>
<se:Title>Transport Node</se:Title>
<se:Abstract></se:Abstract>
</se:Description>
<se:Rule>
<se:PointSymbolizer>
<Geometry>
<ogc:PropertyName>net:geometry</ogc:PropertyName>
</Geometry>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#FF0000</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#000000</se:SvgParameter>
<se:SvgParameter name="stroke-width">1</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>3</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
An example feature:
<wfs:member>
<tn-ra:RailwayStationNode gml:id=" stations.1">
<gml:name>A name recently</gml:name>
<net:beginLifespanVersion xsi:nil="true"
nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_codelist_VoidReasonValue_Unpopulated&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=FDuXep9StioPmf2XG_2GNBg5ai2bL4ejfDZOtS5VFYk&e=>/>
<net:inNetwork xsi:nil="true"
nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_codelist_VoidReasonValue_Unpopulated&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=FDuXep9StioPmf2XG_2GNBg5ai2bL4ejfDZOtS5VFYk&e=>/>
<net:geometry><net:geometry>
<gml:Point gml:id="stations-geom.1" srsDimension="2"
srsName="http://www.opengis.net/gml/srs/epsg.xml#27700"<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_gml_srs_epsg.xml-2327700&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=rhp7I-rmcgY_VE_ZbxB-k9klUaF6oFELC7ayAFa_GZs&e=>>
<gml:pos>`12345.678 12345.678 </gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom xsi:nil="true"
nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_codelist_VoidReasonValue_Unpopulated&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=FDuXep9StioPmf2XG_2GNBg5ai2bL4ejfDZOtS5VFYk&e=>/>
<tn-ra:formOfNode
xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRailwayNodeValue/railwayStop"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_codelist_FormOfRailwayNodeValue_railwayStop&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=XqkHSFJ9QrUAwmwr31Z4C2F6YmYzQztY2IWM0-SS9LE&e=>/>
<tn-ra:numberOfPlatforms xsi:nil="true"
nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"<https://urldefense.proofpoint.com/v2/url?u=http-3A__inspire.ec.europa.eu_codelist_VoidReasonValue_Unpopulated&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=FDuXep9StioPmf2XG_2GNBg5ai2bL4ejfDZOtS5VFYk&e=>/>
</tn-ra:RailwayStationNode>
</wfs:member>
Kind Regards, Vic
[Cubic Transportation Systems]<http://cts.cubic.com/>
Victor Kirk
Senior Software Engineer
Cubic Transportation Systems Ltd
+44 (1642) 636894
cubic.com/transportation<http://cubic.com/transportation/>
[NextCity]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_watch-3Fv-3Dqhd6XYP2DBE-26feature-3Drelated&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=VxCLjRkVUwyGtj2k7BWd41Yxc1Lf-2zbZ1nVRjRPdA4&e=>
[RSS]<http://cts.cubic.com/Publications/CubicBlog.aspx>
[Facebook]<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.facebook.com_CubicTransportationSystems&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=7I8AaWusr0wN_Umi9E16LvbCWO_HusEfL8uwYlPVgAs&e=>
[Twitter]<https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_CubicTS&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=LVxoJm7FjE0U_d1DhHbqvSZshi3pMvnMtrRy33Sboa8&e=>
[LinkedIn]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_company_cubic&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=bAa8JWPTR1i_m2ZHXFRE6BLZe2Aou-HHGcvPr9Oml1M&e=>
[YouTube]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_user_CubicTS&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=2MZ5e8QsHVKgfsCtGwQ1Gn1hm5J7Y00FOh-FII7Eh48&e=>
Co-Winner, London Award for Innovation, London contactless bankcard payment
system
London First Awards 2017
Co-Winner, Best Product/Innovation of the Year, NextAgent Virtual Ticketing
Global AirRail Alliance Awards (2017)
http://www.cubic.com/Transportation/About-CTS/Awards
________________________________
This document is intended for, and should only be read by, those persons to
whom it is addressed. Its contents are confidential and if you have received
this message in error, please delete it. Any form of reproduction,
dissemination, copying, disclosure, modification, distribution and / or
publication of this message without our prior written consent is strictly
prohibited.
Any views expressed in this message are those of the individual sender, and do
not necessarily represent the position of Cubic Transportation Systems (ITMS)
Limited ('CTS'). Furthermore CTS does not authorise or use e-mail for official
contractual correspondence. Nothing received in e-mail has any contractual
validity.
CTSL and each legal entity in Cubic Corporation reserve the right to monitor
all e-mail communications through its networks.
Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom
Registered in England under number 8498086
________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot<https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=FQnJLgB_46oTlAOpH4boCH9Hxt3HGrbMuvCRWIL1NhA&e=>
_______________________________________________
Geoserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_geoserver-2Dusers&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=5juxQZpo2F23_kZ2_kaq0EHmo3GlCUNWAtyw6WGIAo8&e=>
--
==
GeoServer Professional Services from the experts!
Visit
http://goo.gl/it488V<https://urldefense.proofpoint.com/v2/url?u=http-3A__goo.gl_it488V&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=HV8bKFi-RGQOBt2to_XFaKtPLFSldF_3hBnafgJc1sQ&e=>
for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.geo-2Dsolutions.it&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=1S5JDpdmDc2J9s7MdNlGC_Rq6FoYMLjiCctwCnsdC_w&e=>
http://twitter.com/geosolutions_it<https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_geosolutions-5Fit&d=DwMD-g&c=zUSW9Sw6oKY41zSJbj5J3w&r=UoMdtdVen0VRHvGdK-gp4qinb2awhVkiYti1VKQv5A4&m=zFDmb7d2-z0JXZpXWdIn5-0ejsG9Gl6orOQam83duwQ&s=3myJxm2FDQVCwDRoq0jUCxPNUD3-g9nD8TYUFDANv94&e=>
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users