[Mapserver-users] Query OGR Datasource?
Zak James
zak-ms at hoppsan.org
Sat Jan 31 07:18:58 PST 2004
Joost,
Assuming the ogr connection is set up correctly, you should have query
access to any attributes that are present in the table alongside the
x,y geometry. It should behave like a shapefile dbf in that respect.
Make sure you have TEMPLATE defined for the layer. Are you setting this
up via mapscript or cgi mode?
If you don't get what you expect, use ogrinfo -ro file.ovf from a shell
to determine what's available.
zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
On Jan 30, 2004, at 4:55 PM, Van Ulden, Joost wrote:
> Hi all,
>
> I gather that it is possible to query an OGR datasource just like a
> shapefile. What about a OGRVRTDataSource? Has anyone done this? I
> can't
> find an example and have tried it the same way as a I would for a
> shapefile.
> Have to admit, I am not sure how that would work....
>
> As always, thank you in advance.
>
> ============================================
> Joost van Ulden
> Programmer/Analyst
> Natural Resources Canada / Ressources naturelles Canada
> Geological Survey of Canada / Commission geologique du Canada
> 101 - 605 Robson Street / 101 - 605 rue Robson
> Vancouver, B.C. / Vancouver (C.-B.)
> V6B 5J3
> Office/Bureau: 604.666.7525
> fax/telecopieur: 604.666.1124
> jvanulde at nrcan.gc.ca
> ============================================
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list