当前位置:网站首页>PostGIS space function
PostGIS space function
2022-07-03 07:50:00 【A reserved and calm man】
1.ST_AsText()
Convert spatial data (geom type ) Display as text
2.ST_GeomFromGeoJSON()
take geojson Format data is converted into spatial data (geom type )
SELECT ST_AsText(ST_GeomFromGeoJSON('{"coordinates":[[[506725.4551631873,2492636.8135885904],[505878.7868031839,2487462.7288792557],[513216.58097909775,2488497.546337888],[513310.6529445854,2493671.6310472228]]],"type":"Polygon"}'))

3.ST_GeometryFromText()
take wkt Format text data into spatial data (geom type )
SELECT ST_AsText(ST_GeometryFromText('POLYGON((117.083114730229 22.5607317467891,117.082720462537 22.5607646218051,117.08269342201 22.5604848493124,117.082238586205 22.560524508964,117.082193809566 22.5600594071482,117.083049766267 22.559990716164,117.083114730229 22.5607317467891))'))
4.ST_Transform()
Coordinate conversion function
SELECT ST_AsText(ST_Transform(st_geometryfromtext('POLYGON((117.083114730229 22.5607317467891,117.082720462537 22.5607646218051,117.08269342201 22.5604848493124,117.082238586205 22.560524508964,117.082193809566 22.5600594071482,117.083049766267 22.559990716164,117.083114730229 22.5607317467891))',4326),2384))
边栏推荐
- 一篇文章让你读懂-曼彻斯特编码
- 【LeetCode】2. Valid parentheses · valid parentheses
- Go language foundation ----- 07 ----- method
- Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
- Go language foundation ----- 11 ----- regular expression
- opensips与对方tls sip trunk对接注意事项
- 技术干货 | AlphaFold/ RoseTTAFold开源复现(2)—AlphaFold流程分析和训练构建
- WorldView卫星遥感影像数据/米级分辨率遥感影像
- Go language foundation ----- 01 ----- go language features
- 在浏览器输入url后执行什么
猜你喜欢

The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.

Go language foundation ----- 11 ----- regular expression

Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience

项目经验分享:基于昇思MindSpore实现手写汉字识别

技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer

截图工具Snipaste

Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task

【MySQL 12】MySQL 8.0.18 重新初始化

HDMI2.1与HDMI2.0的区别以及转换PD信号。

Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing
随机推荐
Iterm2设置
LwIP learning socket (application)
Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model
Redis batch startup and shutdown script
技术干货|关于AI Architecture未来的一些思考
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition
Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)
Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
Static keyword
基于RNA的新型癌症疗法介绍
Huawei switches are configured with SSH login remote management switches
WorldView卫星遥感影像数据/米级分辨率遥感影像
截图工具Snipaste
What is definition? What is a statement? What is the difference between them?
Go language foundation ----- 02 ----- basic data types and operators
Technical dry goods | reproduce iccv2021 best paper swing transformer with Shengsi mindspire
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
一个实习生的CnosDB之旅