[GeoNode-devel] Display area measurement in ha

Toni Schönbuchner toni.schoenbuchner at csgis.de
Thu Mar 19 04:39:02 PDT 2020


Hi Oliver,

find here the calculation logic:
https://github.com/geosolutions-it/MapStore2/blob/7edadab5ef7adcc559560ef2998b6c98adb74e96/web/client/utils/MeasureUtils.js#L37-L135 <https://github.com/geosolutions-it/MapStore2/blob/7edadab5ef7adcc559560ef2998b6c98adb74e96/web/client/utils/MeasureUtils.js#L37-L135>

and the displaying component 
https://github.com/geosolutions-it/MapStore2/blob/60f82c512e6c37e352b5db00189049c3816209d6/web/client/components/mapcontrols/measure/MeasureComponent.jsx#L90-L96 <https://github.com/geosolutions-it/MapStore2/blob/60f82c512e6c37e352b5db00189049c3816209d6/web/client/components/mapcontrols/measure/MeasureComponent.jsx#L90-L96>
(might be needed for both leaflet and ol, haven't checked)

Further it's needed to check other components like annotations.
Your PR would be very welcome ;)


Cheers,

Toni



> Am 18.03.2020 um 20:00 schrieb geonode-devel-request at lists.osgeo.org:
> 
> Von: EFTAS Oliver Buck <oliver.buck at eftas.com <mailto:oliver.buck at eftas.com>>
> Betreff: [GeoNode-devel] Display area measurement in ha
> Datum: 18. März 2020 um 09:25:11 MEZ
> An: "geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>" <geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>>
> 
> 
> Dear all,
> 
> we would like to display the area  measured using the measurement tool in [ha]. Where could we add this very common unit. Maybe something to add for a future update.
> 
> Thanks
> oliver

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20200319/531035b4/attachment.html>


More information about the geonode-devel mailing list