<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Thanks Scott and Seth for the help.</p>
    <p>You might not remember, because it was several weeks ago, but I
      had several GML source files in EPSG:2100 (Greek grid), and when
      MapServer was responding to a WMS request requesting the data in
      EPSG:3857 (or 4326), several features would be missing.</p>
    <p>I converted the data files to shapefiles to see what would
      happen, and there was no improvement. In fact I think it was
      slightly worse.</p>
    <p>Then I upgraded MapServer to 8.0.0 (from 7.6.2) and the problem
      disappeared. I used 8.0.0 and not 7.6.4 because I didn't want to
      compile it and I installed it from Debian bullseye backports, and
      backports only has 8.0.0. So I don't know if the problem exists in
      7.6.4.</p>
    <p>Regards,</p>
    <p>Antonis<br>
    </p>
    <pre class="moz-signature" cols="80">
</pre>
    <div class="moz-cite-prefix">On 02/10/2022 17.53, Scott wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1ef014b2-e17e-889d-9bb4-86015422e565@postholer.com">It
      would be interesting if you could change your
      'irrigation-network.gml' into a different format, say .shp,
      something like:
      <br>
      <br>
      ogr2ogr irrigation-network.shp irrigation-network.gml
      <br>
      <br>
      Then try that as a data source in your layer and see if your
      results differ. This would might help us distinguish between a
      driver issue and a mapserver issue.
      <br>
      <br>
      <br>
      <br>
      On 10/2/22 04:51, Antonis Christofides wrote:
      <br>
      <blockquote type="cite">Hello Seth,
        <br>
        <br>
        Thanks for replying. I experimented and found out there's no
        difference if I use something minimal such as what you
        suggested. What does make a difference is the CRS: if I tell
        QGIS to use EPSG:2100 (Greek grid—the CRS the data files use),
        then everything works fine. If I use 4326 or 3857, then the
        problem appears. Therefore it appears that the problem is with
        reprojecting (as the stackexchange user "nmtoken" had
        suspected). Leaflet seems to be requesting 3857.
        <br>
        <br>
        What would be the right course of action here? Should I tell
        Leaflet to do the reprojection instead? Should I investigate
        further why mapserver has trouble reprojecting (and how would I
        do that)? Should I reproject my data files (GML) offline and
        store them in 3857 instead of 2100? Is there any common/best
        practice regarding this?
        <br>
        <br>
        Thanks!
        <br>
        <br>
        Antonis
        <br>
        <br>
        <br>
        <br>
        On 28/09/2022 17.47, Seth G wrote:
        <br>
        <blockquote type="cite">Hi,
          <br>
          <br>
          Is there any change if you update the layer to have a single
          class with a simple line (no EXPRESSION, LABEL,
          MAXSCALEDENOM)?
          <br>
          <br>
          E.g.
          <br>
          <br>
                  CLASS
          <br>
                      STYLE
          <br>
                          COLOR 0 0 255
          <br>
                          WIDTH 6
          <br>
                      END
          <br>
          <br>
          Seth
          <br>
          <br>
          --
          <br>
          web:<a class="moz-txt-link-freetext" href="https://geographika.net">https://geographika.net</a>
          <br>
          twitter: @geographika
          <br>
          <br>
          On Wed, Sep 28, 2022, at 1:03 PM, Antonis Christofides wrote:
          <br>
          <blockquote type="cite">
            <br>
            Hello,
            <br>
            <br>
            I have a problem that has already been discussed in
            stackexchange
(<a class="moz-txt-link-freetext" href="https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan">https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan</a>
<a class="moz-txt-link-rfc2396E" href="https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan"><https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan></a>),
            but without solution so far.
            <br>
            <br>
            I'm repeating the full text here, but if there's any problem
            with the images it might be better to go to stackexchange to
            read it.
            <br>
            <br>
            Here is how QGIS shows an irrigation network, received by
            MapServer via WMS and superimposed on OpenStreetMap:
            <br>
            <br>
            enter image description here
            <br>
            <br>
            Here is the same thing, but slightly panned to the right:
            <br>
            <br>
            enter image description here
            <br>
            <br>
            Several items are obviously missing. In fact there are items
            missing in the top picture as well. Different items become
            visible as I zoom and pan differently.
            <br>
            <br>
            Since this pretty much tells the whole story, I'm not going
            into more details. MapServer version is 7.6.2 (prepackaged
            for Debian). The base URL is
<a class="moz-txt-link-freetext" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map">https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map</a>
<a class="moz-txt-link-rfc2396E" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map"><https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map></a>.
            Finally, below I paste the interesting parts of the mapfile.
            <br>
            <br>
            Thanks!
            <br>
            <br>
            Antonis
            <br>
            <br>
            <br>
            <br>
            <br>
            |MAP NAME "aira-poros" STATUS ON SIZE 9040 7731 EXTENT
            103986.57 3850796.18 1007945.14 4623933.00 UNITS meters
            PROJECTION "init=epsg:2100" END CONFIG MS_ERRORFILE
            "/var/log/mapserver/extralayers.log" # [Omitting some
            OUTPUTFORMAT sections] WEB IMAGEPATH "/var/cache/mapserver/"
            IMAGEURL "/mapserver_tmp/" METADATA "wms_title" "Aira Poros"
            "wms_onlineresource"
<a class="moz-txt-link-rfc2396E" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&">"https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"</a>
<a class="moz-txt-link-rfc2396E" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"><https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&></a>
            "wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857"
            "wms_enable_request" "*" "wms_feature_info_mime_type"
            "text/html" "wfs_title" "Aira Poros" "wfs_onlineresource"
<a class="moz-txt-link-rfc2396E" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&">"https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"</a>
<a class="moz-txt-link-rfc2396E" href="https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"><https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&></a>
            "wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857"
            "wfs_enable_request" "*" END END LAYER NAME
            "irrigation-network" TYPE LINE CONNECTIONTYPE OGR CONNECTION
            "irrigation-network.gml" METADATA "wms_title" "Irrigation
            network" "wfs_title" "Irrigation network"
            "gml_include_items" "all" "gml_featureid" "id" END STATUS ON
            PROJECTION "init=epsg:2100" END CLASSITEM 'category' CLASS
            EXPRESSION '1' STYLE COLOR 0 0 255 OPACITY 50 WIDTH 6 END
            LABEL COLOR 0 0 255 ANGLE FOLLOW OFFSET 5 99 MAXSCALEDENOM
            10000 TEXT "[irri_code]" END LABEL COLOR 0 0 255 ANGLE
            FOLLOW OFFSET -8 99 MAXSCALEDENOM 10000 EXPRESSION
            (NOT('[Diameter]' = '')) TEXT "D=[Diameter] mm" END END #
            [Omitting three more classes] END # [Omitting four more
            layers] END|
            <br>
            _______________________________________________
            <br>
            MapServer-users mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a>
            <br>
            <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
            <br>
            <br>
          </blockquote>
          <br>
        </blockquote>
        <br>
        _______________________________________________
        <br>
        MapServer-users mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
        <br>
      </blockquote>
      _______________________________________________
      <br>
      MapServer-users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
      <br>
    </blockquote>
  </body>
</html>