<?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 I create layer from sql? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309747#M900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@mboeringa2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have index on varchar column, which doesn't speedup query. Problem was solved by teammate. When I will have more time, I will place our solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@12o0ney&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simply with ojdbc, not with arcobjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 07:43:28 GMT</pubDate>
    <dc:creator>pf</dc:creator>
    <dc:date>2013-11-19T07:43:28Z</dc:date>
    <item>
      <title>Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309738#M891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a feature class in geobase which has about 1 300 000 features(objects/rows). And when I'm adding this feature class to map, the rendering takes a lot of time. So I want to limit this query(or filter). Definition query(in feature layer properties), and toolbox createFeatureLayer makes arcmap crash. So I wonder if I could query table to 150 objects, create emtpy feature class, add this 150 objects as features, and add this feature class to map. And how do this. I have some code, but it's not working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 18:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309738#M891</guid>
      <dc:creator>pf</dc:creator>
      <dc:date>2013-10-23T18:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309739#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty simple to use (see &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGIS Runtime Java Samples&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309739#M892</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-10-24T06:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309740#M893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a feature class in geobase which has about 1 300 000 features(objects/rows). And when I'm adding this feature class to map, the rendering takes a lot of time. So I want to limit this query(or filter). Definition query(in feature layer properties), and toolbox createFeatureLayer &lt;STRONG&gt;makes arcmap crash&lt;/STRONG&gt;. So I wonder if I could query table to 150 objects, create emtpy feature class, add this 150 objects as features, and add this feature class to map. And how do this. I have some code, but it's not working.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of ArcGIS and what database type and version are using (enterprise (e.g. Oracle) or file geodatabase)? Have you applied any available service packs for your release of ArcGIS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no reason why ArcMap should crash setting a definition query on a 1.3M features Feature Class, it is just a SQL constraint that your RDBMS should be able to process fine. Just make sure the field(s) you use to filter / query the dataset, are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;indexed&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked the integrity of the features by using &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000034000000"&gt;Check Geometry&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Repair_Geometry/00170000003v000000/"&gt;Repair Geometry&lt;/A&gt;&lt;SPAN&gt; tools?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309740#M893</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-10-24T06:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309741#M894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What version of ArcGIS and what database type and version are using (enterprise (e.g. Oracle) or file geodatabase)? Have you applied any available service packs for your release of ArcGIS?&lt;BR /&gt;&lt;BR /&gt;There is no reason why ArcMap should crash setting a definition query on a 1.3M features Feature Class, it is just a SQL constraint that your RDBMS should be able to process fine. Just make sure the field(s) you use to filter / query the dataset, are &lt;SPAN style="font-style:italic;"&gt;indexed&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;Have you checked the integrity of the features by using &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000034000000"&gt;Check Geometry&lt;/A&gt; and &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Repair_Geometry/00170000003v000000/"&gt;Repair Geometry&lt;/A&gt; tools?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcMap in version 10.2, and Oracle Database 11g Release 11.2.0.3.0 - 64bit Production. ArcMap crash and doesn't close, but it hangs up. Sometimes it shows features(after query definition), but still is not responding. Features are valid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 07:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309741#M894</guid>
      <dc:creator>pf</dc:creator>
      <dc:date>2013-10-24T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309742#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ?&lt;BR /&gt;It's pretty simple to use (see &lt;SPAN style="font-style:italic;"&gt;ArcGIS Runtime Java Samples&lt;/SPAN&gt;)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds good, but I have couple of questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I'm using java.sql to obtain data from DB. Is this good? Or should I use something more familiar with arcgis?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. ArcGis Runtime Java Samples you mean this: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualHelp/engine/index.html#/Samples/00010000042n000000/"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualHelp/engine/index.html#/Samples/00010000042n000000/&lt;/A&gt;&lt;SPAN&gt; ? I don't see there samples with GraphicsLayer, only with GraphicsContainer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309742#M895</guid>
      <dc:creator>pf</dc:creator>
      <dc:date>2013-10-24T08:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309743#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have ArcMap in version 10.2, and Oracle Database 11g Release 11.2.0.3.0 - 64bit Production. ArcMap crash and doesn't close, but it hangs up. Sometimes it shows features(after query definition), but still is not responding. Features are valid.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do the features have a proper spatial index? Is the data stored in Oracle Spatial or ST_Geometry? If the data is in Oracle Spatial, did you load it through ArcGIS or a third party tool? Are the fields you query on indexed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 09:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309743#M896</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-10-24T09:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309744#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Field wchich I query are VARCHAR fields, and is not indexed. So my query looks like G5IDD LIKE '066201_1.0001%'. I have additional column, which is substring of G5IDD, so I don't have to user%. Features has a spatial index, default created by arcgis. Data is stored in ST_Geometry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 08:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309744#M897</guid>
      <dc:creator>pf</dc:creator>
      <dc:date>2013-10-25T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309745#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Field wchich I query are VARCHAR fields, and is not indexed. So my query looks like G5IDD LIKE '066201_1.0001%'. I have additional column, which is substring of G5IDD, so I don't have to user%.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really think you need to index your fields as soon as you start querying them, especially with large amounts of features in your Feature Class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 08:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309745#M898</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-10-25T08:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309746#M899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ?&lt;BR /&gt;It's pretty simple to use (see &lt;SPAN style="font-style:italic;"&gt;ArcGIS Runtime Java Samples&lt;/SPAN&gt;)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, but how to connect and query database?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 02:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309746#M899</guid>
      <dc:creator>LeAnh1</dc:creator>
      <dc:date>2013-11-19T02:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create layer from sql?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309747#M900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@mboeringa2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have index on varchar column, which doesn't speedup query. Problem was solved by teammate. When I will have more time, I will place our solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@12o0ney&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simply with ojdbc, not with arcobjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-i-create-layer-from-sql/m-p/309747#M900</guid>
      <dc:creator>pf</dc:creator>
      <dc:date>2013-11-19T07:43:28Z</dc:date>
    </item>
  </channel>
</rss>

