Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

ArrowColourField #131

Closed ghansham closed 4 years ago

ghansham commented 4 years ago

I have a following SLD, The ArrowColourField does not get reflected in legendgraphics. Is it what it is intended to do?

$layerName-dir 100 $layerName-mag PRESSURE 4 12 $scaleMin $scaleMax Rasterdata extend insat_irw extend 100 975 250 WIND_BARBS

regards Ghansham

guygriffiths commented 4 years ago

I would need to see the SLD and the request you're using to generate the legend graphics to be able to help out here.

ghansham commented 4 years ago

Dear Sir

I have attached the barb.txt. Rename it barb.xml

And the legend graphics request is as follows:

http://10.61.141.62:8090/ncWMS2/wms?&WIDTH=400&HEIGHT=400&request=GetLegendGraphic&SLD_BODY=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CStyledLayerDescriptor%20version%3D%221.1.0%22%20xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%20StyledLayerDescriptor.xsd%22%20xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Ase%3D%22http%3A%2F%2Fwww.opengis.net%2Fse%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xmlns%3Aresc%3D%22http%3A%2F%2Fwww.resc.reading.ac.uk%22%3E%0A%0A%20%20%3CNamedLayer%3E%20%0A%20%20%20%20%3Cse%3AName%3E3DIMG_L2P_IRW%2FUCOMP%3AVCOMP-dir%3C%2Fse%3AName%3E%0A%20%20%20%20%3CUserStyle%3E%0A%20%20%20%20%20%20%3Cse%3ACoverageStyle%3E%0A%20%20%20%20%20%20%20%20%3Cse%3ARule%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cresc%3AColoredSizedArrowSymbolizer%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cse%3AOpacity%3E100%3C%2Fse%3AOpacity%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AArrowSizeField%3E3DIMG_L2P_IRW%2FUCOMP%3AVCOMP-mag%3C%2Fresc%3AArrowSizeField%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AArrowColourField%3E3DIMG_L2P_IRW%2FPRESSURE%3C%2Fresc%3AArrowColourField%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AArrowMinSize%3E4%3C%2Fresc%3AArrowMinSize%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AArrowMaxSize%3E12%3C%2Fresc%3AArrowMaxSize%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3ARange%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AMinimum%3E2.178%3C%2Fresc%3AMinimum%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AMaximum%3E51.72%3C%2Fresc%3AMaximum%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fresc%3ARange%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cse%3AColorMap%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3ASegment%20fallbackValue%3D%22%2300000000%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cse%3ALookupValue%3ERasterdata%3C%2Fse%3ALookupValue%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3ABelowMinValue%3Eextend%3C%2Fresc%3ABelowMinValue%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AValueList%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cse%3AName%3Einsat_irw%3C%2Fse%3AName%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fresc%3AValueList%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AAboveMaxValue%3Eextend%3C%2Fresc%3AAboveMaxValue%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3ARange%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AMinimum%3E100%3C%2Fresc%3AMinimum%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AMaximum%3E975%3C%2Fresc%3AMaximum%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fresc%3ARange%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3ANumberOfSegments%3E250%3C%2Fresc%3ANumberOfSegments%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fresc%3ASegment%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fse%3AColorMap%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cresc%3AArrowStyle%3EWIND_BARBS%3C%2Fresc%3AArrowStyle%3E%0A%20%20%20%20%20%20%20%20%20%20%3C%2Fresc%3AColoredSizedArrowSymbolizer%3E%0A%20%20%20%20%20%20%20%20%3C%2Fse%3ARule%3E%0A%20%20%20%20%20%20%3C%2Fse%3ACoverageStyle%3E%0A%20%20%20%20%3C%2FUserStyle%3E%0A%20%20%3C%2FNamedLayer%3E%0A%0A%20%0A%3C%2FStyledLayerDescriptor%3E

barb.txt

guygriffiths commented 4 years ago

Ok, this was a bug in the code. It was not detecting the multiple fields required for generating an appropriate legend. I've fixed this in the develop branch, so it should work if you check out that branch and use it.

ghansham commented 4 years ago

For sure. I will check it out. Thanks a lot for your help.

On Tue, Aug 25, 2020, 20:55 Guy Griffiths notifications@github.com wrote:

Ok, this was a bug in the code. It was not detecting the multiple fields required for generating an appropriate legend. I've fixed this in the develop branch, so it should work if you check out that branch and use it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Reading-eScience-Centre/edal-java/issues/131#issuecomment-680094904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYXFJF2MNQ54KMTWYT26Y3SCPJW5ANCNFSM4QKE66KA .

ghansham commented 4 years ago

I have checked it. It is working fine for my datasets. When is the next release expected?

On Tue, Aug 25, 2020 at 9:19 PM Ghansham Sangar ghanshamsangar@gmail.com wrote:

For sure. I will check it out. Thanks a lot for your help.

On Tue, Aug 25, 2020, 20:55 Guy Griffiths notifications@github.com wrote:

Ok, this was a bug in the code. It was not detecting the multiple fields required for generating an appropriate legend. I've fixed this in the develop branch, so it should work if you check out that branch and use it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Reading-eScience-Centre/edal-java/issues/131#issuecomment-680094904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYXFJF2MNQ54KMTWYT26Y3SCPJW5ANCNFSM4QKE66KA .

guygriffiths commented 4 years ago

Fix released https://github.com/Reading-eScience-Centre/ncwms/releases/tag/ncwms-2.5.0