[mapserver-users] MapCache - tiles stored with no transparency

2014-06-02 Thread Dejan Gambin
Hi,

I just started playing with MapCache so this could be a pretty newbie 
question...

I have a layer with transparency set, but my tiles, as I can see in filesystem, 
are stored with no transparency. When using mapcache wms demo, I get 
correct/transparent images but only after first getting non transparent ones. 
So this doesn't look very fine (non transparent image that gets blurred).

I probably missed something in my configuration, but I don't know what because 
I set PNG format everywhere in mapcache.xml :-(

Any hint that could help me (btw, I am using the newest MapServer/MapCache)?

Thx very much

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


Re: [mapserver-users] MapCache - tiles stored with no transparency

2014-06-02 Thread Eichner, Andreas - SID
Since cache and source are basically unrelated it's probably a good idea to 
specify the request format in the source:

   source name=... type=wms
  getmap
 params
VERSION1.1.1/VERSION
FORMATimage/png/FORMAT
LAYERSlayerA,layerB/LAYERS
TRANSPARENTTRUE/TRANSPARENT
EXCEPTIONSapplication/vnd.ogc.se_xml/EXCEPTIONS
 /params
  /getmap
  http
   urlhttp://.../wmsservice/url
   connection_timeout10/connection_timeout
  /http
   /source

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Dejan Gambin
 Gesendet: Montag, 2. Juni 2014 10:29
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] MapCache - tiles stored with no transparency
 
 Hi,
 
 I just started playing with MapCache so this could be a pretty newbie
 question...
 
 I have a layer with transparency set, but my tiles, as I can see in
 filesystem, are stored with no transparency. When using mapcache wms demo,
 I get correct/transparent images but only after first getting non
 transparent ones. So this doesn't look very fine (non transparent image
 that gets blurred).
 
 I probably missed something in my configuration, but I don't know what
 because I set PNG format everywhere in mapcache.xml :-(
 
 Any hint that could help me (btw, I am using the newest
 MapServer/MapCache)?
 
 Thx very much
 
 regards, dejan
 ___
 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] MapCache - tiles stored with no transparency

