DS4PS / cpp-529-spr-2021

Course shell for CPP 529 Community Analytics
http://ds4ps.org/cpp-529-spr-2021/
2 stars 0 forks source link

Final: Error in Transforming Data #36

Open lindsaysmith12 opened 6 months ago

lindsaysmith12 commented 6 months ago

@AntJam-Howell Hello! When I try transforming the data, I keep getting the following error message:

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': empty geometries are not supported by sp classes: conversion failed.

Here is my code:

sandiego <- geojson_read( "/Users/lindsaysmith/documents/PAF 516/sandiego_dorling.geojson", what="sp" )

# reproject the map 
sd2 <- spTransform( sandiego, CRS("+init=epsg:3395") )

Thank you!

lindsaysmith12 commented 6 months ago

@AntJam-Howell I was able to resave it and then reload it and it ending up working! You can disregard my message. Thanks!

AntJam-Howell commented 6 months ago

Hi, Glad you were able to figure it out. Best

-- Anthony Howell Director, Center for Technology, Data, and Society, Associate Professor, Public Policy Arizona State University

On Sat, Apr 27, 2024 at 12:25 PM lindsaysmith12 @.***> wrote:

@AntJam-Howell https://urldefense.com/v3/__https://github.com/AntJam-Howell__;!!IKRxdwAv5BmarQ!fy7ZD5ch9tUQMNrc2YKB6V4T9AH8XjU8qcY5sqEBLl2dIZOcfb3s0XLRvm7qUgCosVWlR_EPEOm-hAzifwFhD7_JvD-gnw$ I was able to resave it and then reload it and it ending up working! You can disregard my message. Thanks!

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/DS4PS/cpp-529-spr-2021/issues/36*issuecomment-2081158446__;Iw!!IKRxdwAv5BmarQ!fy7ZD5ch9tUQMNrc2YKB6V4T9AH8XjU8qcY5sqEBLl2dIZOcfb3s0XLRvm7qUgCosVWlR_EPEOm-hAzifwFhD7_C_9Fk7Q$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMK2Y763YYC4GBDBAESJYO3Y7P3THAVCNFSM6AAAAABG4J5WMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGE2TQNBUGY__;!!IKRxdwAv5BmarQ!fy7ZD5ch9tUQMNrc2YKB6V4T9AH8XjU8qcY5sqEBLl2dIZOcfb3s0XLRvm7qUgCosVWlR_EPEOm-hAzifwFhD78oj_QE9g$ . You are receiving this because you were mentioned.Message ID: @.***>