Hi List,

I have a MultiPolygon Mysql Table with wildfire data (see below) running on Mpaserver  version 7.6.4,  there is no error in the log, but the Map  doesn't display. Any Idea? Thanks in advance

The wildfire.ovf file:

<OGRVRTDataSource>
    <OGRVRTLayer name="wildfire">
<SrcDataSource>MYSQL:alarms,user=monitor,password=****,host=localhost,port=3306,tables=wildfire</SrcDataSource>
        <SrcSQL>SELECT * FROM wildfire</SrcSQL>
        <GeometryType>wkbMultiPolygon</GeometryType>
    </OGRVRTLayer>
</OGRVRTDataSource>

and a MAP file like:

LAYER  # WILDFIRE LAYER
        NAME wildfire
        CONNECTIONTYPE OGR
         CONNECTION "wildfire.ovf"
        TYPE POLYGON
        STATUS DEFAULT
        DATA "wildfire"
        METADATA
            "wms_title" "wildfire"
            "qstring_validation_pattern" ".*"
        END

         VALIDATION

            "qstring" ".*"

        END

        LABELITEM "AREA_HA"

        CLASS
            NAME 'Wildfire Test'
            STYLE
                                OUTLINECOLOR 0 0 0   #stroke
                                WIDTH .1
                                COLOR 255 0 0  #Red  Wildfire Polygon
                                OPACITY 50

            END
            LABEL
                    FONT "tahoma"
                    TYPE TRUETYPE
                     SIZE 5
                     BUFFER 1
                     FORCE TRUE
                     POSITION CC
                    COLOR 255 255 255
            END #END LABEL

    END # CLASS

END #MAP


Best Regards

Carlos


_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to