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

Marcin Niemyjski mniemyjski at cloudferro.com
Wed Nov 30 02:00:49 PST 2022


Jukka,

thank you for your help, with your code I managed to make it work 🙂 I really appreciate it.

I don't want to overuse your willingness to help but could you also check my attempt to define Cluster? I was basing on https://mapserver.org/mapfile/cluster.html#mapfile-layer
There is no

    HEADER "../htdocs/templates/cluster_header.html"
    FOOTER "../htdocs/templates/cluster_footer.html"
    TEMPLATE "../htdocs/templates/cluster_query.html"

in my mapfile. From documentation I understand it is not obligatory and to be honest I don't quite get it. Working with raster data is so much easier 🙂

Mapfile:
https://pastebin.com/qEL76Uwv

Thank you one more time and thank you all for the discussion and tips.
Best,
Marcin
________________________________
From: MapServer-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi>
Sent: Tuesday, November 29, 2022 7:54 PM
To: Mapserver-Users (mapserver-users at lists.osgeo.org) <mapserver-users at lists.osgeo.org>
Subject: Re: [MapServer-users] Shapefile data source doesn't work


Hi,



I can see blue dots with this request

http://localhost:8060/cgi-bin/mapserv.exe?

map=c:/ms4w_data/aed.map&

REQUEST=GetMap&

SERVICE=WMS&

VERSION=1.3.0&

WIDTH=1000&

HEIGHT=525&

LAYERS=Latest&

TRANSPARENT=TRUE&

FORMAT=image%2Fpng&

BBOX=1532552.9142224141,6681474.69119125,2571584.460843797,7226966.2531674765&

CRS=EPSG:3857&

STYLES=default



by using a mapfile that I slightly modified for my local MS4W. I am not sure what is the difference and I let you to find it out.

MAP

NAME "AED"

EXTENT 1584202.7350061805918813 6301803.1952485935762525 2675789.3720532376319170  7329216.3261622246354818



UNITS METERS

SIZE 512 512

IMAGETYPE PNG

SHAPEPATH "/data/"

CONFIG "MS_ERRORFILE" "c:\ms4w_data\aed.txt"



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



                          SYMBOL

                            NAME "circlef"

                            TYPE ellipse

                            FILLED true

                            POINTS

                            10 10

                            END # POINTS

          END # SYMBOL





LAYER

                          NAME "Latest"

                          STATUS ON

                          TYPE POINT

                          DEBUG 5

                          DATA "C:\ms4w_data\syf\aed_poland.shp"

                          PROJECTION

                                                    "init=epsg:3857"

                          END

                              CLASS

                                  NAME "AED"

                                  STYLE

                                    COLOR 0 0 255

                                    SYMBOL "circlef"

                                    SIZE 10

                                  END

                                END

    END

END

END



-Jukka Rahkonen-



Lähettäjä: Marcin Niemyjski <mniemyjski at cloudferro.com<mailto:mniemyjski at cloudferro.com>>
Lähetetty: tiistai 29. marraskuuta 2022 18.29
Vastaanottaja: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>; joerg.thomsen at wheregroup.com<mailto:joerg.thomsen at wheregroup.com>; Marcin Niemyjski via MapServer-users <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Aihe: Re: [MapServer-users] Shapefile data source doesn't work



of course, and thank you for helping!

link:

https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/Es6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ?e=x5IYRs<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudferro-my.sharepoint.com%2F%3Af%3A%2Fp%2Fmniemyjski%2FEs6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ%3Fe%3Dx5IYRs&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C4cc17fc7cc3e48a4789f08dad226c6ff%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638053361243558379%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=6ewjeBbvrEbvlOygzPUXyNlqRdgfqjsHV7NQ1DMaa0s%3D&reserved=0>

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


More information about the MapServer-users mailing list