2014-06-02 Thread Dejan Gambin
This is already specified :-(

Thx anyway


On 2. lip. 2014., at 11:41, Eichner, Andreas - SID wrote:

 Since cache and source are basically unrelated it's probably a good idea to 
 specify the request format in the source:
 
   source name=... type=wms
  getmap
 params
VERSION1.1.1/VERSION
FORMATimage/png/FORMAT
LAYERSlayerA,layerB/LAYERS
TRANSPARENTTRUE/TRANSPARENT
EXCEPTIONSapplication/vnd.ogc.se_xml/EXCEPTIONS
 /params
  /getmap
  http
   urlhttp://.../wmsservice/url
   connection_timeout10/connection_timeout
  /http
   /source
 
 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Dejan Gambin
 Gesendet: Montag, 2. Juni 2014 10:29
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] MapCache - tiles stored with no transparency
 
 Hi,
 
 I just started playing with MapCache so this could be a pretty newbie
 question...
 
 I have a layer with transparency set, but my tiles, as I can see in
 filesystem, are stored with no transparency. When using mapcache wms demo,
 I get correct/transparent images but only after first getting non
 transparent ones. So this doesn't look very fine (non transparent image
 that gets blurred).
 
 I probably missed something in my configuration, but I don't know what
 because I set PNG format everywhere in mapcache.xml :-(
 
 Any hint that could help me (btw, I am using the newest
 MapServer/MapCache)?
 
 Thx very much
 
 regards, dejan
 ___
 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-06-02 Thread Stefanos Anastasiou
Hi Steve,

yes they are bot set. The whole mapfile looks like this.

MAP
NAME Dasarxeia
UNITS DD
SIZE 800 600
IMAGECOLOR 255 255 255
IMAGETYPE JPEG
SHAPEPATH /home/mapdata/data/dasarxeia
EXTENT 17.00 33.00 32.00 42.00

WEB
   TEMPLATE /usr/local/apache2/htdocs/dasarxeia.html
   IMAGEPATH /usr/local/apache2/htdocs/tmp
   IMAGEURL /tmp/
END
LAYER
    NAME Dasarxeia
    DATA dasarxeia
    STATUS default
    TYPE polygon
    LABELCACHE on
    LABELITEM POIST
    CLASS 
      STYLE
          COLOR 0 0 0
      END
      LABEL
         COLOR 0 0 0
         SIZE SMALL
      END
    END
END
END



Στις 11:48 μ.μ. Κυριακή, 1 Ιουνίου 2014, ο/η Stephen Woodbridge 
wood...@swoodbridge.com έγραψε:
 


Are your
   MAP
     UNITS DD
Set?

-Steve

On 6/1/2014 3:31 PM, Stefanos Anastasiou wrote:
 Hi Jeff,

 I came to this old post once again and I tried the above mentioned.
 shp2img still produces an image which is blank or whatever the color of
 the mapfile is defined. On the other hand I checked the EXTENT once
 again and it was wrong so I changed to the appropriate one (EXTENT 17.00
 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be
 fine. If STATUS is set to default or On there's no difference. I also
 changed TYPE to line and polygon just to be sure but nothing.

 My shapefile is a polygon with boundaries.  Why wouldn't it appear on
 the browser?

 Thanks again and I'm sorry for writing about it so late.

 Stefanos


 Στις 7:15 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jeff McKenna
 jmcke...@gatewaygeomatics.com έγραψε:


 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.mapmode=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:  a
  
 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
   This link /a
  
   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 mailto: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-06-02 Thread Jeff McKenna
Hi Stefanos,

Some comments:

- the best way to get the exact extent is to use the ogrinfo commandline
utility with the -summary switch:

  ogrinfo dasarxeia.shp dasarxeia -summary

- be careful with your SHAPEPATH, if your file is
/home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH
/home/mapdata/data/

- when using shp2img, at the end of the command add -all_debug 3 to
see more useful error messages/notices

- sometimes extent values in QGIS can be confusing, because sometimes it
can display the data in a different projection without you knowing it
(Project Properties/CRS/Enable 'on the fly' transformation)...so be careful


-jeff




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



On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 
 I came to this old post once again and I tried the above mentioned.
 shp2img still produces an image which is blank or whatever the color of
 the mapfile is defined. On the other hand I checked the EXTENT once
 again and it was wrong so I changed to the appropriate one (EXTENT 17.00
 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be
 fine. If STATUS is set to default or On there's no difference. I also
 changed TYPE to line and polygon just to be sure but nothing. 
 
 My shapefile is a polygon with boundaries.  Why wouldn't it appear on
 the browser?
 
 Thanks again and I'm sorry for writing about it so late.
 
 Stefanos
 
 
 Στις 7:15 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jeff McKenna
 jmcke...@gatewaygeomatics.com έγραψε:
 
 
 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.mapmode=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:  a

 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
 This link /a

 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] Σχετ: Σχετ: Mapserver can't read mapfile

2014-06-02 Thread Stefanos Anastasiou
Hi Jeff,
thanks for your reply. 
- I indeed used the ogrinfo utility and I gave me the extent in GCS_GGRS_1987. 
So I transformed the coordinates to WGS84. 

- I also had my moved my data one folder up (that is also my Shapepath 
/home/mapdata/data/) just to make sure.

-The output of shp2img -m dasarxeia.map -o test.png -all_debug 3 gives me the 
following: 

[Mon Jun  2 18:48:09 2014].50643 msLoadMap(): 0.001s
[Mon Jun  2 18:48:09 2014].54233 msDrawMap(): rendering using outputformat 
named jpeg (AGG/JPEG).
[Mon Jun  2 18:48:09 2014].54749 msDrawMap(): Layer 0 (Dasarxeia), 0.000s
[Mon Jun  2 18:48:09 2014].54951 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun  2 18:48:09 2014].55124 msDrawMap() total time: 0.004s
[Mon Jun  2 18:48:09 2014].75257 msSaveImage(test.png) total time: 0.020s
[Mon Jun  2 18:48:09 2014].75714 shp2img total time: 0.026s


Another weird thing I noticed is that if I try to run the mapfile itself on the 
browser 
(http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.mapmode=map)
 it gives me an error
- msLoadMap(): Unable to access file. 
(/home/stefanos/mapdata/dasarxeia.map) 
The permissions that are set for the mapfile are:  -rw-rw-rw-

I was also wondering if it is some kind of a configuration in Apache's http.conf

Thanks

-Stefanos 



Στις 3:57 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna 
jmcke...@gatewaygeomatics.com έγραψε:
 


Hi Stefanos,

Some comments:

- the best way to get the exact extent is to use the ogrinfo commandline
utility with the -summary switch:

  ogrinfo dasarxeia.shp dasarxeia -summary

- be careful with your SHAPEPATH, if your file is
/home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH
/home/mapdata/data/

- when using shp2img, at the end of the command add -all_debug 3 to
see more useful error messages/notices

- sometimes extent values in QGIS can be confusing, because sometimes it
can display the data in a different projection without you knowing it
(Project Properties/CRS/Enable 'on the fly' transformation)...so be careful


-jeff




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




On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 
 I came to this old post once again and I tried the above mentioned.
 shp2img still produces an image which is blank or whatever the color of
 the mapfile is defined. On the other hand I checked the EXTENT once
 again and it was wrong so I changed to the appropriate one (EXTENT 17.00
 33.00 32.00 42.00) which I checked on QGIS in WGS84 so it should be
 fine. If STATUS is set to default or On there's no difference. I also
 changed TYPE to line and polygon just to be sure but nothing. 
 
 My shapefile is a polygon with boundaries.  Why wouldn't it appear on
 the browser?
 
 Thanks again and I'm sorry for writing about it so late.
 
 Stefanos
 
 
 Στις 7:15 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jeff McKenna
 jmcke...@gatewaygeomatics.com έγραψε:
 
 
 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.mapmode=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:  a

 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
 This link /a

 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

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

2014-06-02 Thread Stefanos Anastasiou
Correction about the last one: I had a typo in the path when running the 
mapfile straight in the browser. The correct is 
http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.mapmode=map

and it still appears a blank page. 

-Stefanos


Στις 6:57 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Stefanos Anastasiou 
emperor_s...@yahoo.gr έγραψε:
 


Hi Jeff,
thanks for your reply. 
- I indeed used the ogrinfo utility and I gave me the extent in GCS_GGRS_1987. 
So I transformed the coordinates to WGS84. 

- I also had my moved my data one folder up (that is also my Shapepath 
/home/mapdata/data/) just to make sure.

-The output of shp2img -m dasarxeia.map -o test.png -all_debug 3 gives me the 
following: 

[Mon Jun  2 18:48:09 2014].50643 msLoadMap(): 0.001s
[Mon Jun  2 18:48:09 2014].54233 msDrawMap(): rendering using outputformat 
named jpeg (AGG/JPEG).
[Mon Jun  2 18:48:09 2014].54749 msDrawMap(): Layer 0 (Dasarxeia), 0.000s
[Mon Jun  2 18:48:09 2014].54951 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun  2 18:48:09 2014].55124 msDrawMap() total time: 0.004s
[Mon Jun  2 18:48:09 2014].75257 msSaveImage(test.png) total time: 0.020s
[Mon Jun  2 18:48:09 2014].75714 shp2img total time: 0.026s


