On 22/05/15 09:10, Sen, Marcus A. wrote: >> From: Andrea Aime [mailto:[email protected]] >> Normally we prefer to point to local hosted schemas, as opposed to remote >> ones, because in some enviroments there is just >> no internet wide access and this allows clients to still download the >> schemas. > In this case the locally hosted Schema is a very short one that imports two > other Schemas from remote locations so it doesn't help for an isolated > server. Also the download service schema location is a remote one, not > locally hosted. This wasn't my primary concern but I noticed a comment in the > code asking whether the xsd still needed to be locally hosted so I thought > I'd just go ahead and make the change.
Marcus, in my view this is a very strong argument for changing the schemaLocation. I think that there is no benefit to retaining the existing behaviour and adding a UI switch would just be unnecessary complexity. Your proposed behaviour would permit clients to compare schemaLocation URL to detect the the INSPIRE schema. +1 for changing the schemaLocation to canonical, and I am quoting your text from GEOS-7041 below as it is even more compelling. Kind regards, Ben. https://osgeo-org.atlassian.net/browse/GEOS-7041 ****** Currently the INSPIRE plugin puts a schemaLocation which includes "http://inspire.ec.europa.eu/schemas/inspire_vs/1.0 http://localhost:8080/geoserver/www/inspire/inspire_vs.xsd" for the INSPIRE view service namespace. However, this local schema is a very minimal wrapper which imports two other schemas from the Internet: <import namespace="http://www.opengis.net/wms" schemaLocation="http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd"/><import namespace="http://inspire.ec.europa.eu/schemas/common/1.0" schemaLocation="http://inspire.ec.europa.eu/schemas/common/1.0/common.xsd"/> So there doesn't seem to be any benefit from hosting this small wrapper locally rather than using the canonical location at http://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd . ****** -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
