postgis 0.1.4

An extension to rust-postgres, adds support for PostGIS.
docs.rs failed to build postgis-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: postgis-0.9.0

rust-postgis

PostGIS helper library.

Build Status Crates.io

  • PostGIS type helper
  • GCJ02 support
  • Type-safe SRID support

HowTo

use postgres::{Connection, SslMode};
use postgis::{Point, LineString, WGS843};

fn main() {
    // conn ....
    let stmt = conn.prepare("SELECT * FROM busline").unwrap();
    for row in stmt.query(&[]).unwrap() {
        println!(">>>>>> {}", row.get::<_, LineString<Point>>("route"));
    }
}