Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need CONVERT_TO_LINEAR -nlt for geometry read #213

Open
mdsumner opened this issue Aug 19, 2023 · 1 comment
Open

need CONVERT_TO_LINEAR -nlt for geometry read #213

mdsumner opened this issue Aug 19, 2023 · 1 comment

Comments

@mdsumner
Copy link
Member

or general conversion from as yet unsupported types in wk

pl <- place::place("Hobart", wh = 1.852e3 * 9, family = "EPSG:3577")

dea <- "WFS:http://geoserver.dea.ga.gov.au/geoserver/wfs?OUTPUT_FORMAT=SHAPE-ZIP"
library(vapour)
layers <- vapour_layer_names(dea)
fields <- vapour_read_fields(dea, extent = pl$extent, 
                             sql = sprintf("SELECT * FROM \"%s\"", layers[1]))
g <- vapour_read_geometry(dea, extent = pl$extent, 
                        sql = sprintf("SELECT geom FROM \"%s\"", layers[1]))

plot(wk::as_wkb(sf::st_cast(sf::st_as_sfc(g), "MULTILINESTRING")))

image

@mdsumner
Copy link
Member Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant