Hi,
I'm having a problem with this namespace:
"urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0"
in an app-schema-mapping file. Here is the part where the problem lies:
<targetTypes>
<FeatureType>
<schemaUri>
urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0/ProtectedSitesFull_MU.xsd
</schemaUri>
</FeatureType>
</targetTypes>
I have an OASIS catalog file with the following definition:
...
<rewriteURI
uriStartString="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0"
rewritePrefix="INSPIRE/" />
...
GeoServer throws the following exception:
"java.net.MalformedURLException: unknown protocol: urn"
My work-around solution is to add an additional namespace (invented by me),
e.g. "http://www.inspire.net/ps-f" just for the <schemaUri>-part of the
mapping file and keep the original namespace everywhere else. Additionally,
I have added a line for this invented namespace in the catalog.xml:
<rewriteURI uriStartString="http://www.inspire.net/ps-f"
rewritePrefix="INSPIRE/" />
It's not too bad that way, only problem is that my invented namespace shows
up in the WFS-output:
<wfs:FeatureCollection numberOfFeatures="5"
timeStamp="2010-09-14T11:01:11.251+02:00"
xsi:schemaLocation="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0
http://www.inspire.net/ps-f/ProtectedSitesFull_MU.xsd
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd">
Does anybody know a better solution? Does <schemaUri> require "http" or is
there a way for it to accept something else?
Kind regards,
Barbara
--
View this message in context:
http://old.nabble.com/app-schema%3A-%3CschemaUri%3E-with-%22urn%3A%22---MalformedURLException-tp29725459p29725459.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users