Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

coordinates columns

19 views
Skip to first unread message

Claire de Walque

unread,
Feb 25, 2025, 2:54:17 PMFeb 25
to Biodiverse Users
Hello Dr Shawn. I'm learning to use Biodiverse for my thesis about the Spatial Phylogenetics of Amazonian primates. I struggle to download my BasaData into biodiverse. I can't download shapefile, because I receive this kind of error message "Malformed UTF-8 character (fatal) at <embedded>/Carp.pm line 456, …". I checked if the shapefile had all the components (as .dbf .cpg) and I convert it through R to fix the encoding (UTF-8). It still doesn't work. But this ins't the main issue since I can still download a .csv. 
My main problem is that my data doesn't have a x and an y columns. Indeed, I just have a columns which contains coordinates of polygons, and it looks like this (for just one species) : 
MULTIPOLYGON (((-69.8172 -6.778864, -69.8203 -6.819464, -69.8237 -6.830964, -69.8306 -6.854764, -69.8327 -6.861964, -69.8401 -6.886064, -69.8421 -6.894264, -69.8427 -6.909764, -69.8436 -6.931364, -69.8446 -6.961964, -69.8453 -6.972264, -69.8462 -6.974564, -69.8505 -6.982264, -69.8733 -7.025264, -69.8772 -7.039864, -69.8858 -7.072064, -69.9089 -7.084464, -69.9666 -7.116364, -69.9765 -7.116564, -69.9948 -7.118564, -70.013 -7.120364, -70.0293 -7.121964, -70.0513 -7.141064, -70.0761 -7.162564, -70.1055 -7.189164, -70.1126 -7.197764, -70.1231 -7.204264, -70.144 -7.220364, -70.154 -7.228064, -70.1674 -7.235964, -70.1749 -7.241964, -70.1915 -7.252964, -70.2023 -7.265964, -70.2115 -7.276964, -70.2227 -7.290364, ... 

So if I transform it into x and y columns, I will have hundreds of rows for each species, and I will just have coordinates for the outside of the polygones, so I won't have distribution for the inside of each polygone. What do you recommend? Biodiverse is able to understand polygons data? 

I really thank you in advance for your answer! 

Claire de Walque 



Shawn Laffan

unread,
Feb 25, 2025, 10:42:43 PMFeb 25
to biodiver...@googlegroups.com
Hello Claire,

Biodiverse will import polygons (once I fix the proj.db error you reported). 

Some of the options are described in this post:  https://biodiverse-analysis-software.blogspot.com/2018/12/import-polygon-and-polyline-data.html

In terms of the UTF8 error, are you able to send me a copy of the shapefile you are using?  That will allow me to replicate it locally.

Regards,
Shawn.



On 25/02/2025 01:39, Claire de Walque wrote:

You don't often get email from dewal...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "Biodiverse Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biodiverse-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/biodiverse-users/58d7b791-52f4-4f41-b090-2ea140b57991n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages