Skip to content

How to enable st_make_valid in sf on Windows (get sf to link to liblwgeom) #487

@Zedseayou

Description

@Zedseayou

Hi all,

Apologies in advance for some probably fairly naive questions. I am working on Windows and trying to get started using st_make_valid. The info here and on this page indicate that st_make_valid needs sf to be installed from source, with liblwgeom present, for a link to happen when I call library(sf).

I have not been able to figure out what is meant by having liblwgeom "present". I installed PostgreSQL 9.6.5 and PostGIS 2.3.3 from the instructions on this link. I had thought that after doing this liblwgeom would be present, but sf still did not detect it.

This info here from March seems to suggest that a dev version of liblwgeom is needed, but not what that entails? Alternatively, what is meant by sf "detecting" liblwgeom? Do I need to point it somewhere in particular? This previous issue was the only thing I could find on getting sf installed with liblwgeom on Windows, but it did not seem to be the same issue. Is there some other major misunderstanding that I have given a lack of experience with PostGIS in the first place?

Any help would be greatly appreciated, including if this question should be directed elsewhere.

Thanks in advance.

EDIT 2 Oct: Saw some more queries here and here on this. Attempting to get st_buffer trick to work in the meantime!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions