编译和安装的方式等同于PostGIS,一切按照PostGIS文档所描述进行即可。
感谢香港特新科技对本项目的赞助和支持。 We're happy to annouce that the USD format in PostGIS is working for SIGGRAPH 2023.
There are 3 major functions were created,
The function ST_AsUSDA and ST_AsUSDC are used convert a PostGIS geometry to USD content, either in ASCII(USDA) format or binary Crate format(USDC). Both of them supports all geometry type. Here is the explanation for all arguments.
geom, the PostGIS geometry
usd_root_name text, default value is "World", generated USD has default prim with same name
usd_geom_name text, default value is "_geometry", if a geometry contains sub-geometry, the all geometry object will be created with flatten USD prims with this name
width, default value is 1.0, for Point or Curve-like geometry, it sets the USD width at USD geometry
ST_GeomFromUSD is is used to convert a USD content back to a set of geometry wrapped by GEOMETRYCOLLECTION.
format = 1 when content is USDA, format = 2 for USDC
Repository
https://github.com/j-cube/postgis
Branch
feature-usd
Build and test as PostGIS document described.
Thanks for the support from Jadason Technology Ltd for this project.