# rust-postgis
PostGIS helper library.
[](https://travis-ci.org/andelf/rust-postgis)
[](https://crates.io/crates/postgis)
- PostGIS type helper
- GCJ02 support
- Type-safe SRID support
## HowTo
```rust
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"));
}
}
```