Skip to content

Commit

Permalink
cherry-pick "restore Quicklook preview" from embed-geos-dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Cremaschi committed Oct 30, 2015
1 parent ae9c0f5 commit e420bd4
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 75 deletions.
2 changes: 1 addition & 1 deletion GEOSPlayground.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import MapKit
//:
//: Geometries can be deserialized from and serialized back to their Well Known Text (WKT) or Well Known Binary (WKB) representations, as they are defined in the _[Simple features for SQL](http://www.opengeospatial.org/standards/sfa)_ specification.
//: The default spatial reference system for geometry fields is WGS84 (meaning the SRID is 4326) – in other words, the geometry coordinates are in longitude, latitude pairs in units of degrees.

// Create a POINT from its WKT representation.
let point = Waypoint(WKT: "POINT(10 45)")

Expand Down Expand Up @@ -68,6 +67,7 @@ let shape1 = point!.mapShape()
//: This means that while debugging you can inspect complex geometries and see what they represent: just stop on the variable with the mouse cursor or select the Geometry instance and press backspace in the Debug Area to see a preview.
//: In Playgrounds you can display them just as any other object, like this:
geometry2

//: ### GEOJSON parsing
//:
//: Your geometries can be loaded from a GEOJSON file.
Expand Down
Loading

0 comments on commit e420bd4

Please sign in to comment.