WFS features not drawing

Rahkonen Jukka Jukka.Rahkonen at MMMTIKE.FI
Wed Nov 7 23:49:44 PST 2007


Hi,
 
Here is an excerpt of layer definition that works for me.  Perhaps it is the missing "dump true" part that makes troubles for you? 
 
-Jukka-
 
 
 LAYER
      NAME "WFS-parcels"
      STATUS OFF
      TYPE POLYGON
      CONNECTIONTYPE WFS
      CONNECTION "http://localhost:8080/geoserver/wfs?"
      MAXSCALE 100000
                  PROJECTION
                  "init=epsg:2393" 
            END
            CLASS
                  NAME "parcels"
                  STYLE
                    OUTLINECOLOR 0 255 0
                  END
      END
      METADATA
        "wfs_service" "WFS"
        "wfs_typename"    "GIS_POLYGONS"
        "wfs_version"    "1.0.0"
        "wfs_request_method"    "GET"
        "wfs_connectiontimeout"    "300"
        "wfs_maxfeatures"    "100000"
        "gml_include_items" "all"
      END
      TEMPLATE "../data/query.html"
    dump true
    # DEBUG TRUE
    END
 
 

________________________________

Lähettäjä: UMN MapServer Users List puolesta: Michael Anderson
Lähetetty: ke 7.11.2007 20:55
Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
Aihe: Re: [UMN_MAPSERVER-USERS] WFS features not drawing



It doesn't help. Since the WFS response is appearing in the image folder, the layer must be getting turned on. And the scale thresholds seem to be working - the gml files only appear if I zoom in far enough for the layer to be drawn. 
 
So everything works, except rendering the WFS response.
 
Mike
 
 
> Subject: Re: [UMN_MAPSERVER-USERS] WFS features not drawing
> Date: Wed, 7 Nov 2007 18:22:01 +0200
> From: Jukka.Rahkonen at mmmtike.fi
> To: m_anderson14 at HOTMAIL.COM; MAPSERVER-USERS at LISTS.UMN.EDU
> 
> Hi,
> 
> Have you tried adding some STATUS to layer definition? 
> 
> -Jukka- 
> 
> > -----Alkuperäinen viesti-----
> > Lähettäjä: UMN MapServer Users List 
> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Mike Anderson
> > Lähetetty: 7. marraskuuta 2007 15:59
> > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
> > Aihe: [UMN_MAPSERVER-USERS] WFS features not drawing
> > 
> > I'm trying for the first time to use MapServer as a WFS 
> > client and can't get the features to draw. They are correctly 
> > being downloaded to a .gml file in the images folder along 
> > with a .gfs file. So I think the connection is set up right, 
> > but they don't draw on the map.
> > 
> > I am trying to add the ssurgo layer from the Soil Data Mart. 
> > Here is my layer
> > definition:
> > 
> > LAYER
> > NAME "ssurgof"
> > TYPE Line
> > TRANSPARENCY 100
> > DEBUG ON
> > CONNECTIONTYPE WFS
> > MAXSCALE 15000
> > MINSCALE 300
> > PROJECTION
> > "init=EPSG:26918"
> > END
> > 
> > CONNECTION "http://sdmdataaccess.nrcs.usda.gov/SPATIAL/SDMNAD83UTM.w
> > fs?SRSNAME=EPSG:26918"
> > 
> > METADATA
> > "wfs_typename" "MapunitPoly"
> > "wfs_version" "1.0.0"
> > "wfs_request_method" "GET"
> > "wfs_connectiontimeout" "60"
> > "wfs_maxfeatures" "15"
> > END
> > 
> > CLASS
> > NAME "Soil Features"
> > STYLE
> > COLOR 200 255 0
> > SYMBOL "circle"
> > OUTLINECOLOR 120 120 120
> > END
> > END
> > 
> > #CLASS
> > # Name 'Soil Features'
> > # TEMPLATE "querytemp.html"
> > # SYMBOL "circle"
> > # COLOR -1 -1 -1
> > # OUTLINECOLOR 255 0 0
> > # SIZE 2
> > #END # CLASS
> > 
> > END # LAYER
> > 
> > 
> > I thought maybe the features were drawing but the class was 
> > messed up and they weren't visible, so I tried two ways to 
> > define the class. Neither one works.
> > 
> > Anyone have an idea what the problem is?
> > 
> > Thanks.
> > 
> > Mike Anderson
> > 



________________________________

Peek-a-boo FREE Tricks & Treats for You! Get 'em! <http://www.reallivemoms.com/?ocid=TXT_TAGHM&loc=us>  



More information about the MapServer-users mailing list