Re: [postgis-users] using && operator

2010-08-20 Thread Aman Verma
Hi, It looks like you're having a little bit of trouble with the SQL. That is understandable though, your problem is a little tricky, because it requires you to nest a query. You should first note that it is not possible to have two FROM statements in a single query. Start by breaking down the

Re: [postgis-users] QGIS requires

2010-08-18 Thread Aman Verma
Hi, Yes, there is a way to do this. First, you have to create a 'sequence'. But you only have to do this once. It won't really matter if several different tables are using the same sequence in your situation. create sequence sq; -- You only have to do this once. You could also make a temporar

Re: [postgis-users] shp2pgsql fails on malformed integer attribute

2010-08-14 Thread Aman Verma
Hi, I understand why would you be reluctant to do automatic correction. However, the shapelib library, which shp2pgsql directly uses, does do automatic correction. I agree: any mistake in the dbf should be reported. However, I believe that, at the very least, a switch should be supported that

[postgis-users] shp2pgsql fails on malformed integer attribute

2010-08-13 Thread Aman Verma
Hi everybody, This is my first post to the list. Please let me know (flame) if this is not a suitable place to post. If you use shp2pgsql to upload a shapefile with an attribute table that has a malformed integer (like a letter), shp2pgsql will not correct it, and the upload will fail. Normal