Esri / cityengine-sdk

CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
https://esri.github.io/cityengine/cityenginesdk
Apache License 2.0
204 stars 64 forks source link

CityEngine SDK do not support shape or gdb as input? Why? #36

Closed chaogis closed 3 years ago

chaogis commented 3 years ago

CityEngine support shapefile and gdb as input shape. However, i check the build-in encoders(https://esri.github.io/cityengine-sdk/html/esri_prt_codecs.html), as the following pictures: build-in encoders

There is no shapefile and gdb, i want to ask why? Is cityengine sdk not support, or i have misunderstood?

I hope hear from you soon, thank you!

mistafunk commented 3 years ago

Hi & happy new year!

The "Esri Shapebuffer Encoder" produces the raw multipatch/multipart/... byte arrays. Writing the actual container files to disk (e.g. Shapefile or FileGDB) is not part of the CityEngine SDK (PRT) and left to the host application.

There are separate C/C++ SDKs/APIs available to write the container files:

Background: if the format allows, we usually abstract direct disk I/O away from our encoders. This makes them more versatile, e.g. storing the encoded bytes into a custom database instead of plain files.

chaogis commented 3 years ago

Hi & happy new year!

The "Esri Shapebuffer Encoder" produces the raw multipatch/multipart/... byte arrays. Writing the actual container files to disk (e.g. Shapefile or FileGDB) is not part of the CityEngine SDK (PRT) and left to the host application.

There are separate C/C++ SDKs/APIs available to write the container files:

Background: if the format allows, we usually abstract direct disk I/O away from our encoders. This makes them more versatile, e.g. storing the encoded bytes into a custom database instead of plain files.

OK,glad to hear from you. Thanks for you advice, i will try it. You can close this issue now.