What URL are you attempting to use to get to the server?
You mention WSGI. Do you have Apache running in front or have you turned it off?
I would try going to localhost:8080/vector-postgis-points/preview.html and seeing what happens.
(I'm sorry I forget the URL structure but you get the idea)
On Friday, September 7, 2012 5:29:00 AM UTC+3, Edward Sargisson wrote:What URL are you attempting to use to get to the server?
You mention WSGI. Do you have Apache running in front or have you turned it off?
I would try going to localhost:8080/vector-postgis-points/preview.html and seeing what happens.
(I'm sorry I forget the URL structure but you get the idea)Thanks for the reply.I haven't installed apache, i am running the werkzeug wsgi on 8080. Its just a simple wsgi. When i set up things correctly i will set up an apache server, but i wanted to make things work on the basic stuff first.After your post, I noticed that I hadn't put vector-postgis-points instead of osm in the link so i changed it to the cfg file to osm, and now i get a blank page with a bunch of errors, which is promising. I will try to sort things out and find out whats going on, and i will get back to you.Thanks again
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
Thanks for sticking with this. I'm seeing so much interest in Tilestache vector support lately, along with all the pitfalls that come along with PostGIS and GDAL bindings that I may add a test script of some sort, just to make it easier to surface configuration or data problems in a structured way. Stay tuned for that.
On Sep 9, 2012, at 10:01 AM, Thanos D. wrote:
> As for the proj driver/package: the proj package was installed but the pyproj package wasn't. I installed it but still no change on the errors.
> I then checked the db to find the srid of the data. it turns out that osm2psql imports the data in a way that the geometry colum is renamed to "way" instead of "the_geom". I thought that might be the problem, but after altering the column name to the_geom, i got errors that said that couldn't find the way column, so i changed it back to the way it was.
> To find the srid i ran:
> SELECT ST_SRID(way) FROM planet_osm_point LIMIT 1;
> st_srid
> ---------
> 900913
> (1 row)
This looks right to me. Osm2pgsql does indeed use "way" as the geometry column name, in contrast to shp2pgsql which uses "the_geom". The selection is fairly arbitrary, and you should check the contents of your geometry_columns table to see what Postgis will report when asked. Also, can you send us the row in your spatial_ref_sys table that has srid=900913? I'm curious what your copy of PostGIS internally understands 900913 to mean.
> I also checked if tilestache can connect to the db by changing the password, and i got a new db error, so i assume that the initial connection was fine.
> So here is what i got so far:
> Tilestache is connecting to the db and queries the right columns, proj and pyproj are installed, SRID is 900913 in my data. I dont know how to check if Tilestashe can find the proj libraries.
Tilestache Vector hands off all responsibility to the osgeo.ogr library, which talks to datasources like shapefiles and PostGIS. If osgeo is installed correctly, which it sounds like it might be, then that's where the projection business will happen.
> Finally i tried to see what the stamen terrain has done from here: https://github.com/Citytracking/Terrain/blob/master/tilestache.cfg but i didn't see any vector/geojson layers.
> I don't get what i am missing... It must be something to the projection as you guys say it is, but i don't know how to test if tilestache has the right drivers or the right paths to use them.
We don't use vector layers for Terrain, I'm not sure how that came up in this thread.
-mike.
----------------------------------------------------------------
michal migurski- mi...@stamen.com
415.558.1610
Hi, you need to download the actual python script, not an HTML file.
It would also be better if you pulled an entire copy of TileStache from Github used the script according to the docs:
python -m TileStache.Vector.Test
-mike.