<?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: ArcSDE SDK 10.0 Java API: setSpatialConstraints: The Coordinate System Desc Inval in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368742#M20992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Both the Windows client and server versions are 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it had definitely something to do with encoding because I was developing the client code on a Windows XP with system language settings set to Turkish. Once I changed the language to English in Control Panel &amp;gt; Regional and Language Options &amp;gt; Advanced &amp;gt; Language for Non-Unicode Programs, the windows client began working as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 06:11:06 GMT</pubDate>
    <dc:creator>IsilDemir</dc:creator>
    <dc:date>2011-02-11T06:11:06Z</dc:date>
    <item>
      <title>ArcSDE SDK 10.0 Java API: setSpatialConstraints: The Coordinate System Desc Invalid</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368739#M20989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to make a spatial query with the Java API and keep getting this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE Error Number: -143&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Description: THE COORDINATE SYSTEM DESCRIPTION IS INVALID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
try
{
 SeLayer layer = new SeLayer(conn, layerName, spatialCol);

 SeShape shape = new SeShape(layer.getCoordRef());
 SeExtent extent = layer.getExtent();

 shape.generateRectangle(extent);
 SeShape[] shapes = new SeShape[1];
 shapes[0] = shape;

 SeShapeFilter filter = new SeShapeFilter(layerName, spatialCol, shape, SeFilter.METHOD_ENVP);
 SeShapeFilter[] filters = new SeShapeFilter[1];
 filters[0] = filter;

 String[] cols = new String[1];
 cols[0] = new String("*");

 SeSqlConstruct sqlCons = new SeSqlConstruct(layer.getName());
 SeQuery spatialQuery = new SeQuery(conn, cols, sqlCons);
 spatialQuery.prepareQuery();

 spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, filters);
 spatialQuery.execute();
}
catch (SeException e)
{
 e.printStackTrace();
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I keep getting the error I mentioned above at the line where I try to use the method setSpatialConstraints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use the method getCoordSysDescription() on my SeLayer object, the output is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GEOGCS[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "GCS_WGS_1984", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; PRIMEM["Greenwich",0.0],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; UNIT["Degree",0.0174532925199433]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be much appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: By the way, ArcSDE is running on RHEL &amp;amp; Oracle 11g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368739#M20989</guid>
      <dc:creator>IsilDemir</dc:creator>
      <dc:date>2021-12-11T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE SDK 10.0 Java API: setSpatialConstraints: The Coordinate System Desc Inval</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368740#M20990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok this issue got resolved. I was running the code on a Windows machine, whilst using SDK's Windows libraries connecting to the Linux server via SSH tunnel. Apparently, that's not a good idea &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Once I ran the code on the server itself, it worked like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry everyone for the inconvenience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 08:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368740#M20990</guid>
      <dc:creator>IsilDemir</dc:creator>
      <dc:date>2011-02-07T08:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE SDK 10.0 Java API: setSpatialConstraints: The Coordinate System Desc Inval</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368741#M20991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's nothing wrong with accessing an ArcSDE server across a VPN link -- I do it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all the time with 'C' API apps. If the Windows client version is at least as high as the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server (10.0/10.0sp1), then it should just work (the apparent CR-LF in the coordsys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string may be the issue). If it doesn't, please file a bug report so the problem can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 12:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368741#M20991</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-02-07T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE SDK 10.0 Java API: setSpatialConstraints: The Coordinate System Desc Inval</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368742#M20992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Both the Windows client and server versions are 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it had definitely something to do with encoding because I was developing the client code on a Windows XP with system language settings set to Turkish. Once I changed the language to English in Control Panel &amp;gt; Regional and Language Options &amp;gt; Advanced &amp;gt; Language for Non-Unicode Programs, the windows client began working as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 06:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-sdk-10-0-java-api-setspatialconstraints-the/m-p/368742#M20992</guid>
      <dc:creator>IsilDemir</dc:creator>
      <dc:date>2011-02-11T06:11:06Z</dc:date>
    </item>
  </channel>
</rss>

