GithubHelp home page GithubHelp logo

geotum's People

Contributors

pducks32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geotum's Issues

Coordinate conversion help

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 ๐Ÿ˜•

Cannot install from Cocoapods

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.

Minimum platform for iOS missing in Package.swift -> Does not compile

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'

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.