随笔 - 303  文章 - 2  评论 - 717  阅读 - 44万
  2023年8月7日

我们非常高兴的发布为了一年一度的SIGGRAPH 2023发布关于为PostGIS支持USD格式的新拓展。

新添加了3个函数

ST_AsUSDA(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_AsUSDC(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_GeomFromUSD(format int, content bytea)

函数ST_AsUSDA和ST_AsUSDC用于转换PostGIS的geometry为USD数据,可以是文本格式的USDA用于调试,或者是紧凑的二进制USDC格式。所有的参数解释如下。

  • geom, 输入PostGIS几何体
  • usd_root_name text, USD默认Prim的名字,默认为World
  • usd_geom_name text, 生成的USD对象Prim名字,默认为_geometry
  • width, 默认为1.0,对于点Point和线Curve类似的geomtry, 此参数设置其宽度

ST_GeomFromUSD用于转换USD文件到GEOMETRYCOLLECTION,

  • format,设置为1,输入内容为USDA,设置为2,为二进制USDC

代码仓库

  • https://github.com/j-cube/postgis

分支

  • feature-usd

编译和安装的方式等同于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,

ST_AsUSDA(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_AsUSDC(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_GeomFromUSD(format int, content bytea)

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.

  1. 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.


 

日本語

私たちは、PostGISでUSD格式をサポートすることが発表されました。

新し3つSQL関数は使えるようになりました。

ST_AsUSDA(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_AsUSDC(geom geometry, usd_root_name text, usd_geom_name text, width float)
ST_GeomFromUSD(format int, content bytea)

関数ST_AsUSDAとST_AsUSDCは、PostGISで幾何学的な物体、USD格式に変換します、USDA文本格式とUSDCバイナリ形式がサポートされます。

関数ST_GeomFromUSDは、SQL文本とバイナリのデータは、USDA文本格式とUSDCに変換することができます。引数formatは、1意味が入データが文本格式、2がバイナリ格式。

Repository

  • https://github.com/j-cube/postgis

Branch

  • feature-usd

スポンサーJadason Technlogy Ltdに感謝申し上げます。

posted @ 2023-08-07 09:07 Bo Schwarzstein 阅读(135) 评论(0) 推荐(0) 编辑
  2023年7月5日
摘要: 经常看到说,自化禄的特性就是,自我感觉良好,爱显摆,爱吹牛,爱浪费诸如此类。 偏偏我就是自化禄在命宫的人,第一个大限,也就是小时候,那是真自我感觉良好,老师批评说太骄傲。到了长大了之后,这方面倒是收敛了许多。但是真的接触过自化禄很爱吹牛,的确是有不少打肿脸充胖子的行为,这个姑且说书上说的对吧。 要是 阅读全文
posted @ 2023-07-05 20:38 Bo Schwarzstein 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 按照我个人这几年的经历来看,一个人命财官在流年的三合有着决定性的作用,一个人的感受和体会在某一年都极大的受当年本命的三合所影响,进而影响六亲戚宫。 其实很好理解,结合到现实来看,本命当年混的不好,六亲周遭也差不多会鸡飞狗跳,如果有来自六亲的照顾,讲真,除非是老爸就是董事长,现实生活中无非只是一些口头 阅读全文
posted @ 2023-07-05 20:31 Bo Schwarzstein 阅读(548) 评论(0) 推荐(0) 编辑
  2023年6月20日
摘要: A simple methodology or design pattern called HSM (Handler, Service, Model) or Golang backend development. HSM is similar to MVC but specifically tailored for pure backend development in the Go programming language (Golang). 阅读全文
posted @ 2023-06-20 10:58 Bo Schwarzstein 阅读(139) 评论(0) 推荐(0) 编辑
  2023年4月10日
摘要: 本来命理师就不是纯粹根据时间来判断的,许多时候得结合当事人的情况来判断具体问题。 这种回答基本上无用,父母宫和其他宫位的关系当然要考虑。八字和紫微的信息大部分情况下是一致的。 阅读全文
posted @ 2023-04-10 16:46 Bo Schwarzstein 阅读(137) 评论(0) 推荐(0) 编辑
  2023年1月26日
摘要: Download Sqlite3 source code, and decompress it to somewhere. Enter the decompressed folder, type the following command to generate different targets 阅读全文
posted @ 2023-01-26 10:29 Bo Schwarzstein 阅读(117) 评论(0) 推荐(0) 编辑
  2022年12月23日
摘要: Deployed JuiceFS to self-managed K3s cluster with mountOptions - cache-size=0 to disable any cache. Use t3a.medium to do the test. Sequential Read 512 阅读全文
posted @ 2022-12-23 12:41 Bo Schwarzstein 阅读(29) 评论(0) 推荐(0) 编辑
  2022年12月20日
摘要: Tried JuiceFS v1.0.2, with PostgreSQL database, which is running at another t3a.medium instance runs within same VPC but another avalibility zone. Use 阅读全文
posted @ 2022-12-20 19:52 Bo Schwarzstein 阅读(46) 评论(0) 推荐(0) 编辑
  2022年10月21日
摘要: AWS VPC means a VLAN for a user, the all potential network resource might allocated within this VLAN with private IP addresses, such as EC2, EFS etc. 阅读全文
posted @ 2022-10-21 12:17 Bo Schwarzstein 阅读(35) 评论(0) 推荐(0) 编辑
  2022年7月14日
摘要: At present, both Apple and Android are supporting AR with devices, which includes 3D model rendering with background. It's possible to extent this wit 阅读全文
posted @ 2022-07-14 11:52 Bo Schwarzstein 阅读(42) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示