<?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: geoprocessing using Perl in Arc10 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370530#M12740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Till ArcGIS 10 my perl-scripts worked well with win32::OLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As in the documentation to ArcGIS 10 it still says that you can use the geoprocessor with perl, i wonder whats wrong and if we could get an working example how to use the geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be hard to rewrite all the code on the webserver and change from perl to python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2011 06:57:50 GMT</pubDate>
    <dc:creator>GeraldReiter</dc:creator>
    <dc:date>2011-11-25T06:57:50Z</dc:date>
    <item>
      <title>geoprocessing using Perl in Arc10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370529#M12739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our organization has a large number of scripts written in Perl, and in looking into moving to 10 I have found some issues with creating a geoprocessor. It does not help that I am not very familair with Perl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my $gp = Win32::OLE-&amp;gt;new("esriGeoprocessing.GpDispatch.1") || die $!;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;returns the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Win32::OLE(0.1709) error 0x80040111: "ClassFactory cannot supply requested class" at C:\...\TestPerl.pl line 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize that GpDispatch.1 is rather old fashioned: I have not been using it in my Python scripting for some time. However, I would like to be able to get the existing Perl scripts working so as to avoid rewriting the whole of every existing script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How does one create a geoprocessor in Arc 10 using Perl?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 14:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370529#M12739</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2011-02-24T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing using Perl in Arc10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370530#M12740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Till ArcGIS 10 my perl-scripts worked well with win32::OLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As in the documentation to ArcGIS 10 it still says that you can use the geoprocessor with perl, i wonder whats wrong and if we could get an working example how to use the geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be hard to rewrite all the code on the webserver and change from perl to python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 06:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370530#M12740</guid>
      <dc:creator>GeraldReiter</dc:creator>
      <dc:date>2011-11-25T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing using Perl in Arc10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370531#M12741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rewriting all our Perl production scripts in Python for Arc10 is exactly what we have had to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 13:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370531#M12741</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2011-11-25T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing using Perl in Arc10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370532#M12742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll needs to bootstrap the Perl process to consume ArcObjects by LoadLibrarying the AppInitializerLib.dll in the %ARCGISINSTALL%\bin into memory before it will work in 10. You should be able to accomplish this using either FFI or DynaLoader from CPAN.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 21:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370532#M12742</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-11-28T21:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing using Perl in Arc10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370533#M12743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a followup, this works for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;package LoadGPDispatch;

use strict;

use Win32;
use Win32::OLE;

my %RegHash;
use Win32::TieRegistry( TiedHash =&amp;gt; \%RegHash );
my $installKey = $RegHash{"HKEY_LOCAL_MACHINE\\Software\\ESRI\\Desktop10.0\\CoreRuntime"};
my ( $installDir, $type ) = $installKey-&amp;gt;GetValue("InstallDir");

my $DLLName = "$installDir\\bin\\AppInitializerLib.dll";

Win32::LoadLibrary($DLLName) || die $!;
my $dispatch = Win32::OLE-&amp;gt;new("esriGeoprocessing.GpDispatch.1") || die $!;

print "Success.\n";&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/geoprocessing-using-perl-in-arc10/m-p/370533#M12743</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2021-12-11T17:10:27Z</dc:date>
    </item>
  </channel>
</rss>

