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

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Tue Nov 29 07:27:16 PST 2022


Hi,

Please show the extent of the shapefile as ogrinfo shows it. Verify that EPSG:3857 is correct for the data. And capture the GetMap request that QGIS is sending.

-Jukka Rahkonen-

Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Marcin Niemyjski via MapServer-users
Lähetetty: tiistai 29. marraskuuta 2022 17.21
Vastaanottaja: Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com>; Marcin Niemyjski via MapServer-users <mapserver-users at lists.osgeo.org>
Aihe: Re: [MapServer-users] Shapefile data source doesn't work

Jörg,

I meant that when checking in qgis no data is rendered, nothing is shown. I just tried:
https://pastebin.com/zgNes8PD<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FzgNes8PD&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C27e07b284c8d40f88a5a08dad21d589f%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053320739795925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Gzp%2F1udB2ObKRzgmWp7NZn3NedFdcDWDPAff3iujt3Q%3D&reserved=0>
QGIS connects with layer, but it seems like there is no data.
and result remain the same - nothing was received.

Thank you for fast reply,
Marcin
________________________________
From: MapServer-users <mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>> on behalf of Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com<mailto:joerg.thomsen at wheregroup.com>>
Sent: Tuesday, November 29, 2022 4:08 PM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: Re: [MapServer-users] Shapefile data source doesn't work

Hi,

for shp you don't need connectiontype and connection, only data is
required. Try the absoulte path to your shp.

Wht do you mean with 'map does not show'? white / blank image? This is
often caused by a mismatsch bewtween epsg und extent. Or an error-msg?
what does it say?

Jörg

Am 29.11.22 um 15:52 schrieb Marcin Niemyjski via MapServer-users:
> 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
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapserver-users<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C27e07b284c8d40f88a5a08dad21d589f%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053320739795925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ud4X1RXjKsViKGEm6X2a39Z5%2FDyLYMJEkYU0LKgRkpg%3D&reserved=0>

--
Viele Grüße,
Jörg Thomsen

---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
where2b-conference.com
---------------------------------------------

Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Tel: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thomsen at wheregroup.com<mailto:joerg.thomsen at wheregroup.com>
www.wheregroup.com<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wheregroup.com%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C27e07b284c8d40f88a5a08dad21d589f%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053320739795925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=llpcSag0pP5wmW6JpS4NxTQ2Z14htmvK43PDbRtZ9B8%3D&reserved=0>

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftwitter.com%2FWhereGroup_com&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C27e07b284c8d40f88a5a08dad21d589f%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053320739795925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=22Fit3BE0tzCjan4DIE2Nn0wmVAGWCoVNeZn9dBrqrA%3D&reserved=0>

_______________________________________________
MapServer-users mailing list
MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C27e07b284c8d40f88a5a08dad21d589f%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053320739795925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ud4X1RXjKsViKGEm6X2a39Z5%2FDyLYMJEkYU0LKgRkpg%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221129/8aecd0a8/attachment-0001.htm>


More information about the MapServer-users mailing list