Vic, can you show us your WMS request? I expected a query for the app-schema layer tn-ra:RailwayStationNode not tn-ra:inspire_stations, which looks like a source feature type.
I recommend using the top-level (non-workspace) service endpoint, especially for your older version of app-schema. (But you have already identified that this is not the problem.) Kind regards, Ben. On 11/04/17 20:41, 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" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="1.1.0" > xmlns:gml="http://www.opengis.net/gml" > xmlns:se="http://www.opengis.net/se" > xmlns:net="http://inspire.ec.europa.eu/schemas/net/4.0" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"> > <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"/> > <net:inNetwork xsi:nil="true" > nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"/> > <net:geometry> > <gml:Point gml:id="stations-geom.1" srsDimension="2" > srsName="http://www.opengis.net/gml/srs/epsg.xml#27700"> > <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"/> > <tn-ra:formOfNode > xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRailwayNodeValue/railwayStop"/> > <tn-ra:numberOfPlatforms xsi:nil="true" > nilReason="http://inspire.ec.europa.eu/codelist/VoidReasonValue/Unpopulated"/> > </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]<http://www.youtube.com/watch?v=qhd6XYP2DBE&feature=related> > > [RSS]<http://cts.cubic.com/Publications/CubicBlog.aspx> > > [Facebook]<https://www.facebook.com/CubicTransportationSystems> > > [Twitter]<https://twitter.com/CubicTS> > > [LinkedIn]<http://www.linkedin.com/company/cubic> > > [YouTube]<http://www.youtube.com/user/CubicTS> > > > > 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 > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ 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
