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

Marcin Niemyjski mniemyjski at cloudferro.com
Tue Nov 29 08:28:37 PST 2022


of course, and thank you for helping!
link:
https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/Es6KvPu4ETtKvOJjs2p7ztkBLIIBjdm1aVU3epU5Sa11LQ?e=x5IYRs
________________________________
From: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi>
Sent: Tuesday, November 29, 2022 5:15 PM
To: Marcin Niemyjski <mniemyjski at cloudferro.com>; Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com>; Marcin Niemyjski via MapServer-users <mapserver-users at lists.osgeo.org>
Subject: Re: [MapServer-users] Shapefile data source doesn't work


Hi,



Can you share also the shapefile?



-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 18.10
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



okey, I corrected mapfile according to your tips, but result remain the same.



mapfile:

https://pastebin.com/3yfVaF7Q<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2F3yfVaF7Q&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454237988%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=elN1faHGuGXQhRBqYMIfw6Kg80UKx8KSLDA65tNtPTU%3D&reserved=0>



I also tired GetMap request - all white box was returned.



Attribute table of shp layer:

https://pasteboard.co/5uEnUYnP7NjP.png<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2F5uEnUYnP7NjP.png&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454237988%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=LvO2hQiTOPAjm1885BLwb3J%2B822igaQmyblz2iU189E%3D&reserved=0>



and Layers properties from qgis:

https://pasteboard.co/Dibb2L5aICrP.png<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2FDibb2L5aICrP.png&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ongq6xU%2Ffb3Ons%2FJoyFnLMKm0fX%2FrOZwVDiv7%2F1Gxcw%3D&reserved=0>



Best,

Marcin



________________________________

From: Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com<mailto:joerg.thomsen at wheregroup.com>>
Sent: Tuesday, November 29, 2022 4:31 PM
To: Marcin Niemyjski <mniemyjski at cloudferro.com<mailto:mniemyjski at cloudferro.com>>; Marcin Niemyjski via MapServer-users <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: Re: [MapServer-users] Shapefile data source doesn't work



the pastebin-mapfile has no class and styling information. you need at
least one class with one style.

-> https://mapserver.org/tutorial/example1-2.html<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Ftutorial%2Fexample1-2.html&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aGwpvIHoXK6mXRW0dJ0xtLeKMcG22mJaFiOKmFq%2Fxgc%3D&reserved=0>

Jörg



Am 29.11.22 um 16:20 schrieb Marcin Niemyjski:
> 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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nP9jByv%2BPYdCvLdbr9DqNPNzlEBJ7Knq1bGe6H8TqaI%3D&reserved=0> <https://pastebin.com/zgNes8PD<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FzgNes8PD&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nP9jByv%2BPYdCvLdbr9DqNPNzlEBJ7Knq1bGe6H8TqaI%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hk9Tq8l18oku6DtO7FgoYUJH6vZvaampIr%2F9250hxyc%3D&reserved=0>
> <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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hk9Tq8l18oku6DtO7FgoYUJH6vZvaampIr%2F9250hxyc%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zJx5eJl2S7aV8FDw9cgvTgx6N9N%2Bs6JexWnynHqTfno%3D&reserved=0> <http://www.wheregroup.com<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wheregroup.com%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zJx5eJl2S7aV8FDw9cgvTgx6N9N%2Bs6JexWnynHqTfno%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454394220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KYNSPw%2F0sJVF7x0C8P%2BGU8xJRfVnzzN9XxZhGwajP%2BE%3D&reserved=0>
> <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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454550460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=N1L4zZJwgYMakV%2BYbT6y1UoVsMBMPq%2F6qULC7d6cdqw%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454550460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Fm3BH5Cl7vtvBt1m4YnuQhVdJLGShcZExmk%2FPmj411I%3D&reserved=0>
> <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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454550460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Fm3BH5Cl7vtvBt1m4YnuQhVdJLGShcZExmk%2FPmj411I%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454550460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=c%2FUeyddqpAcRSsPQGF781RuHhQN8oLSctgvXdgjSBTQ%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%7Caf22c484da8646bd0b6608dad224443b%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638053350454550460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=N1L4zZJwgYMakV%2BYbT6y1UoVsMBMPq%2F6qULC7d6cdqw%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221129/2b0ccdb7/attachment-0001.htm>


More information about the MapServer-users mailing list