GeoDataFrames.jl icon indicating copy to clipboard operation
GeoDataFrames.jl copied to clipboard

Makie ext

Open ConnectedSystems opened this issue 1 year ago • 2 comments
trafficstars

Draft PR for #66 - currently just a proof of concept.

There's currently some issue with GDAL.jl which prevents successful precompilation. I've resolved it temporarily with:

add [email protected]

~Plotting certain types of polygons currently does not work!~ Now correctly supports points and multipolys but need to test with a wider variety of data.

using Revise, Infiltrator
using GeoMakie, WGLMakie
import GeoDataFrames as GDF
using Downloads

# Point data
if !@isdefined point_gdf_fn
    point_gdf_fn = Downloads.download("https://github.com/ngageoint/GeoPackage/raw/master/docs/examples/java/example.gpkg")
end

point_gdf = GDF.read(point_gdf_fn)
pnt_fig = GDF.plot(point_gdf, :geometry)

# Polygon data
if !@isdefined poly_gdf_fn
    poly_gdf_fn = Downloads.download("http://www.geopackage.org/data/sample1_2.gpkg")
end

poly_gdf = GDF.read(poly_gdf_fn)
poly_fig = GDF.plot(poly_gdf, :Shape)

GDF.plot(poly_gdf)

ConnectedSystems avatar Jul 02 '24 01:07 ConnectedSystems