Re: [mapserver-users] Serving tiled image sets with MapServer?

2014-02-10 Thread Rahkonen Jukka (Tike)
Hi,

First step is to follow the GDAL WMS driver page examples and write a XML 
configuration file for your tile service. Let's call it my_service.xml. You can 
test if the file is correct with GDAL utility programs. If "gdalinfo 
my_service.xml" is listing info about your service and "gdal_translate -of 
GTiff -srcwin 0 0 1000 1000" my_service.xml test_out.tif" writes out a small 
image you are ready to use your service with Mapserver. After that you should 
be ready to use your tile data with Mapserver as
LAYER
  NAME "Layer from tiles"
  DATA "my_service.xml"
  TYPE RASTER
  STATUS ON
...


-Jukka Rahkonen-



James_in_Utah wrote:
> 
> Hi Jukka,
> Thanks for the reply.  I just had a chance to look it over tonight.  I 
> followed the
> link to the gdal site, and it does indicate that the GDAL_WMS driver can 
> access a
> WorldWind style tile server, which we do have.  Beyond that, I'm not following
> your suggestion.  Does the snippet you provided go in my Mapfile?  I'm not
> familiar with that.  I am running MapCache, but it doesn't really look like a 
> grid
> or source definition.  Where would I use that snippet?
> 
> 
> 
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Serving-
> tiled-image-sets-with-MapServer-tp5102393p5103088.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Serving tiled image sets with MapServer?

2014-02-10 Thread James_in_Utah
Hi Jukka,
Thanks for the reply.  I just had a chance to look it over tonight.  I
followed the link to the gdal site, and it does indicate that the GDAL_WMS
driver can access a WorldWind style tile server, which we do have.  Beyond
that, I'm not following your suggestion.  Does the snippet you provided go
in my Mapfile?  I'm not familiar with that.  I am running MapCache, but it
doesn't really look like a grid or source definition.  Where would I use
that snippet?  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Serving-tiled-image-sets-with-MapServer-tp5102393p5103088.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Jeff McKenna
Hi sorry long thread and I bet this has already been said, but here were
my thoughts when I read your problems:

