<?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 SingleOutputMapAlgebra syntax errors in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/singleoutputmapalgebra-syntax-errors/m-p/721591#M10466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to execute SingleOutputMapAlgebra in python using arcgisscripting.create(), executing in ArcGIS 10.0 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an execute error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010328: Syntax error at or near symbol SPACE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010267: Syntax error in parsing grid expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what it is trying to do (from error message):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SingleOutputMapAlgebra (X:\gbp\Deliverables\2012\GBtools\tmpIP\bndgrid * X:\gbp\Deliverables\2012\GBtools\BaseIP\p7\landcover) X:\gbp\Deliverables\2012\GBtools\tmpIP\lcov #&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the actual code used in my python script.&amp;nbsp; The dictionaries are used between multiple functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["bndgrid"] = r"X:\gbp\Deliverables\2012\GBtools\tmpIP\bndgrid "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["p7lcov"] = r"X:\gbp\Deliverables\2012\GBtools\BaseIP\p7\landcover"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["lcov"] = r"X:\gbp\Deliverables\2012\GBtools\tmpIP\lcov"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xpr0 = "(" + fcDICT["bndgrid"] + " * " + fcDICT["p7lcov"] + ")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.SingleOutputMapAlgebra_sa(xpr0, fcDICT["lcov"])&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 17:11:16 GMT</pubDate>
    <dc:creator>jduval</dc:creator>
    <dc:date>2011-08-05T17:11:16Z</dc:date>
    <item>
      <title>SingleOutputMapAlgebra syntax errors</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/singleoutputmapalgebra-syntax-errors/m-p/721591#M10466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to execute SingleOutputMapAlgebra in python using arcgisscripting.create(), executing in ArcGIS 10.0 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an execute error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010328: Syntax error at or near symbol SPACE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010267: Syntax error in parsing grid expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what it is trying to do (from error message):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SingleOutputMapAlgebra (X:\gbp\Deliverables\2012\GBtools\tmpIP\bndgrid * X:\gbp\Deliverables\2012\GBtools\BaseIP\p7\landcover) X:\gbp\Deliverables\2012\GBtools\tmpIP\lcov #&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the actual code used in my python script.&amp;nbsp; The dictionaries are used between multiple functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["bndgrid"] = r"X:\gbp\Deliverables\2012\GBtools\tmpIP\bndgrid "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["p7lcov"] = r"X:\gbp\Deliverables\2012\GBtools\BaseIP\p7\landcover"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcDICT["lcov"] = r"X:\gbp\Deliverables\2012\GBtools\tmpIP\lcov"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xpr0 = "(" + fcDICT["bndgrid"] + " * " + fcDICT["p7lcov"] + ")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.SingleOutputMapAlgebra_sa(xpr0, fcDICT["lcov"])&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 17:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/singleoutputmapalgebra-syntax-errors/m-p/721591#M10466</guid>
      <dc:creator>jduval</dc:creator>
      <dc:date>2011-08-05T17:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: SingleOutputMapAlgebra syntax errors</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/singleoutputmapalgebra-syntax-errors/m-p/721592#M10467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this is giving the problem!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On your code, for: fcDICT["bndgrid"] = r"X:\gbp\Deliverables\2012\GBtools\tmpIP\bndgrid "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that there is an extra space on the path name, ...\...\bndgrid "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try removing extra space after \bndgrid, I think it's worth trying!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 21:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/singleoutputmapalgebra-syntax-errors/m-p/721592#M10467</guid>
      <dc:creator>PrasantaBhattarai</dc:creator>
      <dc:date>2011-08-05T21:07:59Z</dc:date>
    </item>
  </channel>
</rss>

