Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Hyloba

macrumors 6502
Original poster
Sep 30, 2014
395
234
Excuse my newness, but is there any way an app can export input data to a shapefile .shp?

Thanks in advance!
 
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.
 
  • Like
Reactions: daflake
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.
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..
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.