55# GEOSGeom objects to avoid memory leaks, and to GEOSFree()
66# all returned char * (unless const).
77
8- GEOMTYPE = @compat Dict ( GEOS_POINT => :Point ,
9- GEOS_LINESTRING => :LineString ,
10- GEOS_LINEARRING => :LinearRing ,
11- GEOS_POLYGON => :Polygon ,
12- GEOS_MULTIPOINT => :MultiPoint ,
13- GEOS_MULTILINESTRING => :MultiLineString ,
14- GEOS_MULTIPOLYGON => :MultiPolygon ,
15- GEOS_GEOMETRYCOLLECTION => :GeometryCollection )
8+ GEOMTYPE = Dict ( GEOS_POINT => :Point ,
9+ GEOS_LINESTRING => :LineString ,
10+ GEOS_LINEARRING => :LinearRing ,
11+ GEOS_POLYGON => :Polygon ,
12+ GEOS_MULTIPOINT => :MultiPoint ,
13+ GEOS_MULTILINESTRING => :MultiLineString ,
14+ GEOS_MULTIPOLYGON => :MultiPolygon ,
15+ GEOS_GEOMETRYCOLLECTION => :GeometryCollection )
1616
1717
1818function geomFromWKT (geom:: Compat.ASCIIString )
@@ -22,7 +22,7 @@ function geomFromWKT(geom::Compat.ASCIIString)
2222 end
2323 result
2424end
25- geomToWKT (geom:: Ptr{GEOSGeometry} ) = Compat . unsafe_string (GEOSGeomToWKT (geom))
25+ geomToWKT (geom:: Ptr{GEOSGeometry} ) = unsafe_string (GEOSGeomToWKT (geom))
2626
2727# -----
2828# Coordinate Sequence functions
@@ -113,7 +113,7 @@ let out = Array(UInt32, 1)
113113 if result == 0
114114 error (" LibGEOS: Error in GEOSCoordSeq_getSize" )
115115 end
116- @compat Int (out[1 ])
116+ Int (out[1 ])
117117 end
118118end
119119
@@ -125,7 +125,7 @@ let out = Array(UInt32, 1)
125125 if result == 0
126126 error (" LibGEOS: Error in GEOSCoordSeq_getDimensions" )
127127 end
128- @compat Int (out[1 ])
128+ Int (out[1 ])
129129 end
130130end
131131
288288# The user can control the accuracy of the curve approximation by specifying the number of linear segments with which to approximate a curve.
289289
290290# Always returns a polygon. The negative or zero-distance buffer of lines and points is always an empty Polygon.
291- buffer (ptr:: GEOSGeom , width:: Real , quadsegs:: Integer = 8 ) = GEOSBuffer (ptr, width, @compat ( Int32 (quadsegs) ))
291+ buffer (ptr:: GEOSGeom , width:: Real , quadsegs:: Integer = 8 ) = GEOSBuffer (ptr, width, Int32 (quadsegs))
292292
293293# enum GEOSBufCapStyles
294294# enum GEOSBufJoinStyles
552552#
553553# @return a newly allocated geometry, or NULL on exception
554554function delaunayTriangulation (ptr:: GEOSGeom , tol:: Real = 0.0 , onlyEdges:: Bool = false )
555- result = GEOSDelaunayTriangulation (ptr, tol, @compat ( Int32 (onlyEdges) ))
555+ result = GEOSDelaunayTriangulation (ptr, tol, Int32 (onlyEdges))
556556 if result == C_NULL
557557 error (" LibGEOS: Error in GEOSDelaunayTriangulation" )
558558 end
0 commit comments