Another weird thing I noticed is that if I try to run the mapfile itself on the 
browser 
(http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.mapmode=map)
 it gives me an error
- msLoadMap(): Unable to access file. 
(/home/stefanos/mapdata/dasarxeia.map) 
The permissions that are set for the mapfile are:  -rw-rw-rw-

I was also wondering if it is some kind of a configuration in Apache's http.conf

Thanks

-Stefanos 



Στις 3:57 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna 
jmcke...@gatewaygeomatics.com έγραψε:
 


Hi Stefanos,

Some comments:

- the best way to get the exact extent is to use the ogrinfo commandline
utility with the -summary switch:

  ogrinfo dasarxeia.shp dasarxeia -summary

- be careful with your SHAPEPATH, if your file is
/home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH
/home/mapdata/data/

- when using shp2img, at the end of the command add -all_debug 3 to
see more useful error messages/notices

- sometimes extent values in QGIS can be confusing, because sometimes it
can display the data in a different projection without you knowing it
(Project Properties/CRS/Enable 'on the fly' transformation)...so be careful


-jeff




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




On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 
 I came to this old post once again and I tried the above mentioned.
 shp2img still produces an image which is blank or whatever the color of
 the mapfile is defined. On the other hand I checked the EXTENT once
 again and it was wrong so I changed to the appropriate one (EXTENT 17.00
 33.00 32.00 42.00) which I checked on
 QGIS in WGS84 so it should be
 fine. If STATUS is set to default or On there's no difference. I also
 changed TYPE to line and polygon just to be sure but nothing. 
 
 My shapefile is a polygon with boundaries.  Why wouldn't it appear on
 the browser?
 
 Thanks again and I'm sorry for writing about it so late.
 
 Stefanos
 
 
 Στις 7:15 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jeff McKenna
 jmcke...@gatewaygeomatics.com έγραψε:
 
 
 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.mapmode=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:  a

 href=http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/mapmode=map
 This link /a

 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 

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

