# mapfile

slug: geotest.piste_ciclabili_geo
layer_type: wms
opts: {"layer_name": "ciclabili"}
mapfile:
  mapfile.mapfile.a68f57efd3476193.67656f746573742e70697374655f6369636c6162696c695f67656f5f776d732e6d6170.map

body:
  MAP
      NAME "ciclabili"
      PROJECTION
          "init=epsg:3003"
      END
      MAXSIZE 2600
      WEB
          METADATA
              wms_title "Ciclabili"
              wms_onlineresource "http://127.0.0.1/cgi-bin/mapserv?map=/home/manuele/mapserver/data/ciclabiliwms.map&"
              wms_srs "EPSG:3857 EPSG:4326 EPSG:3003 EPSG:26591"
              wms_enable_request "*"
          END # METADATA
      END # WEB
      EXTENT 1390291.729425 4984814.155572 1401782.596894 4998254.728853

      LAYER 
        NAME "ciclabili"
        CONNECTIONTYPE postgis
        CONNECTION "user=postgres dbname=geotest password=postgres host=localhost"
        PROCESSING "CLOSE_CONNECTION=DEFER"
        METADATA
          wms_title "Ciclabili torinesi"
        END
        # Get the lines from the 'geom' column of the 'roads' table 
        DATA "geom from piste_ciclabili_geo using unique gid" 
        STATUS ON
        TEMPLATE "ciclabiliwms.html"
        TYPE LINE 
        # Of the lines in the extents, only render the wide highways 
        # FILTER "type = 'highway' and numlanes >= 4" 
        CLASS 
          # All the rest are darker and only 1 pixel wide 
          # EXPRESSION ([numlanes] < 6) 
          STYLE
            COLOR 205 92 82
          END
        END 
      END
  END # MAP


slug: geotest.associazioni_geo_mm
layer_type: wms
opts: {"layer_name": "associazioni"}
mapfile:
  mapfile.mapfile.b23c94902af04d72.67656f746573742e6173736f6369617a696f6e695f67656f5f6d6d5f776d732e6d6170.map

body:
  MAP
      NAME "associazioni"
      PROJECTION
          "init=epsg:3003"
      END # PROJECTION
      MAXSIZE 2600
      WEB
          METADATA
              wms_title "Associazioni"
              wms_onlineresource "http://127.0.0.1/cgi-bin/mapserv?map=/home/manuele/mapserver/data/associazioniwms.map&"
              wms_srs "EPSG:3857 EPSG:4326 EPSG:3003 EPSG:26591"
              wms_enable_request "*"
          END # METADATA
      END # WEB
      EXTENT 1390291.729425 4984814.155572 1401782.596894 4998254.728853
      # Start of symbol definition

      # Start of symbol definition
      SYMBOL
        # Symbol name (referenced in STYLEs)
        NAME "circle"
        TYPE ellipse # Type of symbol
        # Start of the symbol geometry
        POINTS
          1 1
        END # end of POINTS
        # The symbol should be filled
        FILLED true
        # Place the according to its center
        ANCHORPOINT 0.5 0.5
      END # end of SYMBOL

      LAYER 
        NAME "associazioni"
        CONNECTIONTYPE postgis
        CONNECTION "user=postgres dbname=geotest password=postgres host=localhost"
        PROCESSING "CLOSE_CONNECTION=DEFER"
        METADATA
          wms_title "Associazioni"
        END # METADATA
        # Get the lines from the 'geom' column of the 'roads' table 
        DATA "geom from associazioni_geo_mm using unique gid"
        STATUS ON
        TEMPLATE "defaultwms.html"
        TYPE POINT
        # Of the lines in the extents, only render the wide highways 
        # FILTER "type = 'highway' and numlanes >= 4" 
        CLASS 
          # All the rest are darker and only 1 pixel wide 
          # EXPRESSION ([numlanes] < 6) 
          STYLe
            # Symbol to be used (reference)
            SYMBOL "circle"
            # Size of the symbol in pixels
            SIZE 10
            COLOR 205 92 82
          END # STYLE
        END # CLASS
      END # LAYER
  END # MAP


slug: testing_postgis.bugger_measure
layer_type: wms
opts: {"layer_name": "bugger"}
mapfile:
  mapfile.mapfile.af05a82837afe6a8.74657374696e675f706f73746769732e6275676765725f6d6561737572655f776d732e6d6170.map

body:
  MAP
      NAME "bugger"
      PROJECTION
          "init=epsg:4326"
      END # PROJECTION
      MAXSIZE 2600
      WEB
          METADATA
              wms_title "Bugger"
              wms_onlineresource "https://127.0.0.1/cgi-bin/mapserv?map=/home/manuele/mapserver/data/associazioniwms.map&"
              wms_srs "EPSG:3857 EPSG:4326 EPSG:3003 EPSG:26591"
              wms_enable_request "*"
          END # METADATA
      END # WEB
      EXTENT 10.494662 43.810973 10.494876 43.811197

      # Start of symbol definition
      SYMBOL
        # Symbol name (referenced in STYLEs)
        NAME "circle"
        TYPE ellipse # Type of symbol
        # Start of the symbol geometry
        POINTS
          1 1
        END # end of POINTS
        # The symbol should be filled
        FILLED true
        # Place the according to its center
        # ANCHORPOINT 0.5 0.5
      END # end of SYMBOL

      LAYER 
        NAME "bugger"
        CONNECTIONTYPE postgis
        CONNECTION "user=consorzio4 dbname=testing_postgis password=4consorzio host=localhost"
        PROCESSING "CLOSE_CONNECTION=DEFER"
        METADATA
          wms_title "Bugger"
        END # METADATA
        # Get the lines from the 'geom' column of the 'roads' table 
        DATA "geom from bugger_measure using unique id"
        STATUS ON
        TEMPLATE "defaultwms.html"
        TYPE POINT
        # Of the lines in the extents, only render the wide highways 
        # FILTER "type = 'highway' and numlanes >= 4"
        FILTER "id<40"
        CLASS 
          # All the rest are darker and only 1 pixel wide 
          # EXPRESSION ([numlanes] < 6) 
          STYLE
            # Symbol to be used (reference)
            SYMBOL "circle"
            # Size of the symbol in pixels
            SIZE 10
            COLOR 205 92 82
          END # STYLE
        END # CLASS
      END # LAYER
  END # MAP


