[mapguide-users] OGR and PostgreSQL...can't see data in table

Frank Warmerdam warmerdam at pobox.com
Tue Feb 5 14:40:19 EST 2008


Maciej Skorczewski wrote:
> ok i see it in faq
> 
> i try use query like this...
> 
> ogrinfo -ro PG:dbname=warmerda -sql "SELECT pop_1994 from canada where 
> province_name = 'Alberta'"

Maciej,

Note, if you access a table that way, you are avoiding the normal
feature table access.  Instead of using the -sql option, you should
specify the table/layer name as an argument.  This would be the closest
analog to what FDO and mapguide will do.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapguide-users mailing list