2014-06-02 Thread Jeff McKenna
On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 thanks for your reply. 
 - I indeed used the ogrinfo utility and I gave me the extent
 in GCS_GGRS_1987. So I transformed the coordinates to WGS84. 
 

I'm not sure what you mean here by I transformed the coordinates.
Literally copy/paste the extents from ogrinfo into your EXTENT parameter
in your mapfile.

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
___
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-06-02 Thread Stefanos Anastasiou
Wow... I literally copied and pasted the coordinates to the EXTENT parameter 
and it worked. Thank you very much..!!   :-) 

I though that the mapfile would only read coordinates that are in Long/Lat 
format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 
2100). So I thought I could only import them in Lon/Lat.

Thanks a lot!  

-Stefanos


Στις 7:07 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna 
jmcke...@gatewaygeomatics.com έγραψε:
 


On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 thanks for your reply. 
 - I indeed used the ogrinfo utility and I gave me the extent
 in GCS_GGRS_1987. So I transformed the coordinates to WGS84. 
 

I'm not sure what you mean here by I transformed the coordinates.
Literally copy/paste the extents from ogrinfo into your EXTENT parameter
in your mapfile.


-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.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] Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile

2014-06-02 Thread Basques, Bob (CI-StPaul)
The Extent uses is based on the source data coordinates,, unless you also 
provide a reprojection block in your mapfile/maplayers.

Bobb



From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, June 02, 2014 11:20 AM
To: Jeff McKenna; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile

Wow... I literally copied and pasted the coordinates to the EXTENT parameter 
and it worked. Thank you very much..!!   :-)

I though that the mapfile would only read coordinates that are in Long/Lat 
format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 
2100). So I thought I could only import them in Lon/Lat.

Thanks a lot!

-Stefanos

Στις 7:07 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna 
jmcke...@gatewaygeomatics.commailto:jmcke...@gatewaygeomatics.com έγραψε:

On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 thanks for your reply.
 - I indeed used the ogrinfo utility and I gave me the extent
 in GCS_GGRS_1987. So I transformed the coordinates to WGS84.


I'm not sure what you mean here by I transformed the coordinates.
Literally copy/paste the extents from ogrinfo into your EXTENT parameter
in your mapfile.


-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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-06-02 Thread Stefanos Anastasiou
Thanks Bobb

One more thing... I noticed that if I enter the STATUS default it works fine.  
But if I enter STATUS on the page is blank again. 

Any idea why?

-Stefanos


Στις 8:26 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.us έγραψε:
 


The Extent uses is based on the source data coordinates,, unless you also 
provide a reprojection block in your mapfile/maplayers.
 
Bobb
 
 
 
From:mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefanos 
Anastasiou
Sent: Monday, June 02, 2014 11:20 AM
To: Jeff McKenna; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile
 
Wow... I literally copied and pasted the coordinates to the EXTENT parameter 
and it worked. Thank you very much..!!   :-) 
 
