National-Forestry-Authority / brms

1 stars 1 forks source link

Display points on geolayers #105

Open peacog opened 1 year ago

peacog commented 1 year ago

Currently we can add POLYGON WKT data to the geometry field in geolayers and have the lines displayed on the map. We also need to be able to enter and displayed MULTIPOINT data.

Related to #96 https://github.com/National-Forestry-Authority/brms/issues/96#issuecomment-1672907445

peacog commented 1 year ago

Hi @LeScruf. We now have multipoint data showing on maps. Check it out on Abera on staging: https://brms.stg.envs.utils.nfa.go.ug/central-forest-reserve/abera. Point shapes and colours can be changed if necessary.

FYI I imported the multipoint from from KML with this structure:

... rest of KML
    <MultiGeometry>
      <Point><coordinates>32.3778727734431,2.79987462362711</coordinates></Point>
      <Point><coordinates>32.3635401963687,2.79969810829196</coordinates></Point>
      <Point><coordinates>32.3633732997443,2.80833129546924</coordinates></Point>
      <Point><coordinates>32.3624476865542,2.85618526508658</coordinates></Point>
      <Point><coordinates>32.3624155581996,2.85784868815201</coordinates></Point>
      <Point><coordinates>32.3650509383975,2.85785609438402</coordinates></Point>
      <Point><coordinates>32.3795749377667,2.8578971554185</coordinates></Point>
      <Point><coordinates>32.3796114213696,2.79989590621404</coordinates></Point>
      <Point><coordinates>32.3778727734431,2.79987462362711</coordinates></Point>
    </MultiGeometry>
... rest of KML
LeScruf commented 1 year ago

Hi @peacog - great that this is now working. Thank you. It would be good to upload an example with correct kml geometry for each layer - I will get onto that early this coming week I hope. It would also be helpful to review and agree the symbology with Edward - so that he is happy with is (symbols and colours for the points).