![]() ![]() ![]() This used to work last year, but seems to not be working any more.įurther, the zipped shapefiles are able to be added using the "Add Data" tool in a Web Appbuilder product we have. To further clarify, I am running this in an ArcGIS Notebook. #download shapefile and create a featureset.įrom arcgis.features import GeoAccessor, GeoSeriesAccessorĪttachment_folder = os.path.join(os.getcwd(), "attachments")įile_path = download_attachment(layer=layer, oid=objectid, attachmentid=attachmentid, download_folder=attachment_folder)Įxtract_path = os.path.join(attachment_folder, f"") Here's the error that I'm getting:ĭef extract_geometry_from_shp(layer, objectid, attachmentid): When processing the zipped shapefile, I'm running into an error when using the _featureclass method. I'm running a script to process an attached zipped shapefile, which converts it to a featureset to append into a hosted feature service. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |