Create hosted view from join (with code)

213
0
01-29-2024 01:00 PM
mikAMD
by
Occasional Contributor II

In map viewer classic, you can join 2 layers/tables and optionally add statistics and this generates a hosted view, meaning that it is updated based on the underlying source data. This costs no credits.

In map viewer, you can also perform a join with statistics (I believe it calls this function), it consumes credits and I don't believe it updates the data (since it is not a view).

Is there anyway to programmatically perform a join to create a hosted view (either with REST JS or Python API) ?

I found this thread but it's getting a little old and seems like theres way too many steps.

I also found the python create_view() function, but I'm unsure if you can make it from a join and if it uses credits.

Then there is the "advanced view" in the addToDefinition function, but yet again, I'm unsure if this will produce what I want.

Apologies if this has been answered previously.

Thanks!

 

0 Kudos
0 Replies