Hi Rini,
thanks a lot for your reply.
We are using geoserver 2.3.2; my mapping files and the geoserver log are avaiable here:
http://coreweb1.coremed.it/download/app-schema.zip
http://coreweb1.coremed.it/download/logs.zip
The geoserver we are using is avaiable here:
http://coreweb2.corenet.it/geoserver-dbtr/
Eventually we managed to perform simple queries (those not using joins) but we are still experiencing problems.
Problems with “parent” and “locationType” as xlink:href
We defined the parent and locationType fields of the iso19112 standard as xlink:href, according to the standard; the getFeature response shows correctly the url of a getFeatures request that apparently is fine; but if you try to open this url in a browser, you get a java.io.IOException: javax.xml.transform.
Below you have two request in get that are not workning, taken from the response of the getFeatures; both requests are defined with in the mapping file.
http://coreweb1.coremed.it/geoserver-dbtr/wfs?request=GetFeature&typeName=iso19112:SI_LocationType&FILTER=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ename%3C/PropertyName%3E%3CLiteral%3ETPS%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E
http://coreweb1.coremed.it/geoserver-dbtr/wfs?request=GetFeature&typeName=iso19112:SI_LocationInstance&FILTER=%3CFilter xmlns=“http://www.opengis.net/ogc”%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eistat%3C/PropertyName%3E%3CLiteral%3E036019%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E" xlink:role="in_county
The same request works fine if you send the filter in post, inside a request; so I think that should be a problem using app-schema and getFeatures in Get insted of Post.
You can try the GetFeatures with this xml request:
<wfs:GetFeature service=“WFS” version=“1.1.0” xmlns:topp=“http://www.openplans.org/topp” xmlns:wfs=“http://www.opengis.net/wfs” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd”>
<wfs:Query typeName=“iso19112:SI_LocationInstance”>
ogc:Filter
ogc:PropertyIsEqualTo
ogc:PropertyNamealternativeGeographicIdentifiers/alternativeGeographicIdentifier/name</ogc:PropertyName>
ogc:LiteralVIA AMEDEO MODIGLIANI</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
Can you confirm that a feature published with app-schema can be queried with a url, passing in get all params?
Problems with join
With app-schema.joining = true in the app-schema.properties file (that is the default) nothing works and the GetFeature ends in an infinite loop.
With app-schema.joining = true the GetFeatures works fine (I wonder if this setting is needed/useful).
We need to query a LocationInstance with a join between the “alternativeGeographicIdentifiers/alternativeGeographicIdentifier/name” and the parent coming from the xlink:href field; do you know how to write down a query to accomplish this request?
Problems with describeFeatureType
Setting the schema uri in the mapping file turns in a response that show just a link to the target xsd; can we nest the schema inside the DescribeFeatureTypes response, instead of show a link?
[http://coreweb1.coremed.it/download/SI_Gazetteer.xsd](http://coreweb1.coremed.it/download/SI_Gazetteer.xsd)
This is the request:
http://coreweb1.coremed.it/geoserver-dbtr/wfs?request=DescribeFeatureType&version=1.1.0&typeName=iso19112:SI_Gazetteer
and the response:
<xsd:schema elementFormDefault=“qualified” targetNamespace=“http://www.isotc211.org/19112”><xsd:include schemaLocation=“http://coreweb1.coremed.it/download/SI_Gazetteer.xsd”/></xsd:schema>
Problmes with spatial index
If we define a spatial index in the table used by the mapping file, everything become slow and the GetFeatures does not work.
···
On Fri, May 31, 2013 at 6:11 AM, Rini Angreani <Rini.Angreani@anonymised.com.367…> wrote:
Hi Gianni,
There’s been a lot of bug fixes recently to support joining with feature
chaining. Also, make sure you’re not using functions (including getID()) in
your idExpression inside your mapping files, but point directly to the
database id columns instead.
I’m wondering which version you’re using? If you are already using the
latest, then this is possibly a new bug. Can you please point me to your
mapping files and the problematic query?
Thanks
Rini
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/app-schema-and-gazetteer-tp5053723p5057083.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Get 100% visibility into Java/.NET code with AppDynamics Lite
It’s a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users