I though that the mapfile would only read coordinates that are in Long/Lat 
format in WGS84. My coords were x,y format in Greek grid (EGSA '87 - EPSG 
2100). So I thought I could only import them in Lon/Lat.
 
Thanks a lot!  
 
-Stefanos
 
Στις 7:07 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna 
jmcke...@gatewaygeomatics.com έγραψε:
 
On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote:
 Hi Jeff,
 thanks for your reply. 
 - I indeed used the ogrinfo utility and I gave me the extent
 in GCS_GGRS_1987. So I transformed the coordinates to WGS84. 
 

I'm not sure what you mean here by I transformed the coordinates.
Literally copy/paste the extents from ogrinfo into your EXTENT parameter
in your mapfile.


-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.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] Σχετ: Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile

2014-06-02 Thread Stephen Woodbridge

STATUS DEFAULT forces the layer to by on regardless.
STATUS ON allows the laye to be turned on/off and in your request you 
need to supply a list of layers to tuen on by name.


shp2img ... -l my_layer1 my_layer_1

or in CGI

layers=all...
layers=my_layer1+my_layer2...

-Steve

On 6/2/2014 4:10 PM, Stefanos Anastasiou wrote:

Thanks Bobb

One more thing... I noticed that if I enter the STATUS default it works
fine.  But if I enter STATUS on the page is blank again.

Any idea why?

-Stefanos


Στις 8:26 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Basques, Bob (CI-StPaul)
bob.basq...@ci.stpaul.mn.us έγραψε:


The Extent uses is based on the source data coordinates,, unless you
also provide a reprojection block in your mapfile/maplayers.
Bobb
*From:*mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Stefanos
Anastasiou
*Sent:* Monday, June 02, 2014 11:20 AM
*To:* Jeff McKenna; mapserver-users@lists.osgeo.org
*Subject:* [mapserver-users] Σχετ: Σχετ: Σχετ: Mapserver can't read mapfile
Wow... I literally copied and pasted the coordinates to the EXTENT
parameter and it worked. Thank you very much..!!   :-)
I though that the mapfile would only read coordinates that are in
Long/Lat format in WGS84. My coords were x,y format in Greek grid (EGSA
'87 - EPSG 2100). So I thought I could only import them in Lon/Lat.
Thanks a lot!
-Stefanos
Στις 7:07 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna
jmcke...@gatewaygeomatics.com mailto:jmcke...@gatewaygeomatics.com
έγραψε:
On 2014-06-02, 12:56 PM, Stefanos Anastasiou wrote:

Hi Jeff,
thanks for your reply.
- I indeed used the ogrinfo utility and I gave me the extent
in GCS_GGRS_1987. So I transformed the coordinates to WGS84.



I'm not sure what you mean here by I transformed the coordinates.
Literally copy/paste the extents from ogrinfo into your EXTENT parameter
in your mapfile.


-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org mailto: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] Ubuntu 14.04 and Mapserver 6.4.1-2

2014-06-02 Thread Haug, Jim
I recently upgraded to Ubuntu 14.04 with no visible issues.

The url below is generated in my web page code and is sent to the mapserver:

http://hawken.sdsmt.edu/cgi-bin/mapserv?mode=itemnqueryqformat=pngmap=/gisdata/sd/sd_x-printform.mapqlayer=surveysqitem=archiveqstring=/ESD-0498/ilayer=siteslayer=drg024k_13Nlayer=drg024k_14Nlayer=drg250k_13Nlayer=drg250k_14Nlayer=sd_plsslayer=sd_trmapsize=480+480mapext=shapescaledenom=932875

It worked fine in Ubuntu 13.10 using Mapserver version 6.2.1-3 and generated a 
map properly. It no longer works in mapserver 6.4.1-2 in Ubuntu 14.04. Now I 
get the error message

mapserv(): Web application error. Parameter 'qstring' value fails to validate. 
msValidateParameter(): Regular expression error. Parameter pattern validation 
failed.

None of my underlying data or map files have changed. I'm completely mystified 
as to why this is happening. I hope I don't have to revert to Ubuntu 13.10, but 
I have a backup in case I need to.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2

