<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">WFS problem solved - projection issue:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I was having a problem with getting WFS to work correctly on mapserver. The mapserver WFS was functioning properly (returning the correct info from a GetCapabilities request. However the map did not function properly. Tom Kralidis helped me solve the problem by identifying that I had more than one projection definition in the WFS mapfile - WFS mapfiles will not function with more than one level of projection.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here are some snippets from our exchange:</div> <br><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">The data from the shapefile is in NAD 27, GRS80. Which I <span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">think is EPSG 4326. I had the epsg for the mapfile set to 54004, because I created it for wms output to google maps which uses that projection.</span></font></div></blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "> - I think it's EPSG:4269: <a href="http://spatialreference.org/ref/epsg/4269">http://spatialreference.org/ref/epsg/4269</a></div> <br><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; "> I just realized that I may have the projection wrong - it looks as though that shapefile is in NAD83. How do I figure out the epsg for that?</span></div></blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> - You have a .prj file, which, if exists, defines the coord sys for the data. Eyeballing the .prj file and checking <a href="http://spatialreference.org">http://spatialreference.org</a>/ tells me that EPSG:4269 corresponds to this.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; ">********* Key Point ********</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">Remember, WFS can only output ONE SRS, usually the native SRS of the</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">data. WMS can output MANY SRSs, hence MAP/WEB/METADATA/wms_srs.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "> - Thanks, Tom.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; ">At the bottom of this message is the mapfile that Tom created.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; ">This is the original mapfile:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; ">###########################</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">MAP</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> NAME "roadless"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> STATUS ON</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> SIZE 800 600</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> STATUS ON</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> EXTENT -124.40950012207 18.2457218170166 -65.7071533203125</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">49.0011405944824</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> SHAPEPATH "../shapefiles"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> FONTSET ../fonts/fonts.txt</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> PROJECTION</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "init=epsg:54004"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> WEB</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> IMAGEPATH "/tmp/"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> IMAGEURL "/tmp/"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> METADATA</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "wfs_title" "ira_wfs"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "wms_srs" "EPSG:4326"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> LAYER</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> NAME "ira"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> TYPE POLYGON</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> METADATA</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "wfs_title" "ira"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "gml_include_items" "all"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "wfs_featureid" "ID"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> PROJECTION</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "proj=latlong"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "ellps=GRS80"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> "datum=NAD27"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> EXTENT -124.40950012207 18.2457218170166 -65.7071533203125</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">49.0011405944824</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> DUMP TRUE</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> DATA ira_by_name_nad83</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> STATUS ON</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> CLASS</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> STYLE</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> COLOR 255 0 0</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica"> END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="4" style="font: 13.0px Helvetica">END</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Helvetica; min-height: 16px; ">###########################</div> <br><div>MAP</div><div> NAME test</div><div> IMAGETYPE PNG</div><div> STATUS ON</div><div> EXTENT -124.409498 18.245724 -65.707153 49.001137</div><div> SIZE 500 300</div><div> SYMBOLSET "../../etc/symbols/symbols.sym"</div><div> FONTSET "../../etc/fonts/fonts.txt"</div><div> IMAGECOLOR 125 125 125</div><div><br class="webkit-block-placeholder"></div><div> PROJECTION</div><div> "init=epsg:4269"</div><div> END</div><div><br class="webkit-block-placeholder"></div><div> DEBUG ON</div><div><br class="webkit-block-placeholder"></div><div> TRANSPARENT ON</div><div><br class="webkit-block-placeholder"></div><div> WEB</div><div> HEADER "../../etc/templates/query_header.html"</div><div> FOOTER "../../etc/templates/query_footer.html"</div><div> IMAGEPATH "../../tmp/"</div><div> IMAGEURL "/ms_tmp"</div><div> METADATA</div><div> "ows_title" "test Web Services"</div><div> "ows_abstract" "test Web Services"</div><div> "ows_keywordlist" "kw1,kw2"</div><div> "ows_service_onlineresource" "<a href="http://www.example.org">http://www.example.org</a>/"</div><div> "ows_fees" "none"</div><div> "ows_accessconstraints" "none"</div><div><br class="webkit-block-placeholder"></div><div> # OGC:WMS</div><div><br class="webkit-block-placeholder"></div><div> "wms_feature_info_mime_type" "text/html"</div><div><br class="webkit-block-placeholder"></div><div> "wms_addresstype" "postal"</div><div> "wms_address" "867 Lakeshore Road"</div><div> "wms_city" "Burlington"</div><div> "wms_stateorprovince" "Ontario"</div><div> "wms_postcode" "L7R-4A6"</div><div> "wms_country" "Canada"</div><div> "wms_contactelectronicmailaddress" "<a href="mailto:tom.kralidis@ec.gc.ca">tom.kralidis@ec.gc.ca</a>"</div><div> "wms_contactvoicetelephone" "+01-905-336-4409"</div><div> "wms_contactfacsimiletelephone" "+01-905-336-4499"</div><div> "wms_contactperson" "Tom Kralidis"</div><div> "wms_contactorganization" "Environment Canada"</div><div> "wms_contactposition" "Senior Systems Scientist"</div><div><br class="webkit-block-placeholder"></div><div> "wms_srs" "EPSG:4326 EPSG:2294 EPSG:2295 EPSG:4267 EPSG:4269 EPSG:26707 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26713 EPSG:26714 EPSG:26715 EPSG:26716 EPSG:26717 EPSG:26718 EPSG:26719 EPSG:26720 EPSG:26721 EPSG:26722 EPSG:26907 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG:26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920 EPSG:26921 EPSG:26922 EPSG:42101 EPSG:42304"</div><div> "wms_attribution_onlineresource" "<a href="http://www.example.org">http://www.example.org</a>/"</div><div> "wms_attribution_title" "Data from example.org"</div><div> "wms_attribution_logourl_width" "439"</div><div> "wms_attribution_logourl_height" "68"</div><div> "wms_attribution_logourl_format" "image/jpeg"</div><div> "wms_attribution_logourl_href" "<a href="http://mapserver.gis.umn.edu/logo.jpg">http://mapserver.gis.umn.edu/logo.jpg</a>"</div><div> END</div><div> END</div><div><br class="webkit-block-placeholder"></div><div> QUERYMAP</div><div> STATUS OFF</div><div> SIZE 400 300</div><div> STYLE HILITE</div><div> COLOR 255 255 0 </div><div> END</div><div><br class="webkit-block-placeholder"></div><div> LEGEND</div><div> LABEL</div><div> SIZE 10</div><div> TYPE TRUETYPE</div><div> FONT verdana</div><div> COLOR 0 0 0</div><div> END</div><div> END</div><div><br class="webkit-block-placeholder"></div><div> LAYER</div><div> NAME "ira"</div><div> STATUS ON</div><div> DEBUG ON</div><div> DATA "ira_by_name_nad83.shp"</div><div> TYPE POLYGON</div><div> DUMP TRUE</div><div> HEADER "ttt.html"</div><div> TEMPLATE "ttt.html"</div><div> TOLERANCE 30 </div><div> METADATA</div><div> "ows_title" "ira"</div><div> "ows_abstract" "ira"</div><div> "ows_keywordlist" "kw1,kw2"</div><div> "wms_opaque" "0"</div><div> "ows_metadataurl_type" "FGDC"</div><div> "wms_metadataurl_format" "text/html"</div><div> "ows_metadataurl_href" "<a href="http://www.example.org/foo.fgdc">http://www.example.org/foo.fgdc</a>"</div><div> "wfs_metadataurl_format" "XML"</div><div> "gml_include_items" "all"</div><div> "wfs_featureid" "ID"</div><div> END</div><div> CLASS</div><div> NAME " "</div><div> COLOR 0 255 0</div><div> OUTLINECOLOR 0 0 0</div><div> STYLE</div><div> SIZE 10</div><div> END</div><div> END</div><div> END</div><div>END</div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" color="#0000DD"><br class="webkit-block-placeholder"></font></div> </body></html>