Skip to content

Commit 9c7060f

Browse files
authored
Merge pull request #180 from JuliaGeometry/sd/fixgeo
use concrete points
2 parents 9b2d1fc + 67c080a commit 9c7060f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geointerface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ GeoInterface.getgeom(::PolyhedralSurfaceTrait, g::AbstractMesh, i) = g[i]
8080

8181
function GeoInterface.convert(::Type{Point}, type::PointTrait, geom)
8282
dim = Int(ncoord(geom))
83-
return Point{dim}(GeoInterface.coordinates(geom))
83+
return Point{dim, Float64}(GeoInterface.coordinates(geom))
8484
end
8585

8686
function GeoInterface.convert(::Type{LineString}, type::LineStringTrait, geom)
8787
dim = Int(ncoord(geom))
88-
return LineString([Point{dim}(GeoInterface.coordinates(p)) for p in getgeom(geom)])
88+
return LineString([Point{dim, Float64}(GeoInterface.coordinates(p)) for p in getgeom(geom)])
8989
end
9090

9191
function GeoInterface.convert(::Type{Polygon}, type::PolygonTrait, geom)
@@ -101,7 +101,7 @@ end
101101

102102
function GeoInterface.convert(::Type{MultiPoint}, type::MultiPointTrait, geom)
103103
dim = Int(ncoord(geom))
104-
return MultiPoint([Point{dim}(GeoInterface.coordinates(p)) for p in getgeom(geom)])
104+
return MultiPoint([Point{dim, Float64}(GeoInterface.coordinates(p)) for p in getgeom(geom)])
105105
end
106106

107107
function GeoInterface.convert(::Type{MultiLineString}, type::MultiLineStringTrait, geom)

0 commit comments

Comments
 (0)