got error in build network and linakge map

15 views
Skip to first unread message

Bishal Khanal

unread,
Mar 12, 2025, 5:48:44 AMMar 12
to Linkage Mapper
LINKAGE MAPPER LOG FILE
Start time: 15:21 2025-03-12
Version: 3.1.0
Tool used: Linkage Mapper

SYSTEM AND DATA INFORMATION
Operating system: Windows-10-10.0.19041
Processor type: Intel64 Family 6 Model 76 Stepping 4, GenuineIntel
Total & available RAM: 7.8 GB & 3.2 GB

ARCGIS INFORMATION
Product name & version: Desktop 10.8
Build number: 12790
Product license: ArcInfo
Spatial Analyst status: Available

MODEL INPUTS
Parameter            Value
---------            -----
PROJ_DIR             C:\Users\finproduct\linkagemap
CORE_LYR             C:\Users\user-1\Desktop\data\polygon.shp
CORE_FLD             sn
RESIS_LYR            E:\Bishal\resistancemap\res_30.tif
STEP1                true
STEP2                true
S2_ADJ_METHOD        Cost-Weighted & Euclidean
S2_EUCDIST_FILE      #
STEP3                true
S3_DROP_LCCS         true
STEP4                false
S4_MAX_NN            4
S4_NN_UNIT           Cost-Weighted
S4_CONNECT           true
STEP5                true
S5_TRUNC_RAST        true
S5_CWD_THRESH        200000
CUS_BUF_DIST         #
CUS_MAX_CWD          #
CUS_MAX_EUCDIST      #
CUS_OUTPUT_MB        #
CUS_SET_FILE         #

Custom Settings
CALCNONNORMLCCS      False
MINCOSTDIST          None
MINEUCDIST           None
SAVENORMLCCS         True
SIMPLIFY_CORES       True

INPUT METADATA
Core layer: polygon.shp
Data type: ShapeFile
Feature type: Simple
Shape type : Polygon
Number of cores: 6
Coordinate system of core layer: GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],VERTCS['EGM96_Geoid',VDATUM['EGM96_Geoid'],PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]];-400 -400 11258999068426.2;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision

Raster: res_30.tif
Format: TIFF
Band count: 1
Cell size: 30.0 Meter
Total number of cells: 18862203
Coordinate system of resistance layer: PROJCS['WGS_1984_UTM_Zone_45N',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',87.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 450445547.391054;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision


********************************************************
NOTE: Linkage Mapper tools often work best when run  from ArcCatalog instead of ArcMap.

Setting data frame spatial reference to that of core area feature class.
 
---------------------------------
Starting at step 1.

Making temporary copy of resistance raster for this run.

Making temporary raster of core file for this run.
 
---------------------------------
Running script s1_getAdjacencies.py
Adjacency files will be written to C:\Users\finproduct\linkagemap\datapass\adj

Calculating cost-weighted distance adjacency
Starting cost-weighted distance allocation...
Processing cell size: 2.92889057999999E-04

Building output statistics and pyramids for CWD raster.
Cost-weighted distance allocation done.
Task took: 54 seconds.

Calculating adjacencies crossing allocation boundaries...
Task took: 1 minutes and 13 seconds.

---------------------------------
Calculating Euclidean adjacency
Starting Euclidean adjacency processing...

Euclidean distance allocation done.
Task took: 44 seconds.

Calculating adjacencies crossing allocation boundaries...
Task took: 1 minutes and 21 seconds.

 
---------------------------------
Running script s2_buildNetwork.py
Simplifying polygons for core pair distance calculations

Finding distances between cores using Generate Near Table.
There are 9 adjacent core pairs to process.
10 percent done
20 percent done
30 percent done
40 percent done
50 percent done
60 percent done
70 percent done
80 percent done
Task took: 5 seconds.

Distance file C:\Users\finproduct\linkagemap\polygon.shp_dists.txt generated.

Core area distance list loaded.
number of pairwise distances = 9
 
---------------------------------
Removed 0 duplicate core pairs in Euclidean distance table.

After removing duplicates and distances that exceed maximum,
there are 9 pairwise distances.  Max core ID number is 6.
Cost-weighted adjacency file loaded.
Creating link table

Keeping all adjacent links


Checking for corridors that are too long to map.
Writing C:\Users\finproduct\linkagemap\datapass\linkTable_s2.csv
There are 9 links in the table.
This includes 9 potential corridor links.
Creating shapefiles with linework for links.

Linework shapefiles written.
 
---------------------------------
Running script s3_calcCwds.py
---------------------------------
NOT using bounding circles in cost distance calculations.

Looking for C:\Users\finproduct\linkagemap\datapass\linkTable_s2.csv
There are 9 links in the table.
This includes 9 potential corridor links.

Number of core areas to connect: 6

Checking for corridors that are too long to map.
Creating core area raster.

Starting cost distance calculations.

---------------------------------
Target core areas for core area #1 = [2 3 4 6]
---------------------------------
Geoprocessing error on **line 743** of lm_util.py in Linkage Mapper Version 3.1.0:
 
---------------------------------
ERROR 999999: Error executing function.
Failed to execute (RasterToPolyline).

---------------------------------

********************************************************
NOTE: Linkage Mapper tools often work best when run  from ArcCatalog instead of ArcMap.


Stop time: Wed Mar 12 15:27:11 2025


---------------------------------
A record of run settings and messages can be found in your log directory:
C:\Users\finproduct\linkagemap\run_history\log
---------------------------------
 

Stop time: Wed Mar 12 15:27:11 2025


2025_03_12_1521_Linkage Mapper.txt

John Gallo

unread,
Mar 12, 2025, 1:46:46 PMMar 12
to linkage...@googlegroups.com
Hi Bishal,

For starters, make sure your cores layer and resistance later are in the exact same projection/coordinate system.

If that did not work please share the next log.

Thanks,

John

--
You received this message because you are subscribed to the Google Groups "Linkage Mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linkage-mappe...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/linkage-mapper/07705775-9f48-4fd9-b99a-29b1027272a6n%40googlegroups.com.


--
John A. Gallo, Ph.D.
Project Director
LinkageMapper.org

and

Senior Conservation Scientist
Conservation Biology Institute

Bishal Khanal

unread,
Mar 13, 2025, 2:12:34 AMMar 13
to linkage...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages