peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
125 stars 19 forks source link

Instruction to use GEOS #599

Closed AlexandreBorowczyk closed 3 months ago

AlexandreBorowczyk commented 4 months ago

Hi, I'm relatively new to Golang and I'm having issues accessing the GOES packages. I'm using VScode on Ubuntu 22.04 and I'm unable to import geos.

I've followed the instruction here while choosing the latest geos

I've install simplefeature with go get github.com/peterstace/simplefeatures/geos go get github.com/peterstace/simplefeatures/geom

then go mod tidy

Yet it seems like I still can't import it.

Any help would be helpful!

peterstace commented 3 months ago

Yet it seems like I still can't import it.

A few questions:

AlexandreBorowczyk commented 3 months ago

The line in the go.mod is the following: github.com/peterstace/simplefeatures v0.47.1

When I try to import it, as soon as I save the file vscode removed the import. Maybe it's a vscode issue?

AlexandreBorowczyk commented 3 months ago

So I bypassed vscode and the code build and executes So it seem it's a vscode issue

peterstace commented 3 months ago

I don't use vscode and don't know much about how it works so I can't really offer any suggestions. Sorry!

AlexandreBorowczyk commented 3 months ago

If this can help anyone, I've manage to fixed the issue by building the code without vscode then go mod tidy this added what was required to the mod.sum and vscode start recognizing the package afterward