OGR and XML
Bart van den Eijnden
bartvde at XS4ALL.NL
Fri Sep 2 11:33:35 PDT 2005
Hi Davi,
I assume you are on Windows, download FWTools from:
www.maptools.org/fwtools
That will give you ogrinfo.
Virtual.ovf is the XML file indeed.
Just run ogrinfo [path to]/virtual.ovf
and see if it can be processed.
Best regards,
Bart
On Fri, 02 Sep 2005 20:22:56 +0200, Davi Duchovni <duchovni at gmail.com>
wrote:
> ok i´ve done that!!!
>
> but i don´t know how to test my ovf file with the ogrinfo tool could
> you help me?!?!
>
> what is exactly virutal.ovf????? is the xml file?!?!?
>
> thanks a lot!!
>
> On 9/2/05, Bart van den Eijnden <bartvde at xs4all.nl> wrote:
>> 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/
>>
>
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the MapServer-users
mailing list