geosolutions-it / jai-ext

Java Advanced Imaging Open Source Replacement Wannabe
Apache License 2.0
89 stars 38 forks source link

#260 Capability to calculate percentages in Classification #261

Closed taba90 closed 4 years ago

taba90 commented 4 years ago

Issue https://github.com/geosolutions-it/jai-ext/issues/260

Percentages to the EqualAreaBreaksOpImage class have not been added due to the fact that geoserver compute equal intervals inside sld module

aaime commented 4 years ago

@taba90 this is a stand alone library, not a tool specifically designed to work with the SLD service. Please either make the code work consistently, or make it throw an exception explaining why percentages are not supported in EqualIntervalBreaksOpImage (EqualAreaBreaksOpImage I believe does not exist, your link pointed to the equal interval one) and how to compute them efficiently.

taba90 commented 4 years ago

Thanks for the review. I've added also percentages computation for EqualInterval. I made EqualIntervalBreaksOpImage relying on the NaturalClassification class if percentages are required in order to have values available for percentages computing.