Re: [mapserver-users] MapServer and 24bit Images

2012-12-05 Thread Rahkonen Jukka
Hi,

You should try to give more exact description about your problem. By reading 
several mails which you have sent to MS4W list I believe that you are still 
talking about the same images. That is 3-band,  8 bits per band images stored 
into database as PostGIS raster and which you have tried to classify into 
classes with something like this

CLASS # beginning of the class parameter
 NAME Very Low
 EXPRESSION ([pixel]  0 AND [pixel]  47)
 STYLE
  COLOR 243 231 172
END # end style for class
END # end class for class very Low

I had a try with some png file I found from my machine by using this in the 
mapfile

LAYER
  NAME classified
  DATA C:\ms4w\apps\data\800.png
  debug 10
  TYPE RASTER
  STATUS ON
   PROJECTION
init=epsg:3067 
   END
 CLASS
NAME test
   EXPRESSION ([pixel]  100 AND [pixel]  250)
   # EXPRESSION ([red]  100 AND [green]  100 AND [blue]  100)
STYLE
  COLOR 0 255 0
END
  END
END

Both expressions work so Mapserver does support classification of 3-band, 8 
bits per band png images.
Try you to convert your raster from the database into image file and repeat 
your test. It if works from a file but not from PostGIS raster then you know 
that the issue is somewhere in PostGIS raster handling.

-Jukka Rahkonen-



 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-
 users-boun...@lists.osgeo.org] Puolesta Lime, Steve D (DNR)
 Lähetetty: 4. joulukuuta 2012 21:26
 Vastaanottaja: Saint; mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] MapServer and 24bit Images
 
 I display true-color imagery all the time. I suspect that's not what you're
 trying to do though. You'll have to be more specific on format, perhaps post a
 layer definition?
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Saint
 Sent: Monday, December 03, 2012 10:06 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer and 24bit Images
 
 Dear all,
 
 I would like to have this confirmation, MapServer support 24bit image with 3
 bands? I have one 24bit image 1 band and I can see in the browser but the
 other with 3 bands I can't. Only appear the the outline line of the class e 
 not
 the image.
 
 Many thanks
 José Santos
 
 
 
 -
 José Santos
 GIS Analyst
 --
 View this message in context: http://osgeo-
 org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Zooming

2012-12-05 Thread Arthur Delorme

Thank you very much Steve, it's working perfectly!

Arthur

Le 04/12/12 22:27, Lime, Steve D (DNR) a écrit :

You could write a onClick handler that takes a zoom value, sets a hidden 
variable called zoom and submits the form.

function doZoom(zoom) {
   // set value of zoom hidden variable
   // submit the form
}

input type=hidden name=zoom value=set programmatically

img src=dezoom.png onclick=doZoom(-2) / img src=zoom.png 
onclick=doZoom(2) /

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Arthur Delorme
Sent: Monday, December 03, 2012 8:03 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Zooming

Hello,

Is there a way to perform a zoom with input instead of select or radio?

I used to do that with the following code but it's not working anymore on 
recent versions of Firefox:

input type=image name=zoom src=dezoom.png value=-2 / input type=image name=zoom 
src=zoom.png value=2 /

Thank you,
Arthur
___
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 and 24bit Images

2012-12-05 Thread Brent Fraser

Jukka,

  Strange.  When I reviewed the source code it looked like Mapserver 
would refused to classify any 24/32 bit image; I must have missed 
something.   So I tried your mapfile with shp2img v6.0.0 on a 24bit 
image and it worked!  Then I added


PROCESSING BANDS=1,2,3

and it *crashed*.  Turning on debugging showed:

