FMestre1 / lconnect

Simple tools to compute landscape connectivity metrics
6 stars 3 forks source link

Troubles importing and converting a shapefile to an object of class "lconnect" #2

Closed ManuelSpinola closed 3 years ago

ManuelSpinola commented 3 years ago

Very nice package.

I am having problems importing and converting a shapefile to an object of class "lconnect".

I see that my shapefile is a multipolygon, and the vec_projected.shp in the example is a polygon.

Could be this the issue?

bmsasilva commented 3 years ago

Hi Manuel, that's probably the problem. The package assumes that each polygon has its own identity. In a multipolygon shapefile there may be several polygons with the same identity which can be problematic. Can you share that particular shapefile (or at least a clip of the shapefile) so that we can try to find out exactly what's happening?

ManuelSpinola commented 3 years ago

Thank you very much Bruno.

I converted from MULTIPOLYGON to POLYGON and it works.

Manuel

El mar, 6 abr 2021 a las 3:08, Bruno Miguel Silva @.***>) escribió:

Hi Manuel, that's probably the problem. The package assumes that each polygon has its own identity. In a multipolygon shapefile there may be several polygons with the same identity which can be problematic. Can you share that particular shapefile (or at least a clip of the shapefile) so that we can try to find out exactly what's happening?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FMestre1/lconnect/issues/2#issuecomment-813961348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFI3FB7QWRGPIUC7TLOM2R3THLFP3ANCNFSM42NQSWRQ .

-- Manuel Spínola, Ph.D. Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA @. @.> @.*** Teléfono: (506) 8706 - 4662 Personal website: Lobito de río https://sites.google.com/site/lobitoderio/ Institutional website: ICOMVIS http://www.icomvis.una.ac.cr/