- always test your mapfile at the commandline first, using the shp2img
utility (http://mapserver.org/utilities/shp2img.html).  Once your layers
look find there in the generated map image then move to your application

- if using MapServer CGI (mode=map), a blank map often means you are not
specifically telling MapServer to turn on layers; try adding &LAYERS=all

- or setting each of your layer's STATUS values to DEFAULT might work
(but this can cause lots of trouble later, so this is not often recommended)

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Σχετ: Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Fawcett, David (MNIT)
Stefanos,

It looks like you have a duplicate MAP line in there.

You are also specifying an extent that is from 5 deg west longitude to 0 deg 
longitude and from the equator to 5 deg north latitude.  Does your data fall in 
that part of the world?

David.

From: Stefanos Anastasiou [mailto:emperor_s...@yahoo.gr]
Sent: Monday, February 10, 2014 10:10 AM
To: Fawcett, David (MNIT); j...@mapmedia.de; mapserver-users@lists.osgeo.org
Subject: Σχετ: [mapserver-users] Σχετ: Mapserver can't read mapfile

Yeah sorry... I guess you're right.  This is my mapfile:

MAP
NAME Peloponisos
MAP
UNITS dd
SIZE 640 480
IMAGECOLOR 255 255 255
IMAGETYPE png
SHAPEPATH "/home/mapdata/data"
EXTENT -5.00 0.00 0.00 5.00

WEB
TEMPLATE '/usr/local/apache2/htdocs/pelop.html'
IMAGEPATH '/usr/local/apache2/htdocs/tmp'
IMAGEURL '/tmp/'
END

LAYER
   NAME 'geodata'
   DATA "aisthitika_dash"
   STATUS default
   TYPE polygon
   LABELCACHE on
   LABELITEM 'TEXTSTRING'
   CLASS
   NAME "Dasi"
   STYLE
  COLOR 212 192 100
   END
   LABEL
  COLOR 0 0 0
  SIZE small
   END #Label
  END #Class
END #layer
END #mapfile

Στις 6:00 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η "Fawcett, David (MNIT)" 
mailto:david.fawc...@state.mn.us>> έγραψε:
To further diagnose this, it would be useful to see the contents of you 
mapfile.  If no errors are being thrown, it is quite possible that there is an 
issue with spatial reference systems, bounding boxes, or class expressions.

David.

From: 
mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, February 10, 2014 9:50 AM
To: j...@mapmedia.de; 
mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Mapserver can't read mapfile

Sorry fellows...  indeed there is a typo but in this e-mail... I checked my 
files again and they seem correct...

If I type on my browser:  
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map   all I 
get is a blank page. The data folder has full permissions:  drwxrwxrwx

All other shapefiles are working correctly but yesterday I just added two more 
in the folder and all I get is a blank screen... (?)


Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen 
mailto:j...@mapmedia.de>> έγραψε:
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg

Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
>
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too.
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
>
> and all I get is a blank page. No errors no nothing.
>
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
>
> And I get the following error: msLoadMap(): Unable to access file.
>
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link.
>
> Why is it happening ?
>
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r--
>
> Thanks a lot!

>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Σχετ: Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Lars Lingner
Hi Stefanos,

thanks for the mapfile.

Here are some points I would check:

- you habe MAP two times in your file (might be ok, though)
- you don't have a projecten defined
In which projection are your data?

The white color you "see" in your browser come from the IMAGECOLOR. So
MapServer is actually creating a image without objects rendered.

I would enable the debugging to check in the logfile whether MapServer
is getting any data out of your data source.
If this is not the case than you need to check your GetMap request if
the srs and bbox is matching your data source projection.

You also defined the EXTENT with  -5.00 0.00 0.00 5.00. Is this the
correct extent of your source data?

Lars with the help of Jörg :)

On 10.02.2014 17:10, Stefanos Anastasiou wrote:
> Yeah sorry... I guess you're right.  This is my mapfile: 
> 
> MAP
> NAME Peloponisos
> MAP
> UNITS dd
> SIZE 640 480
> IMAGECOLOR 255 255 255
> IMAGETYPE png
> SHAPEPATH "/home/mapdata/data"
> EXTENT -5.00 0.00 0.00 5.00
> 
> WEB 
> TEMPLATE '/usr/local/apache2/htdocs/pelop.html'
> IMAGEPATH '/usr/local/apache2/htdocs/tmp'
> IMAGEURL '/tmp/'
> END
> 
> LAYER
>NAME 'geodata'
>DATA "aisthitika_dash"
>STATUS default
>TYPE polygon
>LABELCACHE on
>LABELITEM 'TEXTSTRING'
>CLASS
>NAME "Dasi"
>STYLE
>   COLOR 212 192 100
>END
>LABEL
>   COLOR 0 0 0
>   SIZE small
>END #Label
>   END #Class
> END #layer
> END #mapfile
> 
> 
> Στις 6:00 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η "Fawcett, David (MNIT)"
>  έγραψε:
> To further diagnose this, it would be useful to see the contents of you
> mapfile.  If no errors are being thrown, it is quite possible that there
> is an issue with spatial reference systems, bounding boxes, or class
> expressions. 
>  
> David.
>  
> *From:*mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Stefanos
> Anastasiou
> *Sent:* Monday, February 10, 2014 9:50 AM
> *To:* j...@mapmedia.de; mapserver-users@lists.osgeo.org
> *Subject:* [mapserver-users] Σχετ: Mapserver can't read mapfile
>  
> Sorry fellows...  indeed there is a typo but in this e-mail... I checked
> my files again and they seem correct... 
>  
> If I type on my browser:
>  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map 
>  all I get is a blank page. The data folder has full permissions:
>  drwxrwxrwx 
>  
> All other shapefiles are working correctly but yesterday I just added
> two more in the folder and all I get is a blank screen... (?)
>  
>  
> Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen
> mailto:j...@mapmedia.de>> έγραψε:
> Hi,
> 
> please have a look at your path:
>> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
> and
>> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map
> 
> I guess the first one is correct and that's why you get the error-msg
> with the 2nd one. So, what exactly is the result of the request
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
> it sounds like a white image, not nothing. In this case you should check
> the bboxes and srs first.
> 
> regards, Jörg
> 
> Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
>> Hello!!
>> 
>> I'am having my mapfile place in /home/mapdata folder whereas I also keep
>> a couple of other mapfiles too. 
>> I'm trying to load it in the following form on the
>> browser: 
>> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
>> 
>> and all I get is a blank page. No errors no nothing. 
>> 
>> Then I created an html template in order to click it from there by
>> creating a simple link (and not a from) in the following hyperlink:  > href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
>> This link 
>> 
>> And I get the following error: msLoadMap(): Unable to access file.  
>> 
>> Last time this happened I was invoking Mapserver through a form but this
>> time it's just a simple link. 
>> 
>> Why is it happening ? 
>> 
>> The weird thing is that all the other mapfiles that are seem to be
>> working are are having the same permission settings with the
>> current: -rw-r--r-- 
>> 
>> Thanks a lot! 
> 
>> 
>> 
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

