[MapServer-users] Shapefile data source doesn't work

Marcin Niemyjski mniemyjski at cloudferro.com
Tue Nov 29 06:52:31 PST 2022


Hello,

I have a problem rendering vector layer. The data does not show. My mapfile:

MAP
NAME "AED"
EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170  7329216.3261622246354818
UNITS METERS
SIZE 512 512
IMAGETYPE PNG
SHAPEPATH "/data/"

PROJECTION
    "init=epsg:3857"
END
WEB
    IMAGEPATH "/tmp/"
    IMAGEURL "/tmp/"
    METADATA
      "wms_title"           "AED"
      "wms_onlineresource"  "***" #must change mapfile path
      "wms_srs"             "EPSG:3857"
      "wms_enable_request"  "*"
      "wms_server_version" "1.3.0"
      "wms_feature_info_mime_type" "text/html"
      "wms_include_items" "all"
      "wms_getcapabilities_version" "1.3.0"
    END
END


LAYER
  NAME "my_shapefile"
  STATUS ON
  TYPE POINT
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION "/DyskPlanetiler/OSM/aed_poland.shp"
  DATA "aed_poland"
  CLASS
      NAME "AED"
      STYLE
        COLOR 246 241 223
        OUTLINECOLOR 255 0 0
        SYMBOL 'circle'
        SIZE 20
      END
    END
  END

END

I will be grateful for any tips.
Best,
Marcin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221129/371b92e7/attachment-0001.htm>


More information about the MapServer-users mailing list