Gaia3D / mago-3d-tiler

This is the official repository of mago-3d-tiler.
https://seoul.gaia3d.com:10903/
Mozilla Public License 2.0
162 stars 19 forks source link

Tiles not generating for MultiLineStringZ data #24

Open Ananthu-Prakash opened 2 months ago

Ananthu-Prakash commented 2 months ago

Hello, I am trying to generate underground 3d tiles with multiline string data with z but the tiles are not generating for the data set. I am attaching the screen shot, shapefile and log of the same below for your reference.

~/Desktop/mago_3d_tiler$ java -jar mago-3d-tiler-1.7.0-natives-linux.jar -i amc/water_pipelines.shp it "shp" -o output/testt -c 32643 -hc height -rc Diameter -d WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

┳┳┓┏┓┏┓┏┓ ┏┓┳┓ ┏┳┓┳┓ ┏┓┳┓ ┃┃┃┣┫┃┓┃┃ ┫┃┃ ┃ ┃┃ ┣ ┣┫ ┛ ┗┛┗┗┛┗┛ ┗┛┻┛ ┻ ┻┗┛┗┛┛┗ 3d-tiler(1.7.0) by Gaia3d, Inc.

[INFO][11:13:40][mago.OptionsCorrector(findInputFormatType:88)]::Auto Selected Format type: SHP

[DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:331)]::Input Path: amc/water_pipelines.shp [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:332)]::Output Path: output/testt [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:333)]::Input Format: SHP [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:334)]::Output Format: B3DM [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:335)]::Terrain File Path: null [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:336)]::Instance File Path: amc/water_pipelines.shp/instance.dae [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:337)]::Log Path: null [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:338)]::Recursive Path Search: false

[DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:341)]::Coordinate Reference System: EPSG:32643 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:342)]::Proj4 Code: null [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:343)]::Minimum LOD: 0 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:344)]::Maximum LOD: 3 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:345)]::Minimum GeometricError: 16 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:346)]::Maximum GeometricError: 2147483647 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:347)]::PointCloud Point Limit: 65536 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:348)]::PointCloud Scale: 2 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:349)]::PointCloud Skip Interval: 4 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:350)]::Debug Mode: true [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:351)]::Debug LOD: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:352)]::Debug GLB: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:353)]::classicTransformMatrix: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:354)]::Multi-Thread Count: 2

[DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:358)]::Swap Up-Axis: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:359)]::Flip Up-Axis: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:360)]::RefineAdd: true [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:361)]::Flip Coordinate: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:362)]::Zero Origin: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:363)]::Auto Up-Axis: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:364)]::Ignore Textures: false [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:365)]::LargeMesh: false

[DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:369)]::Name Column: name [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:370)]::Height Column: height [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:371)]::Altitude Column: altitude [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:372)]::Absolute Altitude: 0.0 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:373)]::Minimum Height: 1.0 [DEBUG][11:13:40][mago.GlobalOptions(printDebugOptions:374)]::Skirt Height: 4.0

[INFO][11:13:40][mago.Mago3DTiler(execute:23)]::Starting process flow: BatchedProcessModel [INFO][11:13:40][process.TilingPipeline(createTemp:158)]::[Pre] Created temp directory in /home/rachit/Desktop/mago_3d_tiler/output/testt/temp [INFO][11:13:40][process.TilingPipeline(startPreProcesses:64)]::[Pre] Start the pre-processing. [INFO][11:13:40][process.TilingPipeline(startPreProcesses:68)]::[Pre] Loading all files. [INFO][11:13:40][process.TilingPipeline(startPreProcesses:70)]::[Pre] Finished loading all files [INFO][11:13:41][shape.ShapeConverter(convert:94)]:: - Total Shape Feature Count : 80458 [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (0/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (1/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (2/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (3/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (4/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (5/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (6/100)%

[DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (14/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (15/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (16/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (17/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (18/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (19/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (20/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (21/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (22/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (23/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (24/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (25/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (26/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (27/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (28/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (29/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (30/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (31/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (32/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (33/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (34/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (35/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (36/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (37/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (38/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (39/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (40/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (41/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (42/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (43/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (44/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (45/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (46/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (47/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (48/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (49/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (50/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (51/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (52/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (53/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (65/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (66/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (67/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (68/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (69/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (70/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (71/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (72/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (73/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (74/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (75/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (76/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (77/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (78/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (79/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (80/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (81/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (82/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (83/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (84/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (85/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (86/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (87/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (88/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (89/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (90/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (91/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (92/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (93/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (94/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (95/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (96/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (97/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (98/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (99/100)% [DEBUG][11:13:41][shape.ShapeConverter(convert:102)]:: - Shape Feature Loading progress. (100/100)% [ERROR][11:13:42][process.TilingPipeline(executeThread:179)]::Failed to execute thread. java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke "com.gaia3d.basic.structure.GaiaNode.setName(String)" because "node" is null at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?] at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:102) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:50) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.command.BatchedProcessModel.run(BatchedProcessModel.java:68) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:24) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) [mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] Caused by: java.lang.NullPointerException: Cannot invoke "com.gaia3d.basic.structure.GaiaNode.setName(String)" because "node" is null at com.gaia3d.converter.geometry.shape.ShapeConverter.convertPipeLineStrings(ShapeConverter.java:430) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:248) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:57) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.converter.BatchedFileLoader.loadScene(BatchedFileLoader.java:35) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.converter.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:111) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:80) ~[mago-3d-tiler-1.7.0-natives-linux.jar:1.7.0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke "com.gaia3d.basic.structure.GaiaNode.setName(String)" because "node" is null at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:180) at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:102) at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:50) at com.gaia3d.command.BatchedProcessModel.run(BatchedProcessModel.java:68) at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:24) at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke "com.gaia3d.basic.structure.GaiaNode.setName(String)" because "node" is null at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) ... 5 more Caused by: java.lang.NullPointerException: Cannot invoke "com.gaia3d.basic.structure.GaiaNode.setName(String)" because "node" is null at com.gaia3d.converter.geometry.shape.ShapeConverter.convertPipeLineStrings(ShapeConverter.java:430) at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:248) at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:57) at com.gaia3d.converter.BatchedFileLoader.loadScene(BatchedFileLoader.java:35) at com.gaia3d.converter.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:111) at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:80) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)

sdson commented 2 months ago

Hi @Ananthu-Prakash!

There was an error in the code, but the problem has been resolved. For now, the code has only been updated in the 'develop' brench. The SHP file must contain a field called 'radius' for the converter to work correctly. We also still need to define the variables we should use, as well as the units of measurement like 'meter,' 'centimeter,' etc. We will soon update the 'Release' version. Thank you for using Mago3DTiler! capture1 capture2

Ananthu-Prakash commented 2 months ago

Thank you for your response. Could you please provide the command line script you've used to generated the tile which we can refer.

sdson commented 2 months ago

you can use your command line java -jar mago-3d-tiler-1.7.0-natives-linux.jar -i amc/water_pipelines.shp it "shp" -o output/testt -c 32643 -hc height -rc radius -d

But, it is IMPORTANT that in your *.shp file must contain "radius" field, where radius = diameter / 2.

post data : for now, you must pull the develop brench version and build it. Or wait few days to use the release version.

Ananthu-Prakash commented 2 months ago

Thank you. I will wait for the new release. I have another doubt, Is it possible to add some of the attribute information from the shapefile to the generated tiles such as entity_name or locality where that entity is present, so as to identify that entity based on its attribute value.

znkim commented 2 months ago

@Ananthu-Prakash

Version 1.8.1 has been released. Now, if you convert to -dc Diameter option instead of -rc Diameter option, your data should convert well.

Additionally, it will also include attribute information for each pipe. However, it is recommended to convert the data encoding to UTF-8.

Thank you.

Ananthu-Prakash commented 2 months ago

Thank you. Just now I tried this and this is working great, thank you for your prompt response and cooperation. If there are any further queries, I will let you know. Once again thank you for your response.

Ananthu-Prakash commented 2 months ago

hello, I have few issues regarding generation of b3dm tiles, while executing following script.I am attaching the script that I am using along with logs of process, I am using latest version. For the reference purpose I am also attaching the data that I am using. How can I solve this problem.

akshay@admin1-B250M-DS3H:~$ java -jar /home/akshay/Desktop/mago_1.8/mago-3d-tiler-1.8.1-natives-linux.jar --input "/home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_z/storm_water_z.shp" --inputType shp -c 32643 -hc pipe_depth -dc pipe_dia_i --output "/home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_3d/" -d

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

┳┳┓┏┓┏┓┏┓ ┏┓┳┓ ┏┳┓┳┓ ┏┓┳┓ ┃┃┃┣┫┃┓┃┃ ┫┃┃ ┃ ┃┃ ┣ ┣┫ ┛ ┗┛┗┗┛┗┛ ┗┛┻┛ ┻ ┻┗┛┗┛┛┗ 3d-tiler(1.8.1) by Gaia3d, Inc.

[DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:331)]::Input Path: /home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_z/storm_water_z.shp [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:332)]::Output Path: /home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_3d/ [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:333)]::Input Format: SHP [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:334)]::Output Format: B3DM [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:335)]::Terrain File Path: null [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:336)]::Instance File Path: /home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_z/storm_water_z.shp/instance.dae [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:337)]::Log Path: null [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:338)]::Recursive Path Search: false

[DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:341)]::Coordinate Reference System: EPSG:32643 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:342)]::Proj4 Code: null [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:343)]::Minimum LOD: 0 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:344)]::Maximum LOD: 3 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:345)]::Minimum GeometricError: 16 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:346)]::Maximum GeometricError: 2147483647 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:347)]::PointCloud Point Limit: 65536 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:348)]::PointCloud Scale: 2 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:349)]::PointCloud Skip Interval: 4 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:350)]::Debug Mode: true [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:351)]::Debug LOD: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:352)]::Debug GLB: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:353)]::classicTransformMatrix: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:354)]::Multi-Thread Count: 2

[DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:358)]::Swap Up-Axis: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:359)]::Flip Up-Axis: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:360)]::RefineAdd: true [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:361)]::Flip Coordinate: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:362)]::Zero Origin: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:363)]::Auto Up-Axis: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:364)]::Ignore Textures: false [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:365)]::Max Triangles: 524288 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:366)]::Max Instance Size: 512 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:367)]::Max Node Depth: 32 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:368)]::LargeMesh: false

[DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:372)]::Name Column: name [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:373)]::Height Column: pipe_depth [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:374)]::Altitude Column: altitude [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:375)]::Absolute Altitude: 0.0 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:376)]::Minimum Height: 1.0 [DEBUG][12:38:17][mago.GlobalOptions(printDebugOptions:377)]::Skirt Height: 4.0

[INFO][12:38:17][mago.Mago3DTiler(execute:26)]::Starting process flow: BatchedProcessModel [INFO][12:38:17][process.TilingPipeline(createTemp:158)]::[Pre] Created temp directory in /home/akshay/Desktop/mago_1.8/Sansakardham_shapefiles/storm_water_3d/temp [INFO][12:38:17][process.TilingPipeline(startPreProcesses:63)]::[Pre] Start the pre-processing. [INFO][12:38:17][process.TilingPipeline(startPreProcesses:67)]::[Pre] Loading all files. [INFO][12:38:17][process.TilingPipeline(startPreProcesses:69)]::[Pre] Finished loading all files [INFO][12:38:18][shape.ShapeConverter(convert:94)]:: - Total Shape Feature Count : 21 [ERROR][12:38:18][process.TilingPipeline(executeThread:179)]::Failed to execute thread. java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?] at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:101) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:49) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.model.BatchedProcessModel.run(BatchedProcessModel.java:78) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:27) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] Caused by: java.lang.ArithmeticException: / by zero at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:101) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:58) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.loader.BatchedFileLoader.loadScene(BatchedFileLoader.java:36) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.loader.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:113) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:79) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:180) at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:101) at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:49) at com.gaia3d.command.model.BatchedProcessModel.run(BatchedProcessModel.java:78) at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:27) at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) Caused by: java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) ... 5 more Caused by: java.lang.ArithmeticException: / by zero at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:101) at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:58) at com.gaia3d.converter.loader.BatchedFileLoader.loadScene(BatchedFileLoader.java:36) at com.gaia3d.converter.loader.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:113) at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:79) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) selected_pipes.zip