Re: [mapserver-users] Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Lars Lingner
On 10.02.2014 16:49, Stefanos Anastasiou wrote:
> Sorry fellows...  indeed there is a typo but in this e-mail... I checked
> my files again and they seem correct... 

Ok, fine.

I would check the webserver error/acces log file.
Also, you can enable debug log in MapServer, see [1].

A blank file (== a white png/jpg I assume) indicates that mapserver is
running fine, e.g. no errors happened while rendering.

It can be a projection issue or expression issue for your classes, so
that MapServer is actually rendering 0 objects.

If you can share your mapfile it would help to give further informations.


Lars

[1] http://mapserver.org/optimization/debugging.html

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Stefanos Anastasiou
Well if I right click and "save image as..." I get a png picture which is 
absolutely white :D 

Well I created a new mapfile. Didn't change the already existing one. 

And I just copied and pasted my shapefile to the folder which has full 
permissions as I've said. 



Στις 6:10 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Stefanos Anastasiou 
 έγραψε:
 
Yeah sorry... I guess you're right.  This is my mapfile: 

MAP
NAME Peloponisos
MAP
UNITS dd
SIZE 640 480
IMAGECOLOR 255 255 255
IMAGETYPE png
SHAPEPATH "/home/mapdata/data"
EXTENT -5.00 0.00 0.00 5.00

WEB 
    TEMPLATE '/usr/local/apache2/htdocs/pelop.html'
    IMAGEPATH '/usr/local/apache2/htdocs/tmp'
    IMAGEURL '/tmp/'
END

LAYER
   NAME 'geodata'
   DATA "aisthitika_dash"
   STATUS default
   TYPE polygon
   LABELCACHE on
   LABELITEM 'TEXTSTRING'
   CLASS
       NAME "Dasi"
       STYLE
          COLOR 212 192 100
       END
       LABEL
          COLOR 0 0 0
          SIZE small
       END #Label
  END #Class
END #layer
END #mapfile



Στις 6:00 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η "Fawcett, David (MNIT)" 
 έγραψε:
 
To further diagnose this, it would be useful to see the contents of you 
mapfile.  If no errors are being thrown, it is quite possible that there is an 
issue with spatial reference systems, bounding boxes, or class expressions.  
 
David.
 
From:mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, February 10, 2014 9:50 AM
To: j...@mapmedia.de; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Mapserver can't read mapfile
 
Sorry fellows...  indeed there is a typo but in this e-mail... I checked my 
files again and they seem correct... 
 
If I type on my browser:  
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map   all I 
get is a blank page. The data folder has full permissions:  drwxrwxrwx 
 
All other shapefiles are working correctly but yesterday I just added two more 
in the folder and all I get is a blank screen...     (?)
 
 
Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen 
 έγραψε:
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg

Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 

> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Jörg Thomsen
once again: I have never seen a blank screen when calling mapserver.
I bet there is a withe image try a right-click in your browser-window.

What exactly did you do? Only copying shp-files into the data-folder?
changing the map-file that worked before? creating a new mapfile?

Jörg



Am 10.02.2014 16:49, schrieb Stefanos Anastasiou:
> Sorry fellows...  indeed there is a typo but in this e-mail... I checked
> my files again and they seem correct... 
> 
> If I type on my browser:
>  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map 
>  all I get is a blank page. The data folder has full permissions:
>  drwxrwxrwx 
> 
> All other shapefiles are working correctly but yesterday I just added
> two more in the folder and all I get is a blank screen... (?)
> 
> 
> 
> Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen
>  έγραψε:
> Hi,
> 
> please have a look at your path:
>> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
> and
>> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map
> 
> I guess the first one is correct and that's why you get the error-msg
> with the 2nd one. So, what exactly is the result of the request
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> ?
> it sounds like a white image, not nothing. In this case you should check
> the bboxes and srs first.
> 
> regards, Jörg
> 
> 
> Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
>> Hello!!
>>
>> I'am having my mapfile place in /home/mapdata folder whereas I also keep
>> a couple of other mapfiles too.
>> I'm trying to load it in the following form on the
>> browser:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
>>
>> and all I get is a blank page. No errors no nothing.
>>
>> Then I created an html template in order to click it from there by
>> creating a simple link (and not a from) in the following hyperlink:  >
> href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
>> This link 
>>
>> And I get the following error: msLoadMap(): Unable to access file. 
>>
>> Last time this happened I was invoking Mapserver through a form but this
>> time it's just a simple link.
>>
>> Why is it happening ?
>>
>> The weird thing is that all the other mapfiles that are seem to be
>> working are are having the same permission settings with the
>> current: -rw-r--r--
>>
>> Thanks a lot!
> 
>>
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Σχετ: Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Stefanos Anastasiou
Yeah sorry... I guess you're right.  This is my mapfile: 

MAP
NAME Peloponisos
MAP
UNITS dd
SIZE 640 480
IMAGECOLOR 255 255 255
IMAGETYPE png
SHAPEPATH "/home/mapdata/data"
EXTENT -5.00 0.00 0.00 5.00

WEB 
    TEMPLATE '/usr/local/apache2/htdocs/pelop.html'
    IMAGEPATH '/usr/local/apache2/htdocs/tmp'
    IMAGEURL '/tmp/'
END

LAYER
   NAME 'geodata'
   DATA "aisthitika_dash"
   STATUS default
   TYPE polygon
   LABELCACHE on
   LABELITEM 'TEXTSTRING'
   CLASS
       NAME "Dasi"
       STYLE
          COLOR 212 192 100
       END
       LABEL
          COLOR 0 0 0
          SIZE small
       END #Label
  END #Class
END #layer
END #mapfile



Στις 6:00 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η "Fawcett, David (MNIT)" 
 έγραψε:
 
To further diagnose this, it would be useful to see the contents of you 
mapfile.  If no errors are being thrown, it is quite possible that there is an 
issue with spatial reference systems, bounding boxes, or class expressions.  
 
David.
 
From:mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, February 10, 2014 9:50 AM
To: j...@mapmedia.de; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Mapserver can't read mapfile
 
Sorry fellows...  indeed there is a typo but in this e-mail... I checked my 
files again and they seem correct... 
 
If I type on my browser:  
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map   all I 
get is a blank page. The data folder has full permissions:  drwxrwxrwx 
 
