Wep Map Viewer

629
10
Jump to solution
07-11-2021 05:01 AM
Labels (1)
HamzaM
by
New Contributor III

I want to connect a database to web map viewer but when add the file it only uses the data imported at that time if i edit the file or add more data to it, i have to import it again manually, is there a way to have the data updated automatically and visualized on the map based on the parameters i have already set?

@ColinWerle1 @VinceAngelo @Robert_LeClair Can any of you help?

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

I forgot to mention an obvious route of using Pro and arcpy to update the hosted layer as a scheduled windows task.

https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/

also if you want to pursue the Python API method - https://www.esri.com/arcgis-blog/products/analytics/analytics/updating-your-hosted-feature-services-...

 

 

 

View solution in original post

0 Kudos
10 Replies
DavidPike
MVP Frequent Contributor

Are we talking about ArcGIS Server?

0 Kudos
HamzaM
by
New Contributor III

Actually i am new at this, so i was trying to do it using web map viewer is it possible or do i have to use ArcGIS Server?

0 Kudos
DavidPike
MVP Frequent Contributor

I would guess you mean ArcGIS Online Map Viewer.  You'd need a map/feature service to be published from your database and GIS server - then added to ArcGIS Online, or some automated method to update the hosted Geodatabase/Layer using an API or application like FME.

There's no way to directly connect your database to AGOL.

0 Kudos
HamzaM
by
New Contributor III

Yes, I mean ArcGIS Online Map Viewer. Is there is a tutorial available to be able follow these steps.

0 Kudos
DavidPike
MVP Frequent Contributor

I forgot to mention an obvious route of using Pro and arcpy to update the hosted layer as a scheduled windows task.

https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/

also if you want to pursue the Python API method - https://www.esri.com/arcgis-blog/products/analytics/analytics/updating-your-hosted-feature-services-...

 

 

 

View solution in original post

0 Kudos
HamzaM
by
New Contributor III

Will give them a try, Thanks a lot for your help 🙂

0 Kudos
HamzaM
by
New Contributor III

It worked, thanks a lot for your help.

HamzaM
by
New Contributor III

Its working when i use the cmd to overwrite the file but when i use the task scheduler nothing happens.

task scheduler.PNG

its already 4:17 and it never ran the task.

0 Kudos
Robert_LeClair
Esri Frequent Contributor

David is correct with ArcGIS Online and the Web Map Viewer.  Now IF you had ArcGIS Enterprise (ArcGIS Server, Portal, ArcGIS Datastore and Web Adaptors) installed on your system, you could share a web layer from ArcGIS Pro that references an enterprise geodatabase feature class.  Then as the data is updated either via the ArcGIS Enterprise Map Viewer or the feature class itself, all apps would be current.  You can reference that workflow here - but David's workflow for your configuration is best for now.  Good luck!

0 Kudos