sdson commented 2 months ago

Hi @Ananthu-Prakash!

I found the bug and in few days it will be corrected. Sorry for this and thankyou for use Mago3DTiler! image

SadhakAkshay commented 2 months ago

Thank you sir for your response.

SadhakAkshay commented 2 months ago

I am also facing similar problem for following shapefile data, temporary_z.zip I am using following script

$ java -jar /home/akshay/Desktop/mago_1.8/mago-3d-tiler-1.8.1-natives-linux.jar --input "/home/akshay/Desktop/cesium_modified/PCMC/data/temporary/temporary_z.shp" --inputType shp -c 32643 -hc PIPE_DEPTH -rc PIPE_DIA_I --output "/home/akshay/Desktop/cesium_modified/PCMC/data/temporary/" -d

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

┳┳┓┏┓┏┓┏┓ ┏┓┳┓ ┏┳┓┳┓ ┏┓┳┓ ┃┃┃┣┫┃┓┃┃ ┫┃┃ ┃ ┃┃ ┣ ┣┫ ┛ ┗┛┗┗┛┗┛ ┗┛┻┛ ┻ ┻┗┛┗┛┛┗ 3d-tiler(1.8.1) by Gaia3d, Inc.

[DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:331)]::Input Path: /home/akshay/Desktop/cesium_modified/PCMC/data/temporary/temporary_z.shp [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:332)]::Output Path: /home/akshay/Desktop/cesium_modified/PCMC/data/temporary/ [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:333)]::Input Format: SHP [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:334)]::Output Format: B3DM [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:335)]::Terrain File Path: null [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:336)]::Instance File Path: /home/akshay/Desktop/cesium_modified/PCMC/data/temporary/temporary_z.shp/instance.dae [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:337)]::Log Path: null [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:338)]::Recursive Path Search: true

[DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:341)]::Coordinate Reference System: EPSG:32643 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:342)]::Proj4 Code: null [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:343)]::Minimum LOD: 0 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:344)]::Maximum LOD: 3 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:345)]::Minimum GeometricError: 16 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:346)]::Maximum GeometricError: 2147483647 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:347)]::PointCloud Point Limit: 65536 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:348)]::PointCloud Scale: 2 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:349)]::PointCloud Skip Interval: 4 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:350)]::Debug Mode: true [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:351)]::Debug LOD: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:352)]::Debug GLB: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:353)]::classicTransformMatrix: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:354)]::Multi-Thread Count: 2

[DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:358)]::Swap Up-Axis: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:359)]::Flip Up-Axis: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:360)]::RefineAdd: true [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:361)]::Flip Coordinate: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:362)]::Zero Origin: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:363)]::Auto Up-Axis: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:364)]::Ignore Textures: false [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:365)]::Max Triangles: 524288 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:366)]::Max Instance Size: 512 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:367)]::Max Node Depth: 32 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:368)]::LargeMesh: false

[DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:372)]::Name Column: name [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:373)]::Height Column: PIPE_DEPTH [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:374)]::Altitude Column: altitude [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:375)]::Absolute Altitude: 0.0 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:376)]::Minimum Height: 1.0 [DEBUG][14:50:18][mago.GlobalOptions(printDebugOptions:377)]::Skirt Height: 4.0

[INFO][14:50:18][mago.Mago3DTiler(execute:26)]::Starting process flow: BatchedProcessModel [INFO][14:50:18][process.TilingPipeline(createTemp:158)]::[Pre] Created temp directory in /home/akshay/Desktop/cesium_modified/PCMC/data/temporary/temp [INFO][14:50:18][process.TilingPipeline(startPreProcesses:63)]::[Pre] Start the pre-processing. [INFO][14:50:18][process.TilingPipeline(startPreProcesses:67)]::[Pre] Loading all files. [INFO][14:50:18][process.TilingPipeline(startPreProcesses:69)]::[Pre] Finished loading all files [INFO][14:50:19][shape.ShapeConverter(convert:94)]:: - Total Shape Feature Count : 1 [ERROR][14:50:19][process.TilingPipeline(executeThread:179)]::Failed to execute thread. java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?] at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:101) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:49) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.model.BatchedProcessModel.run(BatchedProcessModel.java:78) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:27) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) [mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] Caused by: java.lang.ArithmeticException: / by zero at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:101) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:58) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.loader.BatchedFileLoader.loadScene(BatchedFileLoader.java:36) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.converter.loader.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:113) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:79) ~[mago-3d-tiler-1.8.1-natives-linux.jar:1.8.1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:180) at com.gaia3d.process.TilingPipeline.startPreProcesses(TilingPipeline.java:101) at com.gaia3d.process.TilingPipeline.process(TilingPipeline.java:49) at com.gaia3d.command.model.BatchedProcessModel.run(BatchedProcessModel.java:78) at com.gaia3d.command.mago.Mago3DTiler.execute(Mago3DTiler.java:27) at com.gaia3d.command.mago.Mago3DTilerMain.main(Mago3DTilerMain.java:55) Caused by: java.util.concurrent.ExecutionException: java.lang.ArithmeticException: / by zero at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.gaia3d.process.TilingPipeline.executeThread(TilingPipeline.java:175) ... 5 more Caused by: java.lang.ArithmeticException: / by zero at com.gaia3d.converter.geometry.shape.ShapeConverter.convert(ShapeConverter.java:101) at com.gaia3d.converter.geometry.shape.ShapeConverter.load(ShapeConverter.java:58) at com.gaia3d.converter.loader.BatchedFileLoader.loadScene(BatchedFileLoader.java:36) at com.gaia3d.converter.loader.BatchedFileLoader.loadTileInfo(BatchedFileLoader.java:113) at com.gaia3d.process.TilingPipeline.lambda$startPreProcesses$0(TilingPipeline.java:79) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)