[Geoserver-users] Filter aliases

Hi list,

i read specification for WFS 1.1.0 on
http://www.opengeospatial.org/standards/wfs. In this document is written ,
that we can set aliases for typenames.

So i tried it, but with no success.

My URL:
http://srvemis01:7777/geoserver/wfs?service=WFS&request=GetFeature&version=1.1.0&typeName=emis:T_GM_KRAJ_SPA=A&filter=<ogc:Filter
xmlns:ogc='http://www.opengis.net/ogc’><ogc:PropertyIsLike wildCard='*'
singleChar='.'
escape='!'><ogc:PropertyName>A.NAZOV_KU</ogc:PropertyName><ogc:Literal>pre*</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

Response is: Feature type emis:T_GM_KRAJ_SPA=A unknown

With apostrophes URL:
http://srvemis01:7777/geoserver/wfs?service=WFS&request=GetFeature&version=1.1.0&typeName=‘emis:T_GM_KRAJ_SPA=A’&filter=&lt;ogc:Filter
xmlns:ogc='http://www.opengis.net/ogc’><ogc:PropertyIsLike wildCard='*'
singleChar='.'
escape='!'><ogc:PropertyName>A.NAZOV_KU</ogc:PropertyName><ogc:Literal>pre*</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

gave this response: Unknown namespace ['emis]

Can someone help me to solve that problem ?

Best regards

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Filter-aliases-tp5041017.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Mar 18, 2013 at 9:34 AM, gabriel <gpetricek@anonymised.com> wrote:

Hi list,

i read specification for WFS 1.1.0 on
http://www.opengeospatial.org/standards/wfs. In this document is written ,
that we can set aliases for typenames.

So i tried it, but with no success.

My URL:
http://srvemis01:7777/geoserver/wfs?service=WFS&request=GetFeature&version=1.1.0&typeName=emis:T_GM_KRAJ_SPA=A&filter=<ogc:Filter
xmlns:ogc=‘http://www.opengis.net/ogc’><ogc:PropertyIsLike wildCard='
singleChar=‘.’
escape=‘!’>ogc:PropertyNameA.NAZOV_KU</ogc:PropertyName>ogc:Literalpre
</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

Response is: Feature type emis:T_GM_KRAJ_SPA=A unknown

With apostrophes URL:
http://srvemis01:7777/geoserver/wfs?service=WFS&request=GetFeature&version=1.1.0&typeName=‘emis:T_GM_KRAJ_SPA=A’&filter=<ogc:Filter
xmlns:ogc=‘http://www.opengis.net/ogc’><ogc:PropertyIsLike wildCard='
singleChar=‘.’
escape=‘!’>ogc:PropertyNameA.NAZOV_KU</ogc:PropertyName>ogc:Literalpre
</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

gave this response: Unknown namespace ['emis]

Can someone help me to solve that problem ?

Aliases are meant to be used in joins, but GeoServer WFS 1.1 does not support the joining and as such
does not support aliases either.
I believe both joining and aliases are supported for WFS 2.0 though

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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


So it is not possible to make join of two typenames using geoserver 2.2.4
this time. Exist any other solution to achieve this ?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Filter-aliases-tp5041017p5041023.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Mar 18, 2013 at 10:01 AM, gabriel <gpetricek@anonymised.com> wrote:

So it is not possible to make join of two typenames using geoserver 2.2.4
this time. Exist any other solution to achieve this ?

It is possible if you use WFS 2.0.
WFS 1.1 joining was not well defined, I remember discussing it with other
OSGeo folks and I seem to remember it was impossible to make it and write
an output document that is also schema compliant with the WFS spec.

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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


Ok, so i tried wfs version 2.0.0. Im using Geoserver 2.2.4.

On this request
http://srvemis01:7777/geoserver/emis/wfs?service=WFS&request=getfeature&version=1.1.0&typename=emis:T_GM_KRAJ_SPA

i've got response, but when i tried with version 2.0.0 i've got 502 http
error.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Filter-aliases-tp5041017p5041039.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ok, so problem was in Geoserver version. Im using now 2.3.0 version of
geoserver and all works fine.

My url request looks like
http://<localhost>:8080/geoserver/wfs?service=WFS&request=getfeature&version=2.0.0&*typenames=(<tp1>)(<tp2>)*&*aliases=(A)(B)*&filter=*(*<Filter><PropertyIsLike
wildCard='*' singleChar='.'
escape='!'><PropertyName>*A/attribute*</PropertyName><Literal>value*</Literal></PropertyIsLike></Filter>)(<Filter><PropertyIsLike
wildCard='*' singleChar='.'
escape='!'><PropertyName>*B/attribute*</PropertyName><Literal>value*</Literal></PropertyIsLike></Filter>*)*

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Filter-aliases-tp5041017p5041105.html
Sent from the GeoServer - User mailing list archive at Nabble.com.