Hi All,
A linked MMPK in a survey form is so useful for offline basemap. However, will be much better if there is anything similar to pulldata() to work with the mmpk, such as pulling data under geopoint from mmkp to populate other fields while offline...
I believe many member in this community share the same thought with me.
Thanks!
I have not yet been able to pull the lat/long into the geopoint via a concatenate of the lat/long from the csv
I think what you'll need to do for this to pass through and populate a geopoint geometry is to update your local csv to include a field that stores the lat/long in a json sting.
Ive got this working for singlepart polygons into a geoshape, but just not sure on the exact syntax for geopoints.
have a look at this post for what looks like it'll work for geopoint
Im potentially going to try this in leiu of geoshape not working with multipart features.
Hi all.
I've also had some success with the external CSV option in the last week too.
Ive extracted a copy of our reserves dataset to a csv and incorporated a geometry field in there where I've loaded the json geometry rings.
- all the fields can be loaded via pulldata('CSV')
- Use a note field to bring in the geometry as json
| pulldata('CSV','geometry','name',${ReserveSearch}) |
- read the json geometry to the geoshape using
| pulldata("@json", ${geom_json},"geometry") |
You can also use an online+offline toggle using coalesce() where you'll pull online data into a field as the primary source, but if offline, it will pull from CSV.
NOTE geoshape fields only honour singlepart features - Ive been attempting to get multipart to work but there's nothing on this front at the moment.