pducks32 / geotum Goto Github PK
View Code? Open in Web Editor NEWConvert Lat/Lon to UTM and vise versa
License: MIT License
Convert Lat/Lon to UTM and vise versa
License: MIT License
Hi! I came across this library a few weeks ago and was just trying to integrate it within a project of mine. I'm running into some issues though was wondering if you might be able to help me understand them ๐ I unfortunately don't have a lot of experience dealing with coordinate systems in general.
I'm developing a library dealing with our local public transport provider in Dresden, Germany. Unfortunately their API doesn't provide WGS84 coordinates, but as far as I've figured out something called GaussKrueger. They look a lot like the UTM points in your readme, which is the entire reason I'm here.
I am however not getting anything sensible when trying to convert them using Geotum. Having looked at the tests I've tried the following.
let utmCoordinate = UTMPoint(easting: 5656979, northing: 4621548, zone: 5, hemisphere: .northern)
let wgsCoordinate = UTMConverter(datum: .wgs84).coordinateFrom(utm: utmCoordinate)
// LatLonCoordinate(latitude: 0.517059907625437 rad, longitude: -1.79271322321059 rad)
Interestingly enough I believe that Dresden should be in zone 5, but their coordinates appear to be based in zone 4 (kiliankoe/DVB#20 (comment)). Using zone 4 in the example above also doesn't lead to an output I can understand.
The GK4 coordinates listed above should correlate with 51.0411199, 13.7308041.
On other platforms I've been able to use wrappers for proj4 to handle the conversion, but that unfortunately doesn't really seem to be an option for the Swift ecosystem.
I'd be extremely grateful for any kind of input on this! I've been stuck on this for several months now ๐
I get this error when I run pod install.
My project caters for iOS 9.0 and above.
What is the minimum deployment target for Geotum?
pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Geotum":
In Podfile:
Geotum
Specs satisfying the `Geotum` dependency were found, but they required a higher minimum deployment target.
I'm Switching from Cocoapods to Swift Package Manager in an iOS project.
I get many compiler errors similar to
'converted(to:)' is only available in iOS 10.0 or newer
The cause appears to be that Package.swift declares requirements for MacOS but not for iOS:
platforms: [ .macOS(.v10_12) ],
What is missing is something like
.iOS("10.0"),
PodSpec has the correct platform requirements:
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.swift_version = '5.0'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.