All other shapefiles are working correctly but yesterday I just added two more 
in the folder and all I get is a blank screen...     (?)
 
 
Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen 
 έγραψε:
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg

Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 

> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Dual role of LAYER is confusing

2014-02-10 Thread thomas bonfort
On 10 February 2014 15:13, Rahkonen Jukka  (Tike)
 wrote:
> Hi,
>
> In most cases in Mapfile LAYER is defining the output of the service. 
> However, it looks like the original way to use DATA has not been flexible 
> enough to suit new sources of data and as a workaround one layer is used as 
> an input for another layer. For example if a shapefile is used as tileindex 
> it is enough to write  TILEINDEX "tiger/index.shp"
> However, if one wants to take tileindex from Spatialite it must be done by 
> defining a layer first
>
> LAYER  # The tileindex layer
> NAME "spatialite_tileindex"
> STATUS OFF
> TYPE POLYGON
> CONNECTIONTYPE OGR
> CONNECTION "/orthophotoindex.sqlite"
> DATA "select * from orthophotos where year=2013"
>PROJECTION
>   "init=epsg:3067"
> END
> END # End of tileindex layer
> LAYER # The orthophoto layer
> NAME "orthophotos_2013 "
> STATUS ON
> TILEINDEX "spatialite_tileindex"  # Name of the tileindex layer
> 
>
> I guarantee that many if not all new Mapserver users consider this as tricky. 
> However, situation can be even more tricky. The new RFC about 
> heatmaps/density maps gives an example 
> http://mapserver.org/development/rfc/ms-rfc-108.html.
> The source data for the heatmap layer is configured as
>
> LAYER
> NAME "heatmap"
> TYPE raster
> CONNECTIONTYPE kerneldensity
> CONNECTION "points"
>
> and here "points" is referring to a layer.  It the "points" layer is using 
> ogrtileindex where tileindex is not a shapefile but comes from a database we 
> will need three layers for publishing the heatmap:
> - ogrtileindex layer
> - "points" layer
> - heatmap layer
>
> This is doable but confusing. What is also confusing is that I have not yet 
> found a way to hide those technical layers from WMS.

Supposing you had that use-case given your data files, how would you
specify it in a more readable way if you didn't have this syntax?

>
> Until now after making a web search during a coffee break, it is naturally 
> done with a layer level metadata item "ows_enable_request" "!*" as described 
> in http://mapserver.org/de/development/rfc/ms-rfc-67.html.  Great. But still 
> I feel the dual role of "layer" a bit confusing.  At least in the tileindex 
> case I wish I could simply write just one line even if with somehow 
> complicated syntax. Perhaps it could be something like
>
> TILEINDEX "SELECT * from orthophotos where year=2013 USING OGR CONNECTION 
> /orthophotoindex.sqlite"

I'd argue that referencing an existing layer is less confusing. In any
case it is more powerfull, more flexible and more maintainable in our
codebase.

Interesting points nevertheless

best regards,
thomas

>
> -Jukka Rahkonen-
>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Fawcett, David (MNIT)
To further diagnose this, it would be useful to see the contents of you 
mapfile.  If no errors are being thrown, it is quite possible that there is an 
issue with spatial reference systems, bounding boxes, or class expressions.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, February 10, 2014 9:50 AM
To: j...@mapmedia.de; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Mapserver can't read mapfile

Sorry fellows...  indeed there is a typo but in this e-mail... I checked my 
files again and they seem correct...

If I type on my browser:  
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map   all I 
get is a blank page. The data folder has full permissions:  drwxrwxrwx

All other shapefiles are working correctly but yesterday I just added two more 
in the folder and all I get is a blank screen... (?)


Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen 
mailto:j...@mapmedia.de>> έγραψε:
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg

Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
>
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too.
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
>
> and all I get is a blank page. No errors no nothing.
>
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
>
> And I get the following error: msLoadMap(): Unable to access file.
>
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link.
>
> Why is it happening ?
>
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r--
>
> Thanks a lot!