2014-06-02 Thread Lime, Steve D (MNIT)
The difference is MapServer version, not Ubuntu. You *must* define a validation 
pattern (a regex) for qstring values. In either the web or layer block 
(depending on your app) you'd do something like:

VALIDATION
  'qstring' '^\/ESD-[0-9]*\/i$'
END

Depends on what sort of values you might see of course. It looks worse than it 
is because you want to escape (I think) a few special characters. Hope this 
helps.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Haug, Jim
Sent: Monday, June 02, 2014 3:15 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2

I recently upgraded to Ubuntu 14.04 with no visible issues.

The url below is generated in my web page code and is sent to the mapserver:

http://hawken.sdsmt.edu/cgi-bin/mapserv?mode=itemnqueryqformat=pngmap=/gisdata/sd/sd_x-printform.mapqlayer=surveysqitem=archiveqstring=/ESD-0498/ilayer=siteslayer=drg024k_13Nlayer=drg024k_14Nlayer=drg250k_13Nlayer=drg250k_14Nlayer=sd_plsslayer=sd_trmapsize=480+480mapext=shapescaledenom=932875

It worked fine in Ubuntu 13.10 using Mapserver version 6.2.1-3 and generated a 
map properly. It no longer works in mapserver 6.4.1-2 in Ubuntu 14.04. Now I 
get the error message

mapserv(): Web application error. Parameter 'qstring' value fails to validate. 
msValidateParameter(): Regular expression error. Parameter pattern validation 
failed.

None of my underlying data or map files have changed. I'm completely mystified 
as to why this is happening. I hope I don't have to revert to Ubuntu 13.10, but 
I have a backup in case I need to.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)?

2014-06-02 Thread Lime, Steve D (MNIT)
MapServer has no default, it's just uses a simple Cartesian coordinate system. 
HOWEVER, the CGI does have some hooks that tries to auto-detect lat/lon 
coordinates and automatically convert them to what's set in the MAP's 
projection block. I believe that only kicks in if there is a projection block 
defined.

How'd you trigger the message?

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, June 02, 2014 5:40 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] What is the default coordinate system used in 
MapServer (if no projection is defined)?

All,

So I was trying to just display some data without a coordinate system assigned. 
 And I ended up eventually getting a LAT/LON (out of range) error.  Once I set 
the projection in the MAP block to something resembling a XY projection, all 
was well.

I suspect that LAT/LON is the default?  Is there a way to do something other 
than what I did to use simple Cartesian coordinates?

Bobb


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

Re: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)?

2014-06-02 Thread Basques, Bob (CI-StPaul)
I had an extent of 0 0 360 120  (units inches, 10ftx30ft)

Anyway, I think I tried zooming in to 50 50 80 80 and the 80 values seem to 
have been the problem.  I can send the actual link tomorrow if you want I have 
it in browser cache at the other desk.

I set the Map projection to 4326 and it all works fine.  Must be the two 80s 
without one being a negative as you described.  And yes I was using a CGI.

From: Lime, Steve D (MNIT)
Sent: Monday, June 02, 2014 5:50 PM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] What is the default coordinate system used in 
MapServer (if no projection is defined)?

MapServer has no default, it’s just uses a simple Cartesian coordinate system. 
HOWEVER, the CGI does have some hooks that tries to auto-detect lat/lon 
coordinates and automatically convert them to what’s set in the MAP’s 
projection block. I believe that only kicks in if there is a projection block 
defined.

How’d you trigger the message?

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, June 02, 2014 5:40 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] What is the default coordinate system used in 
MapServer (if no projection is defined)?

All,

So I was trying to just display some data without a coordinate system assigned. 
 And I ended up eventually getting a LAT/LON (out of range) error.  Once I set 
the projection in the MAP block to something resembling a XY projection, all 
was well.

I suspect that LAT/LON is the default?  Is there a way to do something other 
than what I did to use simple Cartesian coordinates?

Bobb


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

[mapserver-users] Is there a max SIZE value for a LABEL block??

2014-06-02 Thread Basques, Bob (CI-StPaul)
All,

I think I've run into this in the past, but . . .

Is there a limit on the SIZE value in LABEL block?  I seem to be hitting a wall 
at anything over 250

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