Coder Social home page Coder Social logo

offline-data-collection-ios's Introduction

offline-data-collection-ios

Offline Inspections Sample - Shown at the User Conference 2011 Plenary Demo

This sample demonstrates how you can build a complete, custom application that allows users to collect features when the device does not have network connectivity, and then synchronize those changes when connectivity is restored.

The Inspections application works in both connected and disconnected environments. Both environments allow the user to perform inspections on features within a user-defined inspection layer. The user will download the feature data while connected and can then bring the application into an offline mode. The application will populate an inspection form with any related data from the feature being inspected. The application persists any collected data until the user regains network connectivity and can post the inspections to their server.

The sample uses a local tiled layer to display map contents of a tile package (Imagery.tpk) included within the application bundle. Tile package is a new format available from ArcGIS 10.1 onwards.

App

Features

  • Offline data collection.
  • Offline provisioned Maps
  • Adds features to map without network connectivity

Instructions

  1. Download and unzip the .zip file or clone the repo.
  2. Open with xCode and replace it with your provision file.

New to Github? Get started here.

Requirements

  • xCode 4.3 and above
  • A little background with iPhone development and Objective-C
  • Experience with the ArcGIS Runtime SDK for iOS would help.

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Anyone and everyone is welcome to contribute.

Licensing

Copyright 2012 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.txt file.

[](Esri Tags: iOS Offline Data Collection) [](Esri Language: Objective-C)

offline-data-collection-ios's People

Contributors

alpascual avatar

Stargazers

孫匯洲 avatar Vlad Bokov avatar Tony Ma avatar ak avatar Bowon Chung avatar AddressXception avatar  avatar Hery avatar Matt George avatar  avatar Neil North avatar Zws avatar  avatar  avatar

Watchers

Nicholas Furness avatar Scott avatar Christopher Helm avatar  avatar Eric Ito avatar Bjorn Svensson avatar James Cloos avatar  avatar Dave Umrysh avatar Gagandeep Singh avatar Divesh Goyal avatar Philip Ridgeway avatar  avatar Matt George avatar Mary Harvey avatar Mark Dostal avatar Phil Gruenler avatar Nimesh Jarecha avatar Suganya Baskaran avatar Amit Khullar avatar Jayprakash Dubey avatar David Lednik avatar  avatar Garima Dhakal avatar Ting avatar David Feinzimer avatar  avatar

offline-data-collection-ios's Issues

Code halted at autoreleasepool

I have a strange issue with a version of this code that I've only modified in minor ways. The inspections run fine using a feature class identical to the tank data (http://test.maps.kytc.ky.gov/ArcGIS/rest/services/Pavement_iOSTestO/FeatureServer/0). However, I get a crash when I modify the feature class to include fields required in my app (http://test.maps.kytc.ky.gov/ArcGIS/rest/services/Condition_Survery_P/FeatureServer/0). The crash is odd as there is no error message. The IDE just halts on the line below. Stepping over this just crashes the app. All of the variables seem okay. I assume it has to do with one of the attribute fields being required, but I am unsure which. I plan to add all the attributes from tanks and remove them one at a time to see if that solves it. Any ideas what might be happening?

int retVal = UIApplicationMain(argc, argv, nil, nil); (from int main in main.m)

Compile Issue

I tried to compile a fresh copy of this code and it won't compile. I think it is related to the ESRI runtimes. Any idea what version this app was built for? I have the original code from ESRI's plenary demo and it compiles fine with the latest runtimes.

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.