WFS Line layer: Missing last point

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Fri Aug 19 02:22:00 EDT 2005


> I'm using Mapserver 4.3 to generate the WFS service.

Can you upgrade to 4.6 and try again? Make you sure you do include the following METADATA then for your LAYER:

gml_include_items "all"

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Stephane Lessard <LESSARDST at DFO-MPO.GC.CA> 08/18/05 17:39 PM >>>
Greatings,

I have defined a WFS Line layer for a MID / MIF file. All seems to be
working well, except that the last point is missing.

The MID / MIF is properly defined, and is displayed properly when I access
it directly. Ogrinfo gives me the following (relevant parts only):

////////
Feature Count: 1
Extent: (-67.366667, 48.666667) - (-62.000000, 49.516667)
....
OGRFeature(route53):1
....
  LINESTRING (-67.36666667 49.21666667,-66.95000000 49.38333333,-65.00000000
49.
51666667,-62.00000000 48.66666667)
////////

As you can see, there are 4 points in this line. But here is the result of
the WFS request, extracted from the ".tmp.gml" file:

////////
      <ROUTE_WFS>
        <gml:boundedBy>
        	<gml:Box srsName="EPSG:4269">
        		<gml:coordinates>
        			-67.366667,48.666667 -62.000000,49.516667
        		</gml:coordinates>
        	</gml:Box>
        </gml:boundedBy>
        <gml:lineStringProperty>
          <gml:LineString srsName="EPSG:4269">
          	<gml:coordinates>-67.366667,49.216667 -66.950000,49.383333
-65.000000,49.516667 </gml:coordinates>
          </gml:LineString>
        </gml:lineStringProperty>
////////

The last point is missing! And the same thing happens with all my routes. I
have included my MID and MIF file. If someone wants to test that or just
investigate the source code, I would be very grateful.

Mapfile layer (WFS Server):

///////
   LAYER
    NAME ROUTE_WFS
    DUMP TRUE
    TYPE LINE
    STATUS ON
    CONNECTIONTYPE OGR
    TILEINDEX "D:\Marinfo\Glaces\Officielles\Shape\IceRoute.shp"
    CLASS
       STYLE
            SYMBOL "mapinfo_59"
        END
    END
    METADATA
         "wfs_title"                 "ROUTE_WFS"
         "wfs_srs"                   "EPSG:4269"
         "wfs_abstract"              ""
         "wfs_keywordlist"           ""
    END       
   END # Layer                
///////

I'm using Mapserver 4.3 to generate the WFS service. 

Thank you!


Stéphane Lessard, ing. jr.
Ingénieur Systèmes Ordinés
Systèmes Électroniques et Informatiques
Garde Côtière Canadienne
Région du Québec
101, boul. Champlain, Québec, QC G1K 7Y7
Tél.: (418) 649-6351
Télécopieur : (418) 649-6876
Courriel : lessardst at dfo-mpo.gc.ca <mailto:lessardst at dfo-mpo.gc.ca> 
Découvrez MARINFO à l'adresse : www.marinfo.gc.ca
<http://www.marinfo.gc.ca/> 
 <<route53.mid>>  <<route53.mif>> 



More information about the mapserver-users mailing list