Skip to content

Commit 859f829

Browse files
evetionasinghvi17
andauthored
Fix GeoInterface is not defined in GeometryBasics (#366)
* Fix GeoInterface is not defined in GeometryBasics * Update dependencies in package.json --------- Co-authored-by: Anshul Singhvi <anshulsinghvi@gmail.com>
1 parent edb3aab commit 859f829

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"devDependencies": {
3-
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.15.0",
43
"@types/d3-format": "^3.0.4",
54
"@types/node": "^22.13.9",
6-
"markdown-it": "^14.1.0",
7-
"markdown-it-mathjax3": "^4.3.2",
8-
"vitepress": "^1.6.3",
9-
"vitepress-plugin-tabs": "^0.6.0"
5+
"@types/markdown-it-footnote": "^3.0.4"
106
},
117
"scripts": {
128
"docs:dev": "vitepress dev build/.documenter",
139
"docs:build": "vitepress build build/.documenter",
1410
"docs:preview": "vitepress preview build/.documenter"
1511
},
1612
"dependencies": {
13+
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.15.0",
14+
"@mdit/plugin-mathjax": "^0.25.0",
15+
"@mdit/plugin-tex": "^0.23.1",
1716
"d3-format": "^3.1.0",
18-
"markdown-it-footnote": "^4.0.0"
17+
"markdown-it-footnote": "^4.0.0",
18+
"markdown-it": "^14.1.0",
19+
"vitepress": "^1.6.3",
20+
"vitepress-plugin-tabs": "^0.6.0"
1921
}
20-
}
22+
}

src/geojson.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ function _mls2ls(mls::GeometryBasics.MultiLineString{N, T}) where {N, T}
134134
points = Vector{Point{N, T}}()
135135
sizehint!(
136136
points,
137-
sum(GeometryBasics.GeoInterface.npoint, mls.linestrings) #= length of individual linestrings =# +
137+
sum(GeoInterface.npoint, mls.linestrings) #= length of individual linestrings =# +
138138
length(mls.linestrings) #= NaN points between linestrings =#
139139
)
140140
for ls in mls
141141
append!(points, GeometryBasics.coordinates(ls))
142142
push!(points, Point{N, T}(NaN))
143143
end
144144
return GeometryBasics.LineString(points)
145-
end
145+
end

0 commit comments

Comments
 (0)