wwk3j/sshPostGIS — pull request #1 by erochest (2012-02-23 20:55:35+00:00)
Title: Working Layer import

Hey Wing,

This fixes setting up layers using the REST API. Here's what I've done.

1. I pulled the parts of the code I'm interested in into a separate file (`gscoverage.py`). I refactored that pretty heavily to make it easier to work with. This doesn't require ArcGIS, but it assumes that you already have data in PostGIS. For testing, I'm using some data I'd previously loaded from ArcGIS using QuickExport. *You'll need to take what's in this file and integrate it back into `sshPostGIS.py`, and you may need to find some way to query the user for the layer name.*
2. In `gscoverage.py`, instead of getting information about the layer from ArcGIS, I'm querying PostGIS. I'm using that to get the list of attributes and the bounding box. Both are pretty standard Postgres/PostGIS queries, I think.

Let me know if you have any questions.
Eric