<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't create feature class with PG_GEOMETRY keyword in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/can-t-create-feature-class-with-pg-geometry/m-p/494537#M3335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you create the database? Through the tool "Create Enterprise Database"? In case you want to use the pg_geometry (postgis) geometry, you need to create the database through the postgis template, i.e. psql -d [yourdatabase] -c "CREATE EXTENSION postgis;".&lt;/P&gt;&lt;P&gt;After you have created the database, you can proceed with the "Create Enterprise Database" tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reader the following page for more info: &lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-postgresql/data-types-postgresql.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-postgresql/data-types-postgresql.htm"&gt;PostgreSQL data types supported in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Oct 2015 20:28:33 GMT</pubDate>
    <dc:creator>ChristophSpoerri</dc:creator>
    <dc:date>2015-10-18T20:28:33Z</dc:date>
    <item>
      <title>Can't create feature class with PG_GEOMETRY keyword</title>
      <link>https://community.esri.com/t5/developers-questions/can-t-create-feature-class-with-pg-geometry/m-p/494536#M3334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enabled a PostgreSQL database as an enterprise geodatabase with ArcCatalog (using server license file etc).&lt;/P&gt;&lt;P&gt;When I create a new feature class with PG_GEOMETRY keyword, I get an error: ERROR: constraint "enforce_dims_shape" of relation "newclass" does not exist.&lt;/P&gt;&lt;P&gt;Newclass is the name of the feature class I'm trying to create. I guess for some reason ArcGIS can't create this constraint when creating a table in DB, or it just doesn't create it, and then looks for it.&lt;/P&gt;&lt;P&gt;I'm able to create tables and constraints with pgAdmin, connecting as an "sde" user and "postgres" user. ArcCatalog connection is set up to use "sde" user.&lt;/P&gt;&lt;P&gt;I have postgis extension installed in a DB, so I can create geometry type columns with pgAdmin.&lt;/P&gt;&lt;P&gt;I'm running PostgreSQL 9.3.5 + PostGIS 2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a feature class without PG_GEOMETRY keyword, it's being created with no problems as expected. &lt;/P&gt;&lt;P&gt;But I need postgis geometry type, so I can edit geometry data from ArcGIS and some other software. What should I do to create a new empty feature class with postgis geometry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-t-create-feature-class-with-pg-geometry/m-p/494536#M3334</guid>
      <dc:creator>NickLebedev</dc:creator>
      <dc:date>2015-04-30T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create feature class with PG_GEOMETRY keyword</title>
      <link>https://community.esri.com/t5/developers-questions/can-t-create-feature-class-with-pg-geometry/m-p/494537#M3335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you create the database? Through the tool "Create Enterprise Database"? In case you want to use the pg_geometry (postgis) geometry, you need to create the database through the postgis template, i.e. psql -d [yourdatabase] -c "CREATE EXTENSION postgis;".&lt;/P&gt;&lt;P&gt;After you have created the database, you can proceed with the "Create Enterprise Database" tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reader the following page for more info: &lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-postgresql/data-types-postgresql.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-postgresql/data-types-postgresql.htm"&gt;PostgreSQL data types supported in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-t-create-feature-class-with-pg-geometry/m-p/494537#M3335</guid>
      <dc:creator>ChristophSpoerri</dc:creator>
      <dc:date>2015-10-18T20:28:33Z</dc:date>
    </item>
  </channel>
</rss>