msLoadMap(): 0.000s
msDrawMap(): rendering using outputformat named png24 (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawRasterLayerLow(classified): entering.
msDrawRasterLayerGDAL(): Entering transform.
msDrawRasterLayerGDAL(): src=0,0,5300,5430, dst=107,0,585,599
msDrawRasterLayerGDAL(): source raster PL (-6.077,-4.533) for dst PL 
(107,0).

msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,2,3,0*
drawGDAL(): Unable to access file. Attempt to classify 24bit image, this 
is unsupported.

msDrawMap(): Image handling error. Failed to draw layer named 'classified'.
*crash*

Without the PROCESSING directive, I get:

msLoadMap(): 0.000s
msDrawMap(): rendering using outputformat named png24 (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawRasterLayerLow(classified): entering.
msDrawRasterLayerGDAL(): Entering transform.
msDrawRasterLayerGDAL(): src=0,0,5300,5430, dst=107,0,585,599
msDrawRasterLayerGDAL(): source raster PL (-6.077,-4.533) for dst PL 
(107,0).

msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,0,0,0*
msDrawMap(): Layer 0 (classified), 0.187s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 0.187s
msSaveImage(test.png) total time: 0.125s
msFreeMap(): freeing map at 00BBC4A8.
freeLayer(): freeing layer at 00BBF9B0.
shp2img total time: 0.312s

The line
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = *1,0,0,0*
implies that GDAL may be using only band one to do the classification, 
but maybe not (more testing required?).


Removing the EXPRESSION object shows
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0
And I do get a 24 bit image for output (as expected).



FYI, here's my mapfile:

MAP
NAME 'classified'
STATUS ON
EXTENT -5009377.086 10752549.183 392.653 15885200.067
SIZE 800 600

IMAGETYPE png24
OUTPUTFORMAT # Parameter Output
NAME png24
DRIVER AGG/PNG
MIMETYPE image/png
EXTENSION PNG
IMAGEMODE RGBA
TRANSPARENT ON
END # end of parameter Output

LAYER NAME classified

  DATA Arctic_terra.250m.tif
  DEBUG 5
  TYPE raster
  STATUS default
#PROCESSING NODATA=0
#PROCESSING SCALE=AUTO
#PROCESSING BANDS=1,2,3
#PROCESSING DITHER=YES
  CLASS NAME test
#EXPRESSION ([pixel]  100 AND [pixel]  250)
EXPRESSION ([red]  100 AND [green]  100 AND [blue]  100)
STYLE
  COLOR 0 255 0
END #Style
  END # Class
END # Layer

END # Map


Best Regards,
Brent Fraser

On 12/5/2012 2:27 AM, Rahkonen Jukka wrote:

Hi,

You should try to give more exact description about your problem. By reading 
several mails which you have sent to MS4W list I believe that you are still 
talking about the same images. That is 3-band,  8 bits per band images stored 
into database as PostGIS raster and which you have tried to classify into 
classes with something like this

CLASS # beginning of the class parameter
  NAME Very Low
  EXPRESSION ([pixel]  0 AND [pixel]  47)
  STYLE
   COLOR 243 231 172
END # end style for class
END # end class for class very Low

I had a try with some png file I found from my machine by using this in the 
mapfile

LAYER
   NAME classified
   DATA C:\ms4w\apps\data\800.png
   debug 10
   TYPE RASTER
   STATUS ON
PROJECTION
 init=epsg:3067
END
  CLASS
 NAME test
EXPRESSION ([pixel]  100 AND [pixel]  250)
# EXPRESSION ([red]  100 AND [green]  100 AND [blue]  100)
 STYLE
   COLOR 0 255 0
 END
   END
END

Both expressions work so Mapserver does support classification of 3-band, 8 
bits per band png images.
Try you to convert your raster from the database into image file and repeat 
your test. It if works from a file but not from PostGIS raster then you know 
that the issue is somewhere in PostGIS raster handling.

-Jukka Rahkonen-




-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-
users-boun...@lists.osgeo.org] Puolesta Lime, Steve D (DNR)
Lähetetty: 4. joulukuuta 2012 21:26
Vastaanottaja: Saint; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] MapServer and 24bit Images

I display true-color imagery all the time. I suspect that's not what you're
trying to do though. You'll have to be more specific on format, perhaps post a
layer definition?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
boun...@lists.osgeo.org] On Behalf Of Saint
Sent: Monday, December 03, 2012 10:06 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer and 24bit Images


[mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Saka Royban
Hi guys 
After a lot of effort to use CGI mapserver in my own site and finally leaving 
hope to find a solution, i came here to ask whether maserver is useful just for 
dedicated servers or VPSs really? 
I (and as it sounds, most of users) have just bought some space from a host 
provider (i.e Linux) with a CGI-bin directory which as my host provider says is 
able to run CGI applications written in perl and C/C++.

I have searched a lot but as it appears no one has been successful to run CGI 
mapserver in its CGI-bin folder. Am i right? CGI mapserver is useful just when 
shell access is available? Should i switch to Mapscript? Or maybe, buy a 
windows host with CGI capability?

Your help would nicely be appreciated. I'm really got stuck and confused.

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


Re: [mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Mr. Puneet Kishor

On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com wrote:

 Hi guys 
 After a lot of effort to use CGI mapserver in my own site and finally leaving 
 hope to find a solution, i came here to ask whether maserver is useful just 
 for dedicated servers or VPSs really? 
 I (and as it sounds, most of users) have just bought some space from a host 
 provider (i.e Linux) with a CGI-bin directory which as my host provider says 
 is able to run CGI applications written in perl and C/C++.
 
 I have searched a lot but as it appears no one has been successful to run CGI 
 mapserver in its CGI-bin folder. Am i right?


You are not right. MapServer is surprisingly easy to set up and get working, at 
least for basic and mid-complexity use cases.


 CGI mapserver is useful just when shell access is available? Should i switch 
 to Mapscript? Or maybe, buy a windows host with CGI capability?


Unless you figure out what you are doing wrong, you can't set it right. Why 
don't you post your issues here in detail (how you are setting things up, have 
you followed the tutorial, etc.) along with the errors you are getting (general 
description as well as specific error messages. I am sure one of us will be 
able to help you.



 
 Your help would nicely be appreciated. I'm really got stuck and confused.
 


Yup, frustration is a common feeling when things don't work, but really, no 
need to give up. You can do it, we can help



--
Puneet Kishor
Science and Data Policy at Creative Commons
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Saka Royban
Thanks for your answer
After lots of try, i found that i can extract mapserver binary from rpm using 
7zip. I put that executable file to cgi-bin and call it via address bar but no 
success, just 500 Internal Server Error. (I know mapserver has some 
dependencies but in spite of that it everything was right it should display a 
nice error)
Contacting with guys in host provider, they pointed me to 
http://mapserver.org/installation/unix.html#installation and finally told me 
there is no shell access to run this commands.
I'm familiar with structure of mapserver cause of working with MS4W in my own 
computer. In addition, i've checked CGI-bin directory by running some perl 
script and everything is O.K. They really provide CGI capability.

Now, i don't know what can i do more. (I'm not familiar with Linux, although i 
know what running a shell command means. I've been around computer since DOS 
age)

Thanks in advance for helpful advices.
Regards




- Original Message -
From: Mr. Puneet Kishor punk.k...@gmail.com
To: MapServer OSGEO mapserver-users@lists.osgeo.org
Cc: 
Sent: Wednesday, December 5, 2012 9:24 PM
Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?


On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com wrote:

 Hi guys 
 After a lot of effort to use CGI mapserver in my own site and finally leaving 
 hope to find a solution, i came here to ask whether maserver is useful just 
 for dedicated servers or VPSs really? 
 I (and as it sounds, most of users) have just bought some space from a host 
 provider (i.e Linux) with a CGI-bin directory which as my host provider says 
 is able to run CGI applications written in perl and C/C++.
 
 I have searched a lot but as it appears no one has been successful to run CGI 
 mapserver in its CGI-bin folder. Am i right?


You are not right. MapServer is surprisingly easy to set up and get working, at 
least for basic and mid-complexity use cases.


 CGI mapserver is useful just when shell access is available? Should i switch 
 to Mapscript? Or maybe, buy a windows host with CGI capability?


Unless you figure out what you are doing wrong, you can't set it right. Why 
don't you post your issues here in detail (how you are setting things up, have 
you followed the tutorial, etc.) along with the errors you are getting (general 
description as well as specific error messages. I am sure one of us will be 
able to help you.



 
 Your help would nicely be appreciated. I'm really got stuck and confused.
 


Yup, frustration is a common feeling when things don't work, but really, no 
need to give up. You can do it, we can help



--
Puneet Kishor
Science and Data Policy at Creative Commons
___
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 useful for ordinary sites or not?

2012-12-05 Thread Saka Royban


Hi Stephen
It's CentOS and i've extracted that file from Enterprise Linux GIS.
I ONLY have cPanel in front myself. How can i run that command?

Sorry but i really don't know.

Thanks

- Original Message -
From: Stephen Woodbridge wood...@swoodbridge.com
To: mapserver-users@lists.osgeo.org
Cc: 
Sent: Wednesday, December 5, 2012 10:01 PM
Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?

It is
 probably failing because of missing dependency.

Try this from the command line:

/path/to/cgi-bin/mapserver -v

This will give a more useful error message you can read.

That said, extracting the binary and copying it to the cgi-bin is not 
going to work in most cases because the whole point of package systems 
like rpm it to find and install the dependencies.

What version of linux is installed on your host?
There is probably a one line command that we can give you to install 
mapserver the correct way.

-Steve W

On 12/5/2012 1:16 PM, Saka Royban wrote:
 Thanks for your answer
 After lots of try, i found that i can extract mapserver binary from rpm
 using 7zip. I put that executable file to cgi-bin and call it via
 address bar but no success, just 500 Internal Server Error. (I know
 mapserver has some dependencies but in spite of that it everything was

 right it should display a nice error)
 Contacting with guys in host provider, they pointed me to
 http://mapserver.org/installation/unix.html#installation and finally
 told me there is no shell access to run this commands.
 I'm familiar with structure of mapserver cause of working with MS4W in
 my own computer. In addition, i've checked CGI-bin directory by running
 some perl script and everything is O.K. They really provide CGI capability.

 Now, i don't know what can i do more. (I'm not familiar with Linux,
 although i know what running a shell command means. I've been around
 computer since DOS age)

 Thanks in advance for helpful advices.
 Regards


 - Original Message -
 From: Mr. Puneet Kishor punk.k...@gmail.com
 To: MapServer OSGEO mapserver-users@lists.osgeo.org
 Cc:
 Sent: Wednesday, December 5, 2012 9:24 PM
 Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?


 On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com
 mailto:sakaroy...@yahoo.com wrote:

   Hi guys
   After a lot of effort to use CGI mapserver in my own site and finally
 leaving hope to find a solution, i came here to ask whether maserver is
 useful just for dedicated servers or VPSs really?
   I
 (and as it sounds, most of users) have just bought some space from
 a host provider (i.e Linux) with a CGI-bin directory which as my host
 provider says is able to run CGI applications written in perl and C/C++.
  
   I have searched a lot but as it appears no one has been successful to
 run CGI mapserver in its CGI-bin folder. Am i right?


 You are not right. MapServer is surprisingly easy to set up and get
 working, at least for basic and mid-complexity use cases.


   CGI mapserver is useful just when shell access is available? Should i
 switch to Mapscript? Or maybe, buy a windows host with CGI capability?


 Unless you figure out what you are doing wrong, you can't set it right.
 Why don't you post your issues here in detail (how you are setting
 things up, have you followed the tutorial, etc.)
 along with the errors
 you are getting (general description as well as specific error messages.
 I am sure one of us will be able to help you.



  
   Your help would nicely be appreciated. I'm really got stuck and confused.
  


 Yup, frustration is a common feeling when things don't work, but really,
 no need to give up. You can do it, we can help



 --
 Puneet Kishor
 Science and Data Policy at Creative Commons
 ___
 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 useful for ordinary sites or not?

2012-12-05 Thread Mr. Puneet Kishor

On Dec 5, 2012, at 10:48 AM, Saka Royban sakaroy...@yahoo.com wrote:

 
 
 Hi Stephen
 It's CentOS and i've extracted that file from Enterprise Linux GIS.
 I ONLY have cPanel in front myself. How can i run that command?


If you don't have shell access, you can ask your web host to install it for 
you. Most decent web hosting providers will do it for you. If they don't, you 
should consider moving to one who will.



 
 Sorry but i really don't know.
 
 Thanks
 
 - Original Message -
 From: Stephen Woodbridge wood...@swoodbridge.com
 To: mapserver-users@lists.osgeo.org
 Cc: 
 Sent: Wednesday, December 5, 2012 10:01 PM
 Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?
 
 It is
 probably failing because of missing dependency.
 
 Try this from the command line:
 
 /path/to/cgi-bin/mapserver -v
 
 This will give a more useful error message you can read.
 
 That said, extracting the binary and copying it to the cgi-bin is not 
 going to work in most cases because the whole point of package systems 
 like rpm it to find and install the dependencies.
 
 What version of linux is installed on your host?
 There is probably a one line command that we can give you to install 
 mapserver the correct way.
 
 -Steve W
 
 On 12/5/2012 1:16 PM, Saka Royban wrote:
 Thanks for your answer
 After lots of try, i found that i can extract mapserver binary from rpm
 using 7zip. I put that executable file to cgi-bin and call it via
 address bar but no success, just 500 Internal Server Error. (I know
 mapserver has some dependencies but in spite of that it everything was
 
 right it should display a nice error)
 Contacting with guys in host provider, they pointed me to
 http://mapserver.org/installation/unix.html#installation and finally
 told me there is no shell access to run this commands.
 I'm familiar with structure of mapserver cause of working with MS4W in
 my own computer. In addition, i've checked CGI-bin directory by running
 some perl script and everything is O.K. They really provide CGI capability.
 
 Now, i don't know what can i do more. (I'm not familiar with Linux,
 although i know what running a shell command means. I've been around
 computer since DOS age)
 
 Thanks in advance for helpful advices.
 Regards
 
 
 - Original Message -
 From: Mr. Puneet Kishor punk.k...@gmail.com
 To: MapServer OSGEO mapserver-users@lists.osgeo.org
 Cc:
 Sent: Wednesday, December 5, 2012 9:24 PM
 Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?
 
 
 On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com
 mailto:sakaroy...@yahoo.com wrote:
 
