{"id":18890406,"url":"https://github.com/workingdog/scalaczml","last_synced_at":"2026-02-25T15:30:15.740Z","repository":{"id":57724070,"uuid":"47227036","full_name":"workingDog/scalaczml","owner":"workingDog","description":"A Cesium CZML scala library","archived":false,"fork":false,"pushed_at":"2017-05-09T11:45:04.000Z","size":283,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T06:13:11.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workingDog.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-02T00:52:40.000Z","updated_at":"2021-01-11T00:44:04.000Z","dependencies_parsed_at":"2022-09-02T06:54:26.743Z","dependency_job_id":null,"html_url":"https://github.com/workingDog/scalaczml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2Fscalaczml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2Fscalaczml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2Fscalaczml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2Fscalaczml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workingDog","download_url":"https://codeload.github.com/workingDog/scalaczml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239861695,"owners_count":19709267,"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":[],"created_at":"2024-11-08T07:55:27.606Z","updated_at":"2026-02-25T15:30:15.680Z","avatar_url":"https://github.com/workingDog.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScalaCZML a CZML library in scala \n\nThis library **ScalaCZML** reads and writes [CZML JSON](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Guide) entities and presents them as [Scala](http://www.scala-lang.org/) objects.\n\n[Cesium](http://cesiumjs.org/) is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. \nIt uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, \nand tuned for dynamic-data visualization. \n\n[CZML](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Guide) is a JSON schema for describing a time-dynamic graphical scene, primarily for display in a web browser running Cesium.\nIt describes lines, points, billboards (markers), models and other graphical primitives, and specifies how they change with time.\n\n**ScalaCZML** makes the CZML JSON entities available as Scala objects. The library follows the specifications of reference 1. \nTypically **ScalaCZML** is for server side application development.\n\nThere is also the Cesium library in Scala, [CesiumScala](https://github.com/workingDog/CesiumScala) for client side development.\n\n## References\n \n1) [CZML guide](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Guide)\n\n2) [CZML content](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Packet)\n\n3) [CZML structure](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Structure)\n\n## Dependencies\n\nUsing [Scala](http://www.scala-lang.org/) and the Play-JSON library of the [Play Framework](https://www.playframework.com/)\n\n## Installation and packaging\n\nTo use the last release add the following dependency to your build.sbt:\n\n    libraryDependencies += \"com.github.workingDog\" %% \"scalaczml\" % \"0.5\"\n\nTo compile and generate a jar file from the source:\n\n    sbt package\n\nThe jar file (scalaczml_2.11-0.6-SNAPSHOT.jar) will be in the \"./target/scala-2.11/\" directory.\n\n## Documentation\n\nTo generate the ScalaCZML API documentation, type \"sbt doc\". The documentation will be generated in \n/target/scala-2.11/api directory. **ScalaCZML** mostly follows reference 2 documentation. \n\n## Example\n\n    object Example1 {\n     def main(args: Array[String]) {\n         // read a CZML document from a file\n         val jsonDoc = Source.fromFile(\"/.....test4.czml\").mkString\n         // create a czml object from the json document\n         val czml = CZML[CZMLPacket](jsonDoc)\n         // create a position property\n         val pos = CzmlPositions(9.3, 8.2, 7.1)\n         // create a billboard property with image uri and scale fields\n         val bb = new Billboard(image = \"http://localhost/img.png\", scale = 0.7)\n         // create a czml packet\n         val packet = new CZMLPacket(\"test packet\", HashSet[CzmlProperty](pos, bb))\n         // add the packet to the existing czml object\n         czml.add(packet) // or czml.packets += packet\n         // convert the czml object to json\n         val jsczml = Json.toJson(czml)\n         // write the czml as a json document to file (here to System.out)\n         Util.writeCzmlToFile(czml)\n         // alternatively\n         //  Util.writeJsToFile(Json.prettyPrint(jsczml))\n     }\n    }\n    \n## Status\n\nusable\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkingdog%2Fscalaczml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkingdog%2Fscalaczml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkingdog%2Fscalaczml/lists"}