GithubHelp home page GithubHelp logo

esri / field-maps-scripts Goto Github PK

View Code? Open in Web Editor NEW
51.0 10.0 13.0 1.95 MB

A set of scripts and notebooks to help administer maps and workflows for ArcGIS Field Maps.

License: Apache License 2.0

Python 3.24% Jupyter Notebook 96.15% HTML 0.61%
data-management python fieldwork

field-maps-scripts's Introduction

Field Maps Scripts

A set of Python scripts and notebooks to help configure maps and manage data for ArcGIS Field Maps.

Features

Scripts

Functionality Script
Copy Form Between Maps copy_form_between_maps.py
Download Attachments from Feature Layer download_attachments.py

Notebooks

Requirements

  • Python 3.6+
  • ArcGIS API for Python 1.8.4+
  • ArcGIS Field Maps (web and mobile applications)
  • ArcGIS Pro 2.5+ (Add GPS Metadata Fields (Pro) only)

Instructions

This repository requires the ArcGIS API for Python version 1.8.4 or greater to run. We recommend setting up your local environment via Anaconda.

  1. Install Anaconda
  2. Run conda env create --file environment.yml to create the virtual environment with the correct dependencies
  3. Run conda activate field-maps-scripts to activate the environment
  4. (Optional - dev only) Configure pre-commit to run flake8 linting on pushes
    • pre-commit install --hook-type pre-push

Resources

Issues

Although we do our best to ensure these scripts and notebooks work as expected, they are provided as is and there is no official support.

If you find a bug, please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2022 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

field-maps-scripts's People

Contributors

apulverizer avatar doug-m avatar justincolville avatar niravi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

field-maps-scripts's Issues

Add GPS Metadata Capture Domains

Describe the bug
If I try to run the Add GPS Metadata capture for line and polygon layers on an existing line hosted feature layer that has a missing domain, the notebook fails to update with the error

image

To Reproduce

  1. Create a new line hosted feature layer on ArcGIS Online with no GPS metadata fields.
  2. Run the notebook to create the GPS metadata fields.
  3. Through ArcGIS Online, click delete list in the field properties for Worst fix type.
  4. Re-run the script.
  5. Error pictured above is shown, domain is not updated.

Expected behavior
The missing domain for Worst fix type should be added back.

Virtual environment issue

Running conda env create --file environment.yml to create the virtual environment completes successfully (link to full terminal output), however when trying to run proswap field-maps-scripts I get the following error:

proswap: C:\Program Files\ArcGIS\Pro\bin\Python\envs\field-maps-scripts environment doesn't appear to contain ArcGIS Pro

In ArcGIS Pro when I go to Package Manager > Environment Manager I get the following error:
Broken Environment. Cannot be activated.
image

Additionally when activating the environment in the Python Command prompt I also get this message:

(arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3>activate field-maps-scripts
Current directory is another environment, changing directory to active environment.

(field-maps-scripts) C:\Program Files\ArcGIS\Pro\bin\Python\envs\field-maps-scripts\etc\conda\activate.d>rem proj-data is installed because its license was copied over

Is there anything I'm missing? Any help will be appreciated.

To Reproduce
Steps to reproduce the behavior:

  1. Install ArcGIS Pro 3.0
  2. Run conda env create --file environment.yml to create the virtual environment with the correct dependencies
  3. Run activate field-maps-scripts to activate the environment
  4. Run proswap field-maps-scripts to activate the environment
  5. See error
  6. Open ArcGIS Pro, go to Package Manager > Environment Manager
  7. See error

Expected behavior
A working virtual environment which can be activated in ArcGIS Pro.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.