Hello
I'm developing an application using the ArcGis API for Javascript. Right now I need to know if it's possible to upload a shapefile and save it permanently in my database as a new layer. I already have the temporary shapefile upload page (like this sample: Add shapefile | ArcGIS API for JavaScript 3.22 ). A user can upload a shapefile and see all the geometry of the layer and the related information. But I want to save it permanently. It's this possible? Also, if this is not possible with JavaScript, can it be done with another API? Like the ArcGis API for Python or the others? I'm working with JS, but if there is a solution with another languaje, I'll use it. Thank you very much for the help. I really appreciate any answer to this problem
Solved! Go to Solution.
Hola oscar molina ,
Quizás hayas visto la respuesta de Alexander Daniel Mena a la pregunta Filtrar en EditorWidget de acuerdo a las capas visibles en el mapa . Creo que también para ti es muy relevante.
Estamos pendientes a cualquier duda que tienes.
Hi oscar molina ,
First of all thank you for participating and asking a question in our group Comunidad Esri Colombia . We created this community to enable our users to ask questions in Spanish. I notice that English is not an obstacle for you, so you could post your question in the ArcGIS API for JavaScript space, but I will continue in Spanish with some pointers and additional questions to understand what you are trying to achieve.
Hola, oscar molina ,
Mencionaste en tu pregunta que quieres almacenar el shapefile en tu base de datos. Nos puedes indicar que tipo de base de datos tienes y si está habilitado para almacenar datos especiales con componentes ArcGIS? También me gustaría entender que requerimientos específicos tienes para optar por desarrollar una solución en vez de configurar la solución con por ejemplo el Web AppBuilder for ArcGIS | ArcGIS ? También en caso que con configuración no se logre habilitar todas las funcionalidades que se requiere, puede ser bueno para tomar el WAB como base y desarrollar un widget con la funcionalidad que hace falta (ver: Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers ). Un ejemplo de un Widget para agregar un Shapefile puedes encontrar acá: https://community.esri.com/thread/163051
Mencionaste este ejemplo para subir un shapefile y visualizarlo en un aplicación web: Add shapefile | ArcGIS API for JavaScript 3.22 . En el momento de que un usuario puede subir un shapefile, cada shapefile en teoría puede tener un esquema distinto. Para almacenar shapefiles con distintos esquemas de datos en una base de datos central, en teoría cada shapefile generaría su propio featureclass. En caso que los usuarios siempre utilicen el misma esquema (geometría, referencia espacial, campos, etc) se puede usar un solo featureclass para almacenar los datos. Sin embargo, sería necesario incluir una validación del esquema antes de intentar almacenar los datos en la base de datos.
Hola oscar molina ,
Quizás hayas visto la respuesta de Alexander Daniel Mena a la pregunta Filtrar en EditorWidget de acuerdo a las capas visibles en el mapa . Creo que también para ti es muy relevante.
Estamos pendientes a cualquier duda que tienes.
Muchas gracias fue de gran ayuda