Can an app export data to shapefile .shp?

Discussion in 'iOS Programming' started by Hyloba, Jun 13, 2017.

  1. Hyloba macrumors 6502

    Joined:
    Sep 30, 2014
    #1
    Excuse my newness, but is there any way an app can export input data to a shapefile .shp?

    Thanks in advance!
     
  2. dantastic macrumors 6502a

    dantastic

    Joined:
    Jan 21, 2011
    #2
    I don't know of any 3rd party library that is able to handle shapefiles. The best way to deal with this is to use an online converter to convert to geoJson. iOS is well able to handle JSON.
     
  3. Hyloba thread starter macrumors 6502

    Joined:
    Sep 30, 2014
    #3
    Good to know iOS has no problem with JSON! But for work we have a windows program that exports our data to a shapefile if necessary. It's not often necessary, but still. It's a horrible program though and I'm thinking about making an iOS app in place. However I am not familiar with swift or xcode..
     
  4. dantastic macrumors 6502a

    dantastic

    Joined:
    Jan 21, 2011
    #4
    Depending on the size and detail of the area you could be having to churn quite a lot of data. Even though modern iPhones are pretty fast you could still find that you need to process the file for several seconds, could be 30 seconds even.

    If you want an iOS app to convert geo data to shapefiles for use somewhere else I'd recommend against, it doesn't make any sense. Write a tool that can run on a server instance (too many options to mention).

    GeoJson makes sense if you are downloading geo data to your app from a server. If you are going to preload the geo data you are much better preloading a sqlite file where the data has already been parsed into the correct format for use in your app.
     
  5. bjet767 macrumors 6502a

    Joined:
    Oct 2, 2010

Share This Page