On Fri, Oct 11, 2013 at 7:05 PM, carlo cancellieri <
carlo.cancelli...@geo-solutions.it> wrote:

> Hi all,
>  I'm trying to build a mosaic using a custom domain which contains special
> characters (commas, apostrophe, etc) in dimension values.
>
> In my CROP dimension I have
> 1 Cereals
> 2 Oil, crops
> 3 Root
>
> The result in the getCapabilities is:
> ....
> <Dimension name="CROP"
>  default="Cereals"
>  units="">Cereals,Oil,crops,Root
> </Dimension>
> ...
>
> Which is exactly what the standard says but essentially it is wrong...
>
> <<The extent string declares what value(s) along the Dimension axis are
> appropriate for the corresponding layer.
> The extent string has the syntax shown in Table C.2.>>
> Ref:
> http://www.opengeospatial.org/standards/wms
>
> To be correct it should be something like:
> ....
> <Dimension name="CROP"
>  default="Cereals"
>  units="">"Cereals","Cereals","Oil, crops","Root"
> </Dimension>
> ...
>
> Anyhow this is not very close to the standard.
> I'm considering adding quotes to all of my dimension values but this is
> probably not acceptable for all.
>

Adding quotes around the dimension values will most likely break the wms
standard, and standard clients
will simply ignore them.
In other words, to a compliant standard, the above list defines the
following possible values:
"Cereals"
"Cereals"
"Oil
crops"
"Root"

ant then they will add to the GetMap request ...&DIM_CROP="Oil&...

Long story short, your use case places you out of the WMS standard reach,
and the solution will break
any standard client.

My suggestion: don't try to use human readable values for your dimensions,
use codes and have a lookup
table to turn them into human readable ones for your clients

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

-------------------------------------------------------
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to