<?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: Generate Spatial Weights Matrix error in ArcGIS 10.2 in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203426#M642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaun,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I am using Canopy 1.3.0 (which uses Python 2.7.6 with Numpy 1.8.0 and matplotlib 1.3.1 instead of Numpy 1.6.1 and matplotlib 1.1.1 which is used by the Python 2.7.3 that comes with ArcGIS 10.2) I thought it was an incompatibility problem somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you may see the "á" in my path, and removing this has solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Mar 2014 16:26:13 GMT</pubDate>
    <dc:creator>FranciscoGoerlich</dc:creator>
    <dc:date>2014-03-29T16:26:13Z</dc:date>
    <item>
      <title>Generate Spatial Weights Matrix error in ArcGIS 10.2</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203424#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been unable to run the Generate Spatial Weights Matrix in ArcGIS 10.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: GenerateSpatialWeightsMatrix D:\GIS\CNIG\Equipamiento_Geográfico_Referencia_Nacional\lineas_limite_2011Mayo\ETRS89_LAEA\Municipios2006_ETRS89_LAEA.shp INENumMuni D:\GIS\CNIG\Equipamiento_Geográfico_Referencia_Nacional\lineas_limite_2011Mayo\ETRS89_LAEA\Municipios2006_ETRS89_LAEA.swm CONTIGUITY_EDGES_CORNERS EUCLIDEAN 1 # 0 NO_STANDARDIZATION # # # #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Sat Mar 29 01:42:52 2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running script GenerateSpatialWeightsMatrix...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Constructing spatial weights based on polygon contiguity (Edges or Corners)....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 910, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupWeights()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 110, in setupWeights&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contiguityType = "QUEEN")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts\Weights.py", line 201, in polygon2SWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; numNeighs = kNeighs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts\WeightsUtilities.py", line 203, in __init__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.setHeader()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts\WeightsUtilities.py", line 261, in setHeader&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; header = NUM.array([header], '&amp;lt;c')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 0: ordinal not in range(128)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (GenerateSpatialWeightsMatrix).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Sat Mar 29 01:43:24 2014 (Elapsed Time: 31.68 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if this is an error from ArcGIS or a configuration error with Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 23:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203424#M640</guid>
      <dc:creator>FranciscoGoerlich</dc:creator>
      <dc:date>2014-03-28T23:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Spatial Weights Matrix error in ArcGIS 10.2</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203425#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Goerlich,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like that particular tool has a bug in how it handles Unicode characters beyond the base 7-bit ASCII set. In particular, it is failing on the 'á' character, or 0x1E in hexadecimal. It looks like that character is included in one of your paths, could you try running the script from a directory which only has plain characters in its name? This is a bug, and should be filed as such, but this will at least get you up and running for the time being.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 01:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203425#M641</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2014-03-29T01:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Spatial Weights Matrix error in ArcGIS 10.2</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203426#M642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaun,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I am using Canopy 1.3.0 (which uses Python 2.7.6 with Numpy 1.8.0 and matplotlib 1.3.1 instead of Numpy 1.6.1 and matplotlib 1.1.1 which is used by the Python 2.7.3 that comes with ArcGIS 10.2) I thought it was an incompatibility problem somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you may see the "á" in my path, and removing this has solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 16:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203426#M642</guid>
      <dc:creator>FranciscoGoerlich</dc:creator>
      <dc:date>2014-03-29T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Spatial Weights Matrix error in ArcGIS 10.2</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203427#M643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Francisco&lt;/P&gt;&lt;P&gt;Your work also give me some guides on solving &lt;A href="http://www.businessrefinery.com/products/barcode_net/barcodes/net-data-matrix.html"&gt;&lt;SPAN style="color: #333333;"&gt;matrix generation&lt;/SPAN&gt;&lt;/A&gt; error.&lt;/P&gt;&lt;P&gt;I'm really appreciate you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 01:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203427#M643</guid>
      <dc:creator>calosteward</dc:creator>
      <dc:date>2015-07-20T01:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Spatial Weights Matrix error in ArcGIS 10.2</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203428#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that this issue is now solved at ArcGIS 10.3 or later, and in ArcGIS Pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 22:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/generate-spatial-weights-matrix-error-in-arcgis-10/m-p/203428#M644</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2015-07-29T22:24:11Z</dc:date>
    </item>
  </channel>
</rss>

