MYGIS supports Web Feature Server (WFS)????

Karlheinz Schmidt (MapMedia GmbH) ks at MAPMEDIA.DE
Tue Nov 22 07:21:19 EST 2005


Hi MS User.

I like MYSQL and MYGIS of the UMN-Mapserver. But there is a problem.
I'm using connectiontype MYGIS to display a line layer.
This layer was put into the MYSQL Database with shp2mysql.pl.
This works fine..

there is (for instance) only one problem: the layer show no 
getFeatureInfo() and a WFS can't be set up.
Why?

The layer looks like this:
	NAME "bsp"
...
	PROJECTION
		"init=epsg:31464" #PROJECTION
	END
...
	WEB
		IMAGEPATH "/tmp/"
		TEMPLATE "map_template.html"
	METADATA
	"wms_title"	"Beispielkarte der UMNMapServer"
	"wms_srs"  "EPSG:31464 EPSG:4326"
	"mm_DEBUG" "FALSE"
	"WFS_TITLE"            "UMNMapServer"  ## REQUIRED
	"WFS_ONLINERESOURCE"    "http://...&"
	"WFS_SRS"               "EPSG:31464 EPSG:4326"
	"WFS_ABSTRACT" "WFS BSP"
	"WFS_ENCODING" "ISO-8859-1"
	"ows_schema_location" "http://schemas.opengeospatial.net"
	"WFS_GEOMETRY_ELEMENT_NAME" "MS_GEOMETRY"
		END
	END
...
     LAYER
         NAME "germany_highways00"
		METADATA
			#
			#Metadata for the WFS-Server Service
			#
			"WFS_TITLE" "germany_highways00"
			#"WFS_EXTENT" "4053000 5238800 4712400 6109700"
			"wfs_srs" "EPSG:31464 EPSG:4326"
			"GML_INCLUDE_ITEMS" "all"
			#"wfs_keywordlist" "gid, f_NAME"
		END
         TOLERANCE 10
         TYPE LINE
         STATUS default
         CONNECTIONTYPE mygis
                 CONNECTION "localhost:xxx:xxx:germany:bin"
             DATA "geometry from germany_highways00 feature, 
germany_highways00_bin geometry"
         LABELITEM "f_NAME"
         SYMBOLSCALE 100000
         CLASS
             NAME "germany_highways00"
             STYLE
                 SYMBOL "punkt1_1"
                 SIZE 6
                 COLOR 0    0 0
             END
             STYLE
                 SYMBOL "punkt1_1"
                 SIZE 3
                 COLOR 255 220 220
             END
             STYLE
                 SYMBOL "punkt1_1"
                 SIZE 1
                 COLOR 0 0 0
             END
             TEMPLATE "german_highways00_query.html"
             LABEL
                 TYPE TRUETYPE
                 FONT "Arial"
                 COLOR 255 255 255
                 BACKGROUNDCOLOR 0 50 255
                 PARTIALS true
                 ANGLE AUTO
                 POSITION AUTO
                 SIZE 8
                 ANTIALIAS true
             END
         END

...
END

The
REQUEST=DescribeFeatureType&
&SERVICE=WFS&VERSION=1.0.0&
TYPENAME=germany_highways00
works well.

BUT the
&REQUEST=getcapabilities

shows a nonsens LatLongBoundingBox

<FeatureType>
   <Name>germany_highways00</Name>
   <Title>germany_highways00</Title>
   <SRS>EPSG:31464</SRS>
   <LatLongBoundingBox minx="-1.48674e+16" miny="-5.96493e+32" 
maxx="170.502" maxy="5.96493e+32"/>
</FeatureType>

Why is that? Perhaps a SRID- function is used within UMN Mapserver 4.6 
but in the WKB_GEOMETRY column the entry is binary?

Is there somthing wrong or could it be that this WFS function is not yet 
supporteed in the MYGIS Interface?
Can anybody show (or send me) an example where WFS work with MYGIS?

I'm looking forward for an answer.

Greetings from Berlin
K. Schmidt



More information about the mapserver-users mailing list