[mapserver-users] Fwd: All map services display pink tiles

thomas bonfort thomas.bonfort at gmail.com
Wed Oct 1 09:45:38 PDT 2014


from a terminal, type:

curl '
http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256
'

--
thomas

On 1 October 2014 18:38, Sithila Konara <sithilamadushanka at gmail.com> wrote:

> hi,
>
> Following URL is a one of my image URL
>
>
> http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256
>
> This is how errors get occors
> [image: Inline image 1]
>
> and i have examined Apache error logs, but unable find much details. I'm
> working in a Ubuntu server in a VM environment. server is directly
> connected to internet using NAT interface to get the Internet. But i think
> server should provide tiles from only using local resources, after
> successful mapserver implementation. But I noticed that pink tiles also not
> display when i disconnect the server from the Internet. I'm new to Linux
> and Mapserver so difficult to extract meaning of error logs etc
>
> [image: Inline image 2]
>
> On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort <thomas.bonfort at gmail.com>
> wrote:
>
>> Sithila,
>> try right clicking on one of the pink tiles to open it in a new browser
>> window, or alternately look in your apache access/error logs. You should
>> get an error message that should give you a head start. 502 errors are
>> usually a sign that the source wms server is producing an error instead of
>> an image, the actual error message should be returned back to you.
>>
>> --
>> thomas
>>
>> On 1 October 2014 09:50, Sithila Konara <sithilamadushanka at gmail.com>
>> wrote:
>>
>>>
>>>
>>>
>>> <http://gis.stackexchange.com/questions/115709/all-map-services-display-pink-tiles#>
>>>
>>> I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3,
>>> postgis and imposm using GitHub tutorial
>>> <https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04>.
>>> After completing the tutorial all map services display pink tiles not map
>>> info. i was not encounter with any issues during the tutorial run. any
>>> reason to this?
>>>
>>> Following screenshots for your reference.
>>>
>>> [image: enter image description here] [image: enter image description
>>> here] [image: enter image description here]
>>>
>>> When I check network I saw some errors as follows it shows as bad gate
>>> way and internal server error [image: enter image description here]
>>>
>>> here's my basemap makefile and mapcache.xml file
>>>
>>>    - *basemap/makefile*
>>>
>>> UNAME := $(shell uname)
>>>
>>> ifeq ($(UNAME), Darwin)
>>> SED=sed -i ""else
>>> SED=sed -i
>>> endif
>>>
>>> CPP=gcc -E -x c#if the preprocessor fails for some reason, try replacing this with "cpp" on linux, or "cpp-4.2" on darwin (not available starting with mountain lion)
>>>
>>>
>>> OSM_PREFIX=osm_new_
>>> OSM_NAME_COLUMN=name
>>> OSM_SRID=4326
>>> OSM_UNITS=dd
>>> OSM_EXTENT=-180 -90 180 90
>>> OSM_SRID=3857
>>> OSM_UNITS=meters
>>> OSM_DB_CONNECTION=host=localhost dbname=osm user=osm password=osm port=5432
>>> OSM_EXTENT=-20000000 -20000000 20000000 20000000
>>> OSM_WMS_SRS=EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986
>>> DEBUG=1
>>> LAYERDEBUG=1
>>> STYLE=google#can also use google or bing
>>>
>>>
>>>    - *mapcache-osm.xml*
>>>
>>> <?xml version="1.0" encoding="UTF-8"?><!-- see the accompanying https://github.com/mapserver/mapcache/blob/master/mapcache.xml.sample for a fully commented configuration file --><mapcache><cache name="disk" type="disk">
>>>     <base>/home/sithila/osm-demo/mapcache/cache</base> <!-- Change Path here -->
>>>     <symlink_blank/></cache>
>>> <source name="osm" type="wms">
>>>     <getmap>
>>>         <params>
>>>             <FORMAT>image/png</FORMAT>
>>>             <LAYERS>default</LAYERS>
>>>             <MAP>/home/sithila/osm-demo/basemaps/osm-google.map</MAP> <!-- Change Path here -->
>>>         </params>
>>>     </getmap>
>>>     <http>
>>>         <url>http://localhost/cgi-bin/mapserv?</url> <!-- Change server here -->
>>>     </http></source><tileset name="osm">
>>>     <metadata>
>>>         <title>OSM MapServer served map</title>
>>>         <abstract>see https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntuv2</abstract>
>>>     </metadata>
>>>     <source>osm</source>
>>>     <cache>disk</cache>
>>>     <grid>WGS84</grid>
>>>     <grid>g</grid>
>>>     <format>PNG</format>
>>>     <metatile>5 5</metatile>
>>>     <metabuffer>10</metabuffer>
>>>     <expires>10000</expires>
>>>     <auto_expire>86400</auto_expire>  </tileset>
>>> <default_format>JPEG</default_format>
>>> <service type="wms" enabled="true">
>>>     <full_wms>assemble</full_wms>
>>>     <resample_mode>bilinear</resample_mode>
>>>     <format>JPEG</format>
>>>     <maxsize>4096</maxsize></service>
>>> <service type="wmts" enabled="true"/><service type="tms" enabled="true"/><service type="kml" enabled="true"/><service type="gmaps" enabled="true"/><service type="ve" enabled="true"/><service type="demo" enabled="true"/>
>>> <errors>report</errors><lock_dir>/tmp</lock_dir></mapcache>
>>>
>>>
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141001/d4c6421c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 245015 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141001/d4c6421c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 69802 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141001/d4c6421c/attachment-0003.png>


More information about the mapserver-users mailing list