Hi guys
After a lot of effort to use CGI mapserver in my own site and finally
 leaving hope to find a solution, i came here to ask whether maserver is
 useful just for dedicated servers or VPSs really?
I
 (and as it sounds, most of users) have just bought some space from
 a host provider (i.e Linux) with a CGI-bin directory which as my host
 provider says is able to run CGI applications written in perl and C/C++.
   
I have searched a lot but as it appears no one has been successful to
 run CGI mapserver in its CGI-bin folder. Am i right?
 
 
 You are not right. MapServer is surprisingly easy to set up and get
 working, at least for basic and mid-complexity use cases.
 
 
CGI mapserver is useful just when shell access is available? Should i
 switch to Mapscript? Or maybe, buy a windows host with CGI capability?
 
 
 Unless you figure out what you are doing wrong, you can't set it right.
 Why don't you post your issues here in detail (how you are setting
 things up, have you followed the tutorial, etc.)
 along with the errors
 you are getting (general description as well as specific error messages.
 I am sure one of us will be able to help you.
 
 
 
   
Your help would nicely be appreciated. I'm really got stuck and confused.
   
 
 
 Yup, frustration is a common feeling when things don't work, but really,
 no need to give up. You can do it, we can help
 
 
 
 --
 Puneet Kishor
 Science and Data Policy at Creative Commons

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


Re: [mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Stephen Woodbridge
Try google centos mapserver install cpanel it looks like it has some 
promising leads.


-Steve W

On 12/5/2012 1:48 PM, Saka Royban wrote:


Hi Stephen
It's CentOS and i've extracted that file from Enterprise Linux GIS.
I ONLY have cPanel in front myself. How can i run that command?
Sorry but i really don't know.

Thanks
- Original Message -
From: Stephen Woodbridge wood...@swoodbridge.com
To: mapserver-users@lists.osgeo.org
Cc:
Sent: Wednesday, December 5, 2012 10:01 PM
Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?

It is probably failing because of missing dependency.

Try this from the command line:

/path/to/cgi-bin/mapserver -v

This will give a more useful error message you can read.

That said, extracting the binary and copying it to the cgi-bin is not
going to work in most cases because the whole point of package systems
like rpm it to find and install the dependencies.

What version of linux is installed on your host?
There is probably a one line command that we can give you to install
mapserver the correct way.

-Steve W

On 12/5/2012 1:16 PM, Saka Royban wrote:
  Thanks for your answer
  After lots of try, i found that i can extract mapserver binary from rpm
  using 7zip. I put that executable file to cgi-bin and call it via
  address bar but no success, just 500 Internal Server Error. (I know
  mapserver has some dependencies but in spite of that it everything was
  right it should display a nice error)
  Contacting with guys in host provider, they pointed me to
  http://mapserver.org/installation/unix.html#installation and finally
  told me there is no shell access to run this commands.
  I'm familiar with structure of mapserver cause of working with MS4W in
  my own computer. In addition, i've checked CGI-bin directory by running
  some perl script and everything is O.K. They really provide CGI
capability.
 
  Now, i don't know what can i do more. (I'm not familiar with Linux,
  although i know what running a shell command means. I've been around
  computer since DOS age)
 
  Thanks in advance for helpful advices.
  Regards
 
 
  - Original Message -
  From: Mr. Puneet Kishor punk.k...@gmail.com
mailto:punk.k...@gmail.com
  To: MapServer OSGEO mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
  Cc:
  Sent: Wednesday, December 5, 2012 9:24 PM
  Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or
not?
 
 
  On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com
mailto:sakaroy...@yahoo.com
  mailto:sakaroy...@yahoo.com mailto:sakaroy...@yahoo.com wrote:
 
Hi guys
After a lot of effort to use CGI mapserver in my own site and finally
  leaving hope to find a solution, i came here to ask whether maserver is
  useful just for dedicated servers or VPSs really?
I (and as it sounds, most of users) have just bought some space from
  a host provider (i.e Linux) with a CGI-bin directory which as my host
  provider says is able to run CGI applications written in perl and C/C++.
   
I have searched a lot but as it appears no one has been successful to
  run CGI mapserver in its CGI-bin folder. Am i right?
 
 
  You are not right. MapServer is surprisingly easy to set up and get
  working, at least for basic and mid-complexity use cases.
 
 
CGI mapserver is useful just when shell access is available? Should i
  switch to Mapscript? Or maybe, buy a windows host with CGI capability?
 
 
  Unless you figure out what you are doing wrong, you can't set it right.
  Why don't you post your issues here in detail (how you are setting
  things up, have you followed the tutorial, etc.) along with the errors
  you are getting (general description as well as specific error messages.
  I am sure one of us will be able to help you.
 
 
 
   
Your help would nicely be appreciated. I'm really got stuck and
confused.
   
 
 
  Yup, frustration is a common feeling when things don't work, but really,
  no need to give up. You can do it, we can help
 
 
 
  --
  Puneet Kishor
  Science and Data Policy at Creative Commons
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
mailto: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 mailto:mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 

___
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




Re: [mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Jeff Lake

If you want to use mapserver on a real linux host ...
contact me off list 
All my cPanel hosted accounts have access to:

mapserver,
GDAL
postGIS enabled pgsql database
degrib
wgrib
wgrib2
GrADS
all the above are installed globally on a brand new CentOS 6.3 64bit 
quad core i3


-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com

On 12/5/2012 14:20, Saka Royban wrote:

Thanks
Does windows version of mapserver need installation or copying 
mapserv.exe plus those files is sufficient (for a windows host)?


- Original Message -
From: Mr. Puneet Kishor punk.k...@gmail.com
To: MapServer OSGEO mapserver-users@lists.osgeo.org
Cc:
Sent: Wednesday, December 5, 2012 10:30 PM
Subject: Re: [mapserver-users] Mapserver useful for ordinary sites or not?


On Dec 5, 2012, at 10:48 AM, Saka Royban sakaroy...@yahoo.com 
mailto:sakaroy...@yahoo.com wrote:




 Hi Stephen
 It's CentOS and i've extracted that file from Enterprise Linux GIS.
 I ONLY have cPanel in front myself. How can i run that command?


If you don't have shell access, you can ask your web host to install 
it for you. Most decent web hosting providers will do it for you. If 
they don't, you should consider moving to one who will.





 Sorry but i really don't know.

 Thanks

 - Original Message -
 From: Stephen Woodbridge wood...@swoodbridge.com 
mailto:wood...@swoodbridge.com
 To: mapserver-users@lists.osgeo.org 
mailto:mapserver-users@lists.osgeo.org

 Cc:
 Sent: Wednesday, December 5, 2012 10:01 PM
 Subject: Re: [mapserver-users] Mapserver useful for ordinary sites 
or not?


 It is
 probably failing because of missing dependency.

 Try this from the command line:

 /path/to/cgi-bin/mapserver -v

 This will give a more useful error message you can read.

 That said, extracting the binary and copying it to the cgi-bin is not
 going to work in most cases because the whole point of package systems
 like rpm it to find and install the dependencies.

 What version of linux is installed on your host?
 There is probably a one line command that we can give you to install
 mapserver the correct way.

 -Steve W

 On 12/5/2012 1:16 PM, Saka Royban wrote:
 Thanks for your answer
 After lots of try, i found that i can extract mapserver binary from rpm
 using 7zip. I put that executable file to cgi-bin and call it via
 address bar but no success, just 500 Internal Server Error. (I know
 mapserver has some dependencies but in spite of that it everything was

 right it should display a nice error)
 Contacting with guys in host provider, they pointed me to
 http://mapserver.org/installation/unix.html#installation and finally
 told me there is no shell access to run this commands.
 I'm familiar with structure of mapserver cause of working with MS4W in
 my own computer. In addition, i've checked CGI-bin directory by running
 some perl script and everything is O.K. They really provide CGI 
capability.


 Now, i don't know what can i do more. (I'm not familiar with Linux,
 although i know what running a shell command means. I've been around
 computer since DOS age)

 Thanks in advance for helpful advices.
 Regards


 - Original Message -
 From: Mr. Puneet Kishor punk.k...@gmail.com 
mailto:punk.k...@gmail.com
 To: MapServer OSGEO mapserver-users@lists.osgeo.org 
mailto:mapserver-users@lists.osgeo.org

 Cc:
 Sent: Wednesday, December 5, 2012 9:24 PM
 Subject: Re: [mapserver-users] Mapserver useful for ordinary sites 
or not?



 On Dec 5, 2012, at 9:40 AM, Saka Royban sakaroy...@yahoo.com 
mailto:sakaroy...@yahoo.com

 mailto:sakaroy...@yahoo.com mailto:sakaroy...@yahoo.com wrote:

   Hi guys
   After a lot of effort to use CGI mapserver in my own site and 
finally

 leaving hope to find a solution, i came here to ask whether maserver is
 useful just for dedicated servers or VPSs really?
   I
 (and as it sounds, most of users) have just bought some space from
 a host provider (i.e Linux) with a CGI-bin directory which as my host
 provider says is able to run CGI applications written in perl and 
C/C++.

  
   I have searched a lot but as it appears no one has been 
successful to

 run CGI mapserver in its CGI-bin folder. Am i right?


 You are not right. MapServer is surprisingly easy to set up and get
 working, at least for basic and mid-complexity use cases.


   CGI mapserver is useful just when shell access is available? 
Should i

 switch to Mapscript? Or maybe, buy a windows host with CGI capability?


 Unless you figure out what you are doing wrong, you can't set it right.
 Why don't you post your issues here in detail (how you are setting
 things up, have you followed the tutorial, etc.)
 along with the errors
 you are getting (general description as well as specific error 
messages.

 I am sure one of us will be able to help you.



  
   Your help would nicely be appreciated. I'm really got stuck and 
confused.

  


 Yup, frustration is a common feeling when things don't work, but 
really,

 no need 

Re: [mapserver-users] Mapserver useful for ordinary sites or not?

2012-12-05 Thread Jeff McKenna
As you travel down this path don't be afraid to update the MapServer
wiki with your findings
(https://github.com/mapserver/mapserver/wiki/MapServer-Hosting-Providers).

(you can put howtos, advice, add more providers, remove outdateddo
anything you want on that page)

-jeff



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



On 12-12-05 3:20 PM, Saka Royban wrote:
 Thanks
 Does windows version of mapserver need installation or copying
 mapserv.exe plus those files is sufficient (for a windows host)?
 



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