forked from OSGeo/PROJ
-
Notifications
You must be signed in to change notification settings - Fork 2
Usage
Brian Osborn edited this page Apr 26, 2024
·
9 revisions
pod 'PROJ', '~> 9.4.0'
If you use use_modular_headers! in your Podfile, you may need to disable modular headers for PROJ.
pod 'PROJ', '~> 9.4.0', :modular_headers => false
Or when the dependency is inherited from another Pod:
pod 'PROJ', :modular_headers => false
Add libc++.tbd and libsqlite3.tbd to project target Frameworks and Libraries
Note: When using PROJ through another library such as proj-ios, the files should be included already.

PROJ proj.db - search paths
Set the PROJ database path
NSString *databasePath = [PROJIOUtils databasePath];
proj_context_set_database_path(PJ_DEFAULT_CTX, [databasePath UTF8String], NULL, NULL);
Copy Database from PROJ Pod (Pods/PROJ/proj.db) to Current Directory
#import "proj.h"
projections-ios library