WFS Line layer: Missing last point
Stephane Lessard
LESSARDST at DFO-MPO.GC.CA
Thu Aug 18 08:37:06 PDT 2005
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>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: route53.mid
Type: application/octet-stream
Size: 58 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/fc58a23b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: route53.mif
Type: application/octet-stream
Size: 315 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/fc58a23b/attachment-0001.obj>
More information about the MapServer-users
mailing list