Select to view content in your preferred language

How to get geometry data from external database dynamically

1667
13
Jump to solution
10-28-2022 12:54 AM
EmrahAydemir
Emerging Contributor

Hi, i have a PostgreSQL database. Hundreds of geometry data are added to this database daily, independent of Arcgis. There is a geometry column with Postgis feature. Is there a way to dynamically pass the data here to Arcgis Server? I want to display the data (inserted from NodeJS server) in Arcgis Server Map Server.

 

Note: i added PostgreSQL Database to Arcgis Server as a data store .

13 Replies
EmrahAydemir
Emerging Contributor

Unfortunately it didn't work. The steps in the link you posted are the same as I normally do. But every time new data is added I need to republish it via arcmap. I can connect to the database via arcmap. I have added the database manually before. I don't know how to connect it directly to the map server

0 Kudos
George_Thompson
Esri Notable Contributor

Another potential option would be to bulk publish from that datastore connection; https://enterprise.arcgis.com/en/portal/latest/use/bulk-publish-arcgis-server-feature-layers.htm

Now you must know that this may take a while and could crash the server machine depending on how many layers. It will create a map service and feature service (read-only but can be updated) for every layer in the database. This is the only way I could think of doing it without Pro, but you would not have some of the finer details for publishing.

--- George T.
0 Kudos
EmrahAydemir
Emerging Contributor

Just as I was about to go to sleep, this came to my mind: I am adding data to postgis database via nodejs. Is there a way to add layers to Arcgis Server via nodejs instead of trying to connect database directly to Arcgis Server? In this way, while adding a layer to the postgis server, it will also be added to the Arcgis Server.

0 Kudos
Scott_Tansley
MVP Regular Contributor

Cross-referencing to your other discussion for the solution.  https://community.esri.com/t5/arcgis-enterprise-questions/how-to-add-new-polygon-to-arcgis-server-fr... 

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos