@@ -15,7 +15,7 @@ GEOMTYPE = Dict( GEOS_POINT => :Point,
1515 GEOS_GEOMETRYCOLLECTION => :GeometryCollection )
1616
1717
18- function geomFromWKT (geom:: Compat. String )
18+ function geomFromWKT (geom:: String )
1919 result = GEOSGeomFromWKT (geom)
2020 if result == C_NULL
2121 error (" LibGEOS: Error in GEOSGeomFromWKT" )
@@ -108,7 +108,7 @@ function getZ!(ptr::GEOSCoordSeq, index::Integer, coord::Vector{Float64})
108108 result
109109end
110110
111- let out = Array ( UInt32, 1 )
111+ let out = Array { UInt32} ( 1 )
112112 global getSize
113113 function getSize (ptr:: GEOSCoordSeq )
114114 # Get size info from a Coordinate Sequence (Return 0 on exception)
@@ -120,7 +120,7 @@ let out = Array(UInt32, 1)
120120 end
121121end
122122
123- let out = Array ( UInt32, 1 )
123+ let out = Array { UInt32} ( 1 )
124124 global getDimensions
125125 function getDimensions (ptr:: GEOSCoordSeq )
126126 # Get dimensions info from a Coordinate Sequence (Return 0 on exception)
@@ -195,7 +195,7 @@ function createCoordSeq(coords::Vector{Vector{Float64}})
195195 coordinates
196196end
197197
198- let out = Array ( Float64, 1 )
198+ let out = Array { Float64} ( 1 )
199199 global getX
200200 function getX (ptr:: GEOSCoordSeq , i:: Integer )
201201 getX! (ptr, i, out)
205205
206206function getX (ptr:: GEOSCoordSeq )
207207 ncoords = getSize (ptr)
208- xcoords = Array ( Float64, ncoords)
208+ xcoords = Array { Float64} ( ncoords)
209209 start = pointer (xcoords)
210210 floatsize = sizeof (Float64)
211211 for i= 0 : ncoords- 1
@@ -214,18 +214,18 @@ function getX(ptr::GEOSCoordSeq)
214214 xcoords
215215end
216216
217- let out = Array ( Float64, 1 )
217+ let out = Array { Float64} ( 1 )
218218 global getY
219219 function getY (ptr:: GEOSCoordSeq , i:: Integer )
220- out = Array ( Float64, 1 )
220+ out = Array { Float64} ( 1 )
221221 getY! (ptr, i, out)
222222 out[1 ]
223223 end
224224end
225225
226226function getY (ptr:: GEOSCoordSeq )
227227 ncoords = getSize (ptr)
228- ycoords = Array ( Float64, ncoords)
228+ ycoords = Array { Float64} ( ncoords)
229229 start = pointer (ycoords)
230230 floatsize = sizeof (Float64)
231231 for i= 0 : ncoords- 1
@@ -234,7 +234,7 @@ function getY(ptr::GEOSCoordSeq)
234234 ycoords
235235end
236236
237- let out = Array ( Float64, 1 )
237+ let out = Array { Float64} ( 1 )
238238 global getZ
239239 function getZ (ptr:: GEOSCoordSeq , i:: Integer )
240240 getZ! (ptr, i, out)
244244
245245function getZ (ptr:: GEOSCoordSeq )
246246 ncoords = getSize (ptr)
247- zcoords = Array ( Float64, ncoords)
247+ zcoords = Array { Float64} ( ncoords)
248248 start = pointer (zcoords)
249249 floatsize = sizeof (Float64)
250250 for i= 0 : ncoords- 1
255255
256256function getCoordinates (ptr:: GEOSCoordSeq , i:: Integer )
257257 ndim = getDimensions (ptr)
258- coord = Array ( Float64, ndim)
258+ coord = Array { Float64} ( ndim)
259259 start = pointer (coord)
260260 floatsize = sizeof (Float64)
261261 GEOSCoordSeq_getX (ptr, i- 1 , start)
@@ -919,7 +919,7 @@ getGeometries(ptr::GEOSGeom) = GEOSGeom[getGeometry(ptr, i) for i=1:numGeometrie
919919
920920# Converts Geometry to normal form (or canonical form).
921921# Return -1 on exception, 0 otherwise.
922- function normalize! (ptr:: GEOSGeom )
922+ function Base . normalize! (ptr:: GEOSGeom )
923923 result = GEOSNormalize (ptr)
924924 if result == - 1
925925 error (" LibGEOS: Error in GEOSNormalize" )
@@ -946,7 +946,7 @@ function numPoints(ptr::GEOSGeom)
946946end
947947
948948# Return -1 on exception, Geometry must be a Point.
949- let out = Array ( Float64, 1 )
949+ let out = Array { Float64} ( 1 )
950950 global getGeomX
951951 function getGeomX (ptr:: GEOSGeom )
952952 result = GEOSGeomGetX (ptr, pointer (out))
@@ -957,7 +957,7 @@ let out = Array(Float64, 1)
957957 end
958958end
959959
960- let out = Array ( Float64, 1 )
960+ let out = Array { Float64} ( 1 )
961961 global getGeomY
962962 function getGeomY (ptr:: GEOSGeom )
963963 result = GEOSGeomGetY (ptr, pointer (out))
@@ -1052,7 +1052,7 @@ end
10521052# -----
10531053# Misc functions
10541054# -----
1055- let out = Array ( Float64, 1 )
1055+ let out = Array { Float64} ( 1 )
10561056 global geomArea
10571057 function geomArea (ptr:: GEOSGeom )
10581058 # Return 0 on exception, 1 otherwise
@@ -1064,7 +1064,7 @@ let out = Array(Float64, 1)
10641064 end
10651065end
10661066
1067- let out = Array ( Float64, 1 )
1067+ let out = Array { Float64} ( 1 )
10681068 global geomLength
10691069 function geomLength (ptr:: GEOSGeom )
10701070 # Return 0 on exception, 1 otherwise
@@ -1076,7 +1076,7 @@ let out = Array(Float64, 1)
10761076 end
10771077end
10781078
1079- let out = Array ( Float64, 1 )
1079+ let out = Array { Float64} ( 1 )
10801080 global geomDistance
10811081 function geomDistance (g1:: GEOSGeom , g2:: GEOSGeom )
10821082 # Return 0 on exception, 1 otherwise
@@ -1088,7 +1088,7 @@ let out = Array(Float64, 1)
10881088 end
10891089end
10901090
1091- let out = Array ( Float64, 1 )
1091+ let out = Array { Float64} ( 1 )
10921092 global hausdorffdistance
10931093 function hausdorffdistance (g1:: GEOSGeom , g2:: GEOSGeom )
10941094 # Return 0 on exception, 1 otherwise
@@ -1100,7 +1100,7 @@ let out = Array(Float64, 1)
11001100 end
11011101end
11021102
1103- let out = Array ( Float64, 1 )
1103+ let out = Array { Float64} ( 1 )
11041104 global hausdorffdistance
11051105 function hausdorffdistance (g1:: GEOSGeom , g2:: GEOSGeom , densifyFrac:: Real )
11061106 # Return 0 on exception, 1 otherwise
0 commit comments