Select to view content in your preferred language

Problem with GME isectpolyrst and land cover data

1742
2
09-07-2011 09:36 AM
KRo
by
New Contributor
Hello,
I've been trying to use the Geospatial Modelling Environment tool, isectpolyrst, to count each type of raster cell within a set of overlapping polygons in ArcMap 10.  I keep receiving the following error no matter what I try:

isectpolyrst(in="C:\data\geo0203sq.shp", raster="C:\data\nlcd2006\nlcd2006.img", prefix="COV", thematic=TRUE);

Error: The command text could not be interpreted. Please check the syntax of the command.

Error: An important error has occurred. Please include the information below if you submit a query about this error.
Error HRESULT E_FAIL has been returned from a call to a COM component.
Source: ESRI.ArcGIS.DataSourcesRaster
Stack trace: at ESRI.ArcGIS.DataSourcesRaster.IRawPixels.Read(IPnt tlc, IPixelBlock pxls) at SpatialEcology.SEGME.AOAnalysis.RTRasterReader.GetReaderWindow(Int32 index, Boolean OverlapOneRow) at SpatialEcology.SEGME.AOAnalysis.RTClipRaster.GetPolygonCellValues(IPolygon pPoly, Int32 Band) at SpatialEcology.SEGME.AOAnalysis.RTIsectPolyRaster.Calculate() at SpatialEcology.SEGME.AOExt.UICommandInterpreter.Cmd_isectpolyrst() at SpatialEcology.SEGME.AOExt.UICommandInterpreter.SubmitExec(String Cmd) at SpatialEcology.SEGME.AOExt.UICommandInterpreter.InterpretText()

Any suggestions?  Many thanks-
0 Kudos
2 Replies
ShawnONeil
Emerging Contributor
I had the same problem, with a slight difference being that I received the error at the end of processing when GME was trying to write to my attribute table.  The source was ESRI.ArcGIS.Geodatabase rather than what you have posted.  I haven't figured out why it happened, but by copying my input polygon shapefile into a new geodatabase I was able to avoid it.  It looks like in your case, GME is unable to access the raster data you have specified.  I would check to make sure you have access permissions or maybe copy the raster to a new folder.

Also, if you have solved the problem please share!

Thanks,
Shawn
0 Kudos
IlanLevy1
New Contributor
Hi,
I'm having the same problem, even when I run the simple citation() command. I've upgraded GME from 0.5.5 to 0.6.1 Beta, and R to R-2.14.2. I have ArcGIS 10 with Win7 64bit. Here is the error code:

citation();


The suggested citation for GME is:


Beyer, H.L. (2012). Geospatial Modelling Environment (Version 0.6.0.0). (software). URL: http://www.spatialecology.com/gme.

For the tools that make use of R, please include the following citations in your work:

Error: The command text could not be interpreted. Please check the syntax of the command.

Error: An important error has occurred. Please include the information below if you submit a query about this error.
Exception from HRESULT: 0x80040013
Source: Interop.STATCONNECTORSRVLib
Stack trace: at STATCONNECTORSRVLib.StatConnectorClass.Init(String bstrConnectorName) at SpatialEcology.SEGME.R.R_Interface.CheckConnection() at SpatialEcology.SEGME.R.R_Interface.EvaluateNoReturn(String command) at SpatialEcology.SEGME.AOExt.UICommandInterpreter.SubmitExec(String Cmd) at SpatialEcology.SEGME.AOExt.UICommandInterpreter.InterpretText()
0 Kudos