Select to view content in your preferred language

Any similar function to pulldata() to work with MMPK?

2278
11
07-09-2023 02:33 PM
lannguyentl
Regular Contributor

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!

Tags (2)
11 Replies
MarkWILSON_LLS
Regular Contributor

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

https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-geopoint-from-a-feature-servi...

Im potentially going to try this in leiu of geoshape not working with multipart features.

0 Kudos
MarkWILSON_LLS
Regular Contributor

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. 

0 Kudos