You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First thanks for this awesome module. Second, I have a question regarding the implementation of PostGIS tables. When I try to replace what I was doing using shapefile with postGIS queries, I get an error message stating the SRIDs are not matching:
cur.execute('SELECT "%s" FROM %s WHERE %s' % ('", "'.join(fields), self.table, query))
psycopg2.InternalError: Operation on mixed SRID geometries
I am only using the US States table with SRID 4326 for this test. Here is my config:
"layers": {
"slayer":{"src": "postgis:dbname=postgres user= postgres password= host=localhost",
"table": "states",
"attributes": {
"id": "stusps"}
}
},
Do I need to set the projection or add a bbox when using postgis?
Thanks,
Julien
The text was updated successfully, but these errors were encountered:
Hi,
First thanks for this awesome module. Second, I have a question regarding the implementation of PostGIS tables. When I try to replace what I was doing using shapefile with postGIS queries, I get an error message stating the SRIDs are not matching:
cur.execute('SELECT "%s" FROM %s WHERE %s' % ('", "'.join(fields), self.table, query))
psycopg2.InternalError: Operation on mixed SRID geometries
I am only using the US States table with SRID 4326 for this test. Here is my config:
"layers": {
"slayer":{"src": "postgis:dbname=postgres user= postgres password= host=localhost",
"table": "states",
"attributes": {
"id": "stusps"}
}
},
Do I need to set the projection or add a bbox when using postgis?
Thanks,
Julien
The text was updated successfully, but these errors were encountered: