<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Rémi,<br>
<br>
Thanks for your very clever suggestion for enhancing MapServer
service, conditioned by <br>
the process metadatas.<br>
<br>
This would be a great feature for ZOO and I am strongly +1 for
incorporating<br>
this enhancement.<br>
<br>
Best<br>
<br>
Venka<br>
<br>
On 2017/04/07 18:25, Rémi Cresson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:95f1eb96-9ab4-eb38-dab1-026d40ed48f3@teledetection.fr">Dear
all,
<br>
<br>
I want to propose the following RFC for the zoo-kernel:
<br>
<br>
Currently in zoo, geospatial images outputs of a WPS process can
be published as WMS through MapServer, which is very convenient
for visualization. An extremely useful optional functionality,
consisting in tagging the complex ProcessOutput whith
"msClassify=true" in the .zcfg process metadata, enables a
classes-oriented styling of the images (i.e. random color table).
This is achieved in producing a mapfile whith the appropriate
style.
<br>
<br>
While this absolutely rocks, I feel that there is still some room
for improvement of this functionality. In my opinion, I would be
really interesting to propose more than 2 styling ways (i.e. more
than just "msClassify=true" or "msClassifiy=false"). Let's not
reinvent the wheel for image vizualisation and styling: take QGIS
for instance, which is quite operational on this side. QGIS
proposes the essential methods to allows the vizualisation of any
kind of images. Personally, I use 99% of my time the following
ones:
<br>
<br>
1. linear histogram stretching between /min/ and /max/ values of
the image (e.g. radiometric indice image visualization)
<br>
<br>
2. linear histogram stretching between /mean-2*std/ and
/mean+2*std/ values of the image (e.g. natural colors image
visualization)
<br>
<br>
3. random pseudocolor for monoband images (e.g. classification
image visualization)
<br>
<br>
4. custom pseudocolor for monoband images (e.g. thematic image
visualization)
<br>
<br>
It would be a great improvement to allow the using of those styles
(and more?) in the MapServer service, conditioned by the WPS
process .zcfg metadatas of the desired output image. I propose
therefore the following changes in metadatas for output images
styling in the .zcfg:
<br>
<br>
-remove msClassify[0..1]: boolean
<br>
<br>
-add msStyle[0..1]: enum of {linear, random, custom} Description:
when "msStyle=linear", the image is styled using a histogram
stretch (all bands independently). When "msStyle=random", the
image is styled with a random color table (equivalent to the
obsolete "msClassify=true"). When "msStyle=custom", the image is
styled with a custom mapfile.
<br>
<br>
-add msStyleLinear[0..1]: enum of {minmax, meanstd, ...}
Description: those enums set the low and high values for the
linear histogram stretch.
<br>
<br>
-add msStyleCustom[0..1]: custom mapfile filename, e.g.
"myNiceMapfile.map"
<br>
<br>
Again, those are just suggestions, and are proposed as a basis for
discussions with the PSC and the zoo community.
<br>
<br>
I could implement this RFC in a dedicated feature branch.
<br>
<br>
I am waiting for your feedback, suggestions, opinions.
<br>
<br>
Regards,
<br>
<br>
Rémi
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Zoo-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/zoo-discuss">https://lists.osgeo.org/mailman/listinfo/zoo-discuss</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>