linkage-mapper icon indicating copy to clipboard operation
linkage-mapper copied to clipboard

Linkage Mapper Version 3.1-Beta **Line 743**

Open HectorRPabon opened this issue 1 year ago • 3 comments

Running Linkage mapper I get the following error

_Starting cost distance calculations.

Target core areas for core area #1 = [2 4 5]

Geoprocessing error on line 743 of lm_util.py in Linkage Mapper Version 3.1-Beta:

ERROR 999999: Error executing function. Failed to execute (RasterToPolyline)._

IN lm_util.py I check the code is inside the LCP Shapefile Functions and the 743 line is the following

742 arcpy.RasterToPolyline_conversion(lcpRas, lcpline, "NODATA", "", 743 "NO_SIMPLIFY")

I am running for ArcCatalog, from the root, the i couldn't fix my error, I copied my log file bellow. Thanks for the suppor

2025_02_14_1531_Linkage Mapper.txt

HectorRPabon avatar Feb 14 '25 20:02 HectorRPabon

ERROR 999999 is too generic to diagnose. You could try updating line 743 in lm_util.py to:

arcpy.conversion.RasterToPolyline(lcpRas, lcpline, "NODATA", "", 
				  "NO_SIMPLIFY")

dkav avatar Feb 14 '25 22:02 dkav

Thanks Darren. Hector, I also notice that your resistance surface is ~500 m a cell. all the cores need to contain at least one resistance surface cell.

johngallo avatar Feb 15 '25 00:02 johngallo

Dear John thankx so much for your answer, yes we are running a huge area in Colombian Amazon, and we are making proof if it works, we could finally run only reprojecting from UTM 18N to the MAGNA-SIRGAS projected in the national origin, that wire cause both layers was in the same SRC. However, I greatly appreciate your response and I hope to share the results soon.

HectorRPabon avatar Feb 20 '25 01:02 HectorRPabon