OGR and XML

Bart van den Eijnden bartvde at XS4ALL.NL
Fri Sep 2 14:12:56 EDT 2005


You need this type of LAYER in your MAPFILE:

CONNECTIONTYPE OGR
CONNECTION "virtual.ovf"
DATA "mylayer" # the name of the OGRVrtLayer

Always check your ovf file first with the ogrinfo tool.

Best regards,
Bart

On Fri, 02 Sep 2005 19:27:12 +0200, Davi Duchovni <duchovni at GMAIL.COM>  
wrote:

> Please I am creating the Virtual Spatial Data but i don´t know how to
> create the xml file and how to link the map file whith the xml file!!!
>
> please, could any one help me?!?!?!
>
> follow the file of what i´m doind!!!
>
> thanks
>
> <OGRVRTDataSource>
>
>    <OGRVRTLayer name="teste">
>        <SrcDataSource>ODBC:user/pass at DNS</SrcDataSource>
>        <SrcLayer>teste</SrcLayer>
>        <GeometryType>wkbPoint</GeometryType>
>        <LayerSRS>WGS84</LayerSRS>
>        <GeometryField encoding="PointFromColumns" x="x" y="y"/>
>    </OGRVRTLayer>
>
> </OGRVRTDataSource>
>
>
> LAYER
>    NAME teste
>    CONNECTIONTYPE OGR
>    CONNECTION "ODBC:user/pass at DNS"
>    DATA "select X,Y from vw_aluno_xy where ID = 107581"
>    STATUS ON
>    TYPE POINT
>
>
> thanks a lot
>
> Davi
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the mapserver-users mailing list