OGR - Virtual Data troubles

Wouter Schaubroeck wouter.schaubroeck at GMAIL.COM
Thu Apr 7 00:08:43 PDT 2005


Hi all,

I'm using the VirtualData function (You can find it on the Mapserver
Wiki <http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData>
pages) for a .dbf file i have to use. I've used this function for
several times now, but this is the first time that it doesn't work. What
am i doing wrong? I've tested my virtual.ovf file with the OGRinfo tool,
and no problems were reported, i could see all of my data.

Many thanks

Wouter Schaubroeck

This is my .ovf file: (virtual.ovf)

<OGRVRTDataSource>

    <OGRVRTLayer name="GSM00837">
        <SrcDataSource>C:/program files/apache
group/apache2/htdocs/herten/GSM00837.dbf</SrcDataSource>
        <SrcLayer>Gsm00837</SrcLayer>
        <GeometryType>wkbPoint</GeometryType>
        <GeometryField encoding="PointFromColumns" x="Latitude"
y="Longitude"/>
    </OGRVRTLayer>

</OGRVRTDataSource>

This is my map file:

MAP
    IMAGETYPE PNG24
    EXTENT 165450 227900 166300 230060
    SIZE 600 450
    SHAPEPATH "Data"
    SYMBOLSET "symbols.sym"
    PROJECTION
        "init=epsg:4313"
    END

    LAYER
        NAME "Herten"
        TYPE POINT
        CONNECTIONTYPE OGR
        CONNECTION "virtual.ovf"
        DATA "GSM00837"
        STATUS ON
        LABELITEM GSM00837
        PROJECTION
            "init=epsg:4313"
        END
        CLASS
            SYMBOL "cir"
            SIZE 6
            COLOR 255 0 0
            LABEL
                SIZE MEDIUM
                TYPE BITMAP
                COLOR 0 0 0
            END
        END
    END
END


And this is how i call my mapserver

/cgi-bin/mapserv.exe?map=C:/Program Files/Apache
Group/Apache2/htdocs/herten/herten.map&mode=map


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050407/be2f2ac4/attachment.htm>


More information about the MapServer-users mailing list