Open stodge opened 10 years ago
Oh, that's right, I only used this feature with OSM data. To support custom PostGIS we would need to specify which column contains the geo data? Or should we check the column type and use the first? What do you think?
I suppose the column could be specified in the json. Maybe:
{
"layers": [
{
"id": "anotherlayer",
"src": "postgis:dbname=dbname user=username password=password host=localhost",
"table": "gis_polyline",
"column": "the_geom",
"query": "layer_id = 19"
}
]
}
I assume the query option just specifies a WHERE clause?
yes, or rather a part of the WERE clause if you're using the bbox filter:
Btw, I just discovered that I already implemented automatic detection of geo column but I just forgot to use it in the bbox query.. Will fix it.
It looks like Kartograph assumes a certain POSTGIS table structure:
I assume that Kartograph therefore assumes you are using map data from OpenStreetMap in POSTGIS? Is there anyway to use custom map data from POSTGIS? Thanks