>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Σχετ: Mapserver can't read mapfile

2014-02-10 Thread Stefanos Anastasiou
Sorry fellows...  indeed there is a typo but in this e-mail... I checked my 
files again and they seem correct... 

If I type on my browser:  
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map   all I 
get is a blank page. The data folder has full permissions:  drwxrwxrwx 

All other shapefiles are working correctly but yesterday I just added two more 
in the folder and all I get is a blank screen...     (?)




Στις 5:37 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jörg Thomsen 
 έγραψε:
 
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg



Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Jörg Thomsen
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg


Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Lars Lingner
Hello,

I can see a difference between

map=/home/mapdata/pelop.map&mode=map

and

map=/home/mapdata/pelop/map&mode=map

Hopefully it is just this typo "." vs "/"


Lars

On 10.02.2014 16:15, Stefanos Anastasiou wrote:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Stefanos Anastasiou
Hello!!

I'am having my mapfile place in /home/mapdata folder whereas I also keep a 
couple of other mapfiles too. 
I'm trying to load it in the following form on the browser: 
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map


and all I get is a blank page. No errors no nothing. 

Then I created an html template in order to click it from there by creating a 
simple link (and not a from) in the following hyperlink:  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> 
This link 

And I get the following error: msLoadMap(): Unable to access file.  

Last time this happened I was invoking Mapserver through a form but this time 
it's just a simple link. 

Why is it happening ? 

The weird thing is that all the other mapfiles that are seem to be working are 
are having the same permission settings with the current: -rw-r--r-- 

Thanks a lot! ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Dual role of LAYER is confusing

2014-02-10 Thread Rahkonen Jukka (Tike)
Hi,

In most cases in Mapfile LAYER is defining the output of the service. However, 
it looks like the original way to use DATA has not been flexible enough to suit 
new sources of data and as a workaround one layer is used as an input for 
another layer. For example if a shapefile is used as tileindex it is enough to 
write  TILEINDEX "tiger/index.shp" 
However, if one wants to take tileindex from Spatialite it must be done by 
defining a layer first

LAYER  # The tileindex layer
NAME "spatialite_tileindex"
STATUS OFF
TYPE POLYGON
CONNECTIONTYPE OGR
CONNECTION "/orthophotoindex.sqlite"
DATA "select * from orthophotos where year=2013"
   PROJECTION
  "init=epsg:3067" 
END
END # End of tileindex layer
LAYER # The orthophoto layer
NAME "orthophotos_2013 "
STATUS ON
TILEINDEX "spatialite_tileindex"  # Name of the tileindex layer


I guarantee that many if not all new Mapserver users consider this as tricky. 
However, situation can be even more tricky. The new RFC about heatmaps/density 
maps gives an example http://mapserver.org/development/rfc/ms-rfc-108.html.
The source data for the heatmap layer is configured as

LAYER
NAME "heatmap"
TYPE raster
CONNECTIONTYPE kerneldensity
CONNECTION "points"

and here "points" is referring to a layer.  It the "points" layer is using 
ogrtileindex where tileindex is not a shapefile but comes from a database we 
will need three layers for publishing the heatmap:
- ogrtileindex layer
- "points" layer
- heatmap layer

This is doable but confusing. What is also confusing is that I have not yet 
found a way to hide those technical layers from WMS.

Until now after making a web search during a coffee break, it is naturally done 
with a layer level metadata item "ows_enable_request" "!*" as described in 
http://mapserver.org/de/development/rfc/ms-rfc-67.html.  Great. But still I 
feel the dual role of "layer" a bit confusing.  At least in the tileindex case 
I wish I could simply write just one line even if with somehow complicated 
syntax. Perhaps it could be something like

TILEINDEX "SELECT * from orthophotos where year=2013 USING OGR CONNECTION 
/orthophotoindex.sqlite"

-Jukka Rahkonen-




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users