{"id":15107427,"url":"https://github.com/opensmock/geotools","last_synced_at":"2025-06-10T22:37:10.059Z","repository":{"id":180382720,"uuid":"665052199","full_name":"OpenSmock/GeoTools","owner":"OpenSmock","description":"Geographic Tools as Coordinates, Kinematics and Geodesic utilities for Map Projection.","archived":false,"fork":false,"pushed_at":"2024-09-19T11:57:02.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-25T21:24:24.500Z","etag":null,"topics":["absolute-coordinates","cartesian-coordinates","coordinates","course","geodesic","geodesics","geodesics-equation","geographic","heading","kinematics","open-smock","pharo","polar-coordinates","position","smalltalk","smock","speed"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenSmock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T10:27:07.000Z","updated_at":"2024-09-19T11:57:01.000Z","dependencies_parsed_at":"2023-11-30T19:28:05.157Z","dependency_job_id":"ecc2fe50-3cff-4372-9dc2-6a494ee14bdd","html_url":"https://github.com/OpenSmock/GeoTools","commit_stats":null,"previous_names":["opensmock/geotools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FGeoTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FGeoTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FGeoTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSmock%2FGeoTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSmock","download_url":"https://codeload.github.com/OpenSmock/GeoTools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871951,"owners_count":16554470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["absolute-coordinates","cartesian-coordinates","coordinates","course","geodesic","geodesics","geodesics-equation","geographic","heading","kinematics","open-smock","pharo","polar-coordinates","position","smalltalk","smock","speed"],"created_at":"2024-09-25T21:24:29.557Z","updated_at":"2025-06-10T22:37:10.038Z","avatar_url":"https://github.com/OpenSmock.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 13](https://img.shields.io/badge/Pharo-13-%23aac9ff.svg)](https://pharo.org/download)\n\n[![License](https://img.shields.io/github/license/openSmock/GeoTools.svg)](./LICENSE)\n[![Unit tests](https://github.com/OpenSmock/GeoTools/actions/workflows/CI.yml/badge.svg)](https://github.com/OpenSmock/GeoTools/actions/workflows/CI.yml)\n\n# GeoTools\n\nGeographic Tools for Pharo as `Coordinates`, `Kinematics` and `GeodesicUtilities`.\n\n## Coordinates tools\n\nUse these classes to store informations on geographical position in different coordinates system.\n\n### Absolute coordinates\n\nUse ```AbsoluteCoordinates``` to store an absolute coordinate.\n\nAn absolute coordinate is defined by ```latitude``` (degrees or radians), ```longitude``` (degrees or radians) and ```altitude``` (meters).\n\nExample : create absolute coordinates.\n\n```smalltalk\ncoord1 := AbsoluteCoordinates latitudeInDegrees: 48.3897 longitudeInDegrees: -4.48333 altitudeInMeters: 52. \"Brest french city position\"\ncoord2 := AbsoluteCoordinates latitudeInDegrees: 48.8667 longitudeInDegrees: 2.33333 altitudeInMeters: 79. \"Paris french city position\"\n```\n\n### Cartesian coordinates\n\nUse ```CartesianCoordinates``` to store a cartesian coordinate.\n\nCartesian coordinate is build by ```x``` (meters), ```y``` (meters) and ```z``` (meters).\n\nExample : create cartesian coordinates.\n\n```smalltalk\ncoord := CartesianCoordinates xInMeters: 2 yInMeters: 5 zInMeters: 1.\n```\n\n### Polar coordinates\n\nUse ```PolarCoordinates``` to store a polar coordinate.\n\nPolar coordinate is build by ```azimuth``` (radians), ```distance``` (meters) and ```elevation``` (meters).\n\nExample : create polar coordinates.\n\n```smalltalk\ncoord := PolarCoordinates azimuthInRadians: 0 distanceInMeters: 50 elevationInMeters: 20.\n```\n\nConvert a polar coordinate into cartesian coordinates.\n\n```smalltalk\npolarCoord := PolarCoordinates zero. \"This constructor create a polar coordinates initialized at zero point\"\ncartCoord := polarCoord asCartesianCoordinates.\n```\n\n### Common Features for all coordinate types\n\nTo know if a coordinate is valid :\n\n```smalltalk\ncoord isValid.\n```\n\nTo know if a coordinate is empty :\n\n```smalltalk\ncoord isEmpty.\n```\n\nThere are a lot of functionality to discover.\n\n## Kinematics tools\n\nUse ```Kinematics``` class to store informations on ```course``` (direction in degrees or radians), ```speed``` (m/s, knots) and ```heading``` (orientation in degrees or radians).\n\nExample : create kinematics information.\n\n```smalltalk\nkin := Kinematics new.\nkin groundSpeedInMetersPerSeconds: 50.\nkin courseInDegrees: 180.\nkin headingInDegrees: 2.\n```\n\n## Map projection \n\n### Geodesic Utilities class\n\nUse ```GeodesicUtilities``` to compute angle and distance between Geodesic (lat/long) coordinates, taking in account the earth curve.\n\n```smalltalk\n\"Brest french city position\"\ncoord1 := AbsoluteCoordinates latitudeInDegrees: 48.3897 longitudeInDegrees: -4.48333 altitudeInMeters: 52.\n\"Paris french city position\"\ncoord2 := AbsoluteCoordinates latitudeInDegrees: 48.8667 longitudeInDegrees: 2.33333 altitudeInMeters: 79.\n\n\"Return an azimuth in Radians between the positions of these two cities depending Earth curve\"\nGeodesicUtilities convertGeodesicToAzimuthInRadiansFrom: coord1 to: coord2.\n```\n\n## Installation\n\nTo install GeoTools on your Pharo image you can just execute the following script:\n\n```smalltalk\nMetacello new\n   baseline: 'GeoTools';\n   repository: 'github://OpenSmock/GeoTools:main/src';\n   load.\n```\n\n## Dependencies\n\n- [OpenSmock(Core)](https://github.com/OpenSmock/OpenSmock)\n- [Units](https://github.com/zweidenker/Units)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensmock%2Fgeotools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensmock%2Fgeotools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensmock%2Fgeotools/lists"}