Inserting and modifying data in the ArcGIS SDE spatial table directly via SQL

Source: Internet
Author: User

+oracle 11g Environment test based on ArcGIS Server 10.1

ArcGIS SDE

?
12 INSERTINTOCAMERA_INFO(OBJECTID,ID,SHAPE)                         VALUES(sde.gdb_util.next_rowid(‘sde‘,‘CAMERA_INFO‘),M_ID,st_geometry(to_number(M_LONGITUDE),to_number(M_LATITUDE),null,null,300003));

Note:

1. Generate PRIMARY Key ID

?
1 sde.gdb_util.next_rowid(‘sde‘,‘CAMERA_INFO‘)
2. Build St_geometry Type

?
1 st_geometry(to_number(M_LONGITUDE),to_number(M_LATITUDE),null,null,300003)

300003 is the Srid value of the spatial library and needs to be modified according to the actual situation, you can find a table with data in the spatial library, and view the Shape.srid field value as the desired Srid value.

Inserting and modifying data in the ArcGIS SDE spatial table directly via SQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.