<?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: Data not drawing on the map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651645#M13132</link>
    <description>&lt;P&gt;For the new layer, if you access the layer properties, what setting do you see under Elevation? Perhaps change this setting to see if your points are visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1758228392865.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140688iC6A00662452D9B2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1758228392865.png" alt="UmaHarano_0-1758228392865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 20:46:49 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2025-09-18T20:46:49Z</dc:date>
    <item>
      <title>Data not drawing on the map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651019#M13130</link>
      <description>&lt;P&gt;I got an Add-In that retrive data from an Oracle database and create a feature Layer in ArcGIS Pro, but after updating to ArcGIS Pro 3.5.2, that features are not drawing on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But its only features that have a z-value from Oracle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code, where the feature layer are created look like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;   if (featureClass != null &amp;amp;&amp;amp; featureClass.GetCount() &amp;gt; 0)
   {
       var def = featureClass.GetDefinition();
       SpatialReference sr = def.GetSpatialReference();
       GeometryType geomType = def.GetShapeType();
       string oidField = def.GetObjectIDField();

       var featureCreateParams = new FeatureLayerCreationParams(featureClass)
       {
           Name = this.tableName,
           IsVisible = true,                          

       };

       FeatureLayer flyr = LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(featureCreateParams, map);
   }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I force the data to be 2D (In my SQL), the features are drawn on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure this out. I need the z-value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 14:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651019#M13130</guid>
      <dc:creator>Daniel4</dc:creator>
      <dc:date>2025-09-17T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data not drawing on the map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651645#M13132</link>
      <description>&lt;P&gt;For the new layer, if you access the layer properties, what setting do you see under Elevation? Perhaps change this setting to see if your points are visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1758228392865.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140688iC6A00662452D9B2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1758228392865.png" alt="UmaHarano_0-1758228392865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 20:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651645#M13132</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-09-18T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data not drawing on the map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651722#M13135</link>
      <description>&lt;P&gt;Hi Uma, the settings are set to 'absoulute height'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel4_0-1758262740464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140704iDAEBBC70E028EFCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel4_0-1758262740464.png" alt="Daniel4_0-1758262740464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to change the settings, but the feature layer are not drawn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The add-in is doing the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. User select a theme (like road, buidling ect.) and an&amp;nbsp;extent (map extent, municipality level, country level)&lt;/P&gt;&lt;P&gt;2. The add-in makes a SQL and retrive data from Oracle&lt;/P&gt;&lt;P&gt;3. Show the feature layer in the TOC and the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The taget version are 3.1 and works fine (also in 3.2, 3.3)&lt;/P&gt;&lt;P&gt;Its only data with a z-value, that are not drawn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I manual creats a query layer, and past in a SQL (whit a z-value), ArcGIS Pro have no issues drawing the data on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL can ba a simpel 'Select * from {table} or more complex depening on the users input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that open the table:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Map map = MapView.Active.Map;

CIMSqlQueryDataConnection sqldc = new CIMSqlQueryDataConnection()
{
    WorkspaceConnectionString = oracleDatabase.GetConnectionString(),
    GeometryType = this.geomType,
    OIDFields = "OBJECTID",
    Srid = "25832",
    SqlQuery = this.GetQuery,
    Dataset = this.tableName
};

QueryDescription queryDescription = oracleDatabase.GetQueryDescription(this.GetQuery, this.tableName);


FeatureClass featureClass = oracleDatabase.OpenTable(queryDescription) as FeatureClass;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Sep 2025 06:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1651722#M13135</guid>
      <dc:creator>Daniel4</dc:creator>
      <dc:date>2025-09-19T06:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data not drawing on the map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1652258#M13138</link>
      <description>&lt;P&gt;I am not able to repro this one.&amp;nbsp; My code looks like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; Map map = MapView.Active.Map;
 Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(@"C:\Users\uma\Path\Oracle-gdb.sde")));
 CIMSqlQueryDataConnection sqldc = new CIMSqlQueryDataConnection()
 {
   WorkspaceConnectionString = geodatabase.GetConnectionString(),
   GeometryType = esriGeometryType.esriGeometryPoint,
   OIDFields = "OBJECTID,NAME,NUMBER_",
   Srid = "25832",
   SqlQuery = "select * from MAP.TestPoints",
   Dataset = "MAP.%pointsLayer"
 };

FeatureLayerCreationParams featureLayerParams = new FeatureLayerCreationParams(sqldc)
 {
   IsVisible = true,
   Name = "pointsLayerSDK"
 };
 FeatureLayer featureLayer = LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(featureLayerParams, map) as FeatureLayer;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Sep 2025 22:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1652258#M13138</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-09-22T22:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data not drawing on the map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1652352#M13140</link>
      <description>&lt;P&gt;Hi Uma, I used you code, but I did not have any luck drawing to data to the map, when I used an Oracle database. I tried with a postgresql database, and it worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var map = MapView.Active?.Map;                
/*
var geodatabase = new Geodatabase(
    new DatabaseConnectionFile(
        new Uri(@"C:\Users\nan\Documents\ArcGIS\Projects\gv_tp\PostgreSQL.sde")));
*/

var geodatabase = new Geodatabase(
    new DatabaseConnectionFile(
        new Uri(@"F:\Users\nan\con\oracle.sde")));

var sqlQueryDataConnection = new CIMSqlQueryDataConnection
{
    WorkspaceConnectionString = geodatabase.GetConnectionString(),
    GeometryType = esriGeometryType.esriGeometryPolygon,
    OIDFields = "objectid",
    Srid = "25832",
    //SqlQuery = "SELECT * FROM i.buildings", // from postgresql
    SqlQuery = "select * from i.building", // from oracle
    Dataset = "test"
};

var featureLayerCreationParams = new FeatureLayerCreationParams(sqlQueryDataConnection)
{
    IsVisible = true,
    Name = "PolygonLayerSDK",
};

var featureLayer = LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(
    featureLayerCreationParams, map);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not have this problem, when I used the Add-in in ArcGIS Pro 3.2 - 3.4. I am using Oracle 19c.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 11:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/data-not-drawing-on-the-map/m-p/1652352#M13140</guid>
      <dc:creator>Daniel4</dc:creator>
      <dc:date>2025-09-23T11:35:09Z</dc:date>
    </item>
  </channel>
</rss>

