Title: Pipeline from scala-constructed pointcloud · Issue #22 · PDAL/java · GitHub
Open Graph Title: Pipeline from scala-constructed pointcloud · Issue #22 · PDAL/java
X Title: Pipeline from scala-constructed pointcloud · Issue #22 · PDAL/java
Description: Hello, i couldn't find documentation so far. My problem is that i have a dataset that can be converted to a pointcloud. I do the conversion as follows: def toPointCloud(sweeps: Seq[Tuple3[Coordinate, Double, Seq[XZ]]]): PointCloud = { //...
Open Graph Description: Hello, i couldn't find documentation so far. My problem is that i have a dataset that can be converted to a pointcloud. I do the conversion as follows: def toPointCloud(sweeps: Seq[Tuple3[Coordinat...
X Description: Hello, i couldn't find documentation so far. My problem is that i have a dataset that can be converted to a pointcloud. I do the conversion as follows: def toPointCloud(sweeps: Seq[Tuple3[Coord...
Opengraph URL: https://github.com/PDAL/java/issues/22
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pipeline from scala-constructed pointcloud","articleBody":"Hello,\r\n\r\ni couldn't find documentation so far. My problem is that i have a dataset that can be converted to a pointcloud. I do the conversion as follows:\r\n\r\n```scala\r\n def toPointCloud(sweeps: Seq[Tuple3[Coordinate, Double, Seq[XZ]]]): PointCloud = {\r\n // the Double in the tuple3 is the azimuth.\r\n val points = sweeps.map(gs =\u003e projectSweep(gs._3, gs._2, gs._1)).\r\n reduce((a,b) =\u003e DenseMatrix.horzcat(a,b))\r\n var v = new util.HashMap[String, SizedDimType]()\r\n v += \"X\" -\u003e SizedDimType(DimType.X, java.lang.Double.BYTES, 0)\r\n v += \"Y\" -\u003e SizedDimType(DimType.Y, java.lang.Double.BYTES, java.lang.Double.BYTES)\r\n v += \"Z\" -\u003e SizedDimType(DimType.Z, java.lang.Double.BYTES, 2*java.lang.Double.BYTES)\r\n val bos = ByteBuffer.allocate(points.cols * points.rows * java.lang.Double.BYTES).order(ByteOrder.nativeOrder());\r\n val ios = bos.asDoubleBuffer();\r\n ios.put(points.copy.data)\r\n return new PointCloud(bos.array(), v)\r\n }\r\n\r\n```\r\n\r\ni verified and the pointcloud seems to be okay (i can get points out of it). I'd like to create a PDAL pipeline now using this pointcloud so that i can reproject/persist/... it.\r\n\r\nIs there a way to do this ?\r\n\r\ngreetings,\r\nFrank\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/kervel","@type":"Person","name":"kervel"},"datePublished":"2019-10-25T14:02:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/22/java/issues/22"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b2c78f7-5fb2-809e-177d-563f6ec1d4ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82B4:244FAB:7FBCF0:B522B7:696F8B10 |
| html-safe-nonce | 099a6cea4507dd39790dc887d23210fc6a21eba836f7ee95b173a87b2be83ce4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkI0OjI0NEZBQjo3RkJDRjA6QjUyMkI3OjY5NkY4QjEwIiwidmlzaXRvcl9pZCI6IjY5Nzc2MjM3MDUwMDk0OTA3MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 84f7a51d603afa03fa1eee9f48e7608d71de9cfebc7eb5fd56d08f12b0bd608e |
| hovercard-subject-tag | issue:512535336 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PDAL/java/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a47df70bf754720a37a19f959d6dd11523f9c653881f7128812c2d1ca59ba4ee/PDAL/java/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a47df70bf754720a37a19f959d6dd11523f9c653881f7128812c2d1ca59ba4ee/PDAL/java/issues/22 |
| og:image:alt | Hello, i couldn't find documentation so far. My problem is that i have a dataset that can be converted to a pointcloud. I do the conversion as follows: def toPointCloud(sweeps: Seq[Tuple3[Coordinat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kervel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/PDAL/java git https://github.com/PDAL/java.git |
| octolytics-dimension-user_id | 859797 |
| octolytics-dimension-user_login | PDAL |
| octolytics-dimension-repository_id | 125991459 |
| octolytics-dimension-repository_nwo | PDAL/java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125991459 |
| octolytics-dimension-repository_network_root_nwo | PDAL/java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width