RE: [mapserver-users] Mapserver + regex license

2012-01-18 Thread Lime, Steve D (DNR)
I'm hoping someone with experience in this area can chime in. It's a convoluted
subject for sure. MapServer doesn't contain code from any regex library, it uses
an API that a few regex libs support so you can actually compile against others.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Josef Bicik
Sent: Monday, January 16, 2012 7:47 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver + regex license

Hi All,

I have a question about Mapserver licensing. From the documentation
and source code I understand that Mapserver uses the regex 0.12
library, which is released under the GNU GPL v2 license. Can Mapserver
actually be released under an MIT-style license when it contains
portions of code released under GPL? I am not extending mapserver on
its own, however, am considering using mapscript in a commercial
application. I wonder if I would have to release my application using
mapscript under GPL v2 license. Can anybody please explain me this
licensing issue?

Best regards, Josef
___
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 + regex license

2012-01-18 Thread Frank Warmerdam

On 12-01-18 07:54 AM, Lime, Steve D (DNR) wrote:

I'm hoping someone with experience in this area can chime in. It's a convoluted
subject for sure. MapServer doesn't contain code from any regex library, it uses
an API that a few regex libs support so you can actually compile against others.

Steve


Steve / Josef,

First, as Steve suggests the issue only arises if you build with
the GPL'ed regex 0.12.  Second, requirements for redistribution of
source in the GPLv2 only apply if you distribute MapServer binaries
to clients or users (as opposed to putting up a service on your
own servers that outsiders use).  Third, the redistribution of
source requirements is normally considered to only apply to code
linked into the executable.  While this is a bit of a grey area,
it would not normally apply to the PHP/Python/Perl scripts using
the mapscript api.

So you are likely in the clear.

Best regards,



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Josef Bicik
Sent: Monday, January 16, 2012 7:47 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver + regex license

Hi All,

I have a question about Mapserver licensing. From the documentation
and source code I understand that Mapserver uses the regex 0.12
library, which is released under the GNU GPL v2 license. Can Mapserver
actually be released under an MIT-style license when it contains
portions of code released under GPL? I am not extending mapserver on
its own, however, am considering using mapscript in a commercial
application. I wonder if I would have to release my application using
mapscript under GPL v2 license. Can anybody please explain me this
licensing issue?



--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush| Geospatial Software Developer

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


Re: [mapserver-users] Mapserver + regex license

2012-01-18 Thread Norman Vine
I don't see any issues

I guess in the docs we could point folks to the PCRE implementation 
as well as the GNU one

http://vcs.pcre.org/viewvc/code/trunk/pcreposix.h?view=markup

PCRE's license is BSD

Norman

On Jan 18, 2012, at 10:54 AM, Lime, Steve D (DNR) wrote:

 I'm hoping someone with experience in this area can chime in. It's a 
 convoluted
 subject for sure. MapServer doesn't contain code from any regex library, it 
 uses
 an API that a few regex libs support so you can actually compile against 
 others.
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Josef Bicik
 Sent: Monday, January 16, 2012 7:47 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Mapserver + regex license
 
 Hi All,
 
 I have a question about Mapserver licensing. From the documentation
 and source code I understand that Mapserver uses the regex 0.12
 library, which is released under the GNU GPL v2 license. Can Mapserver
 actually be released under an MIT-style license when it contains
 portions of code released under GPL? I am not extending mapserver on
 its own, however, am considering using mapscript in a commercial
 application. I wonder if I would have to release my application using
 mapscript under GPL v2 license. Can anybody please explain me this
 licensing issue?
 
 Best regards, Josef
 ___
 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] Resolved: Mapserver install - Mac OS X and safari

2012-01-18 Thread M Badar
Thanks again to everyone who provided input.  The gist of the problem was
related to a conflict between the version of apache I had installed and the
version which is shipped with OS X.  Listed below are the steps I followed
to eliminate the problem:

1. Completely uninstall the apache version shipped with OS X;
2. Ran 'find' to search for http occurrences on the filesystem: find /
-name '*http*' -print;
3. Deleted the following file to stop OS X from starting apache
automatically:

 /System/Library/LaunchDaemons/org.apache.httpd.plist

4. Start apache manually with 'apachectl'

 /usr/local/apache2/bin/apachectl start

5. Access the mapserver URL as follows:

 http://localhost/cgi-bin/mapserv

6. Success - the following was displayed by Safari:

 No query information to decode. QUERY_STRING is set, but empty.

7. Let the fun begin!

Although I'm not sure which of the steps above actually fixed the problem,
I believe it was steps 1 and 3 which were the critical parts of the
solution.

Take care,

Mike Badar

#
# Original post.
#

Thanks, everyone.

With /etc/hosts set to:

127.0.0.1   localhost   localhost

and accessing the URL:

http://localhost.com/cgi-bin/mapserv

I get the error:

# safari can't open the page http://localhost.com/cgi-bin/mapserv; because
the server
# unexpectedly dropped the connection.

and when the URL is accessed this way (leaving /etc/hosts as shown above):

http://localhost/cgi-bin/mapserv

I get the error:

Not Found

The requested URL /cgi-bin/mapserv was not found on this server.

At this point I'm 90% sure the problem lies between safari and apache.
 Maybe it's time for a reference manual on apache.  Does anyone have any
titles they would like to recommend?

Mike

Greetings,

New user to the list. I am installing mapserver
on my MacBook Pro. The installation has progressed without error until I
attempt
to call the 'mapserv' cgi executable from safari; it returns the following
error
after running the final check as described in the documentation:

# Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The
basic install.

# This is the final test to ensure mapserver is installed and functioning
correctly.
# When attempting to access the test URL, safari returns the following
error:

# Test URL: http://localhost.com/cgi-bin/mapserv

# Safari error:

# safari can't open the page http://localhost.com/cgi-bin/mapserv; because
the server
# unexpectedly dropped the connection.

Mapserver version: 6.0.1
Mac OS X version: 10.6.8
Safari version: 5.1.2

My suspicion is the error is related to how mapserver and apache are
communicating; however,
not being apache literate, I don't know where to begin diagnosing the
connection problem. I
ran a syntax check on the httpd.conf file and it returned the following:

Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t
httpd: Could not reliably determine the server's fully qualified domain
name, using
Michael-Badars-MacBook-Pro.local for ServerName
Syntax OK
Michael-Badars-MacBook-Pro:bin bobby$

Listed below are details regarding my installation.

Thanks in advance for any help you can provide.

Mike Badar




#
# Map Server 6.0.1 configure script.
#

# Author: Mike Badar
# Date: 29 December, 2011
# Version: 3

./configure   \
--with-curl-config=/usr/local/bin/curl-config \
--with-gdal=/usr/local/bin/gdal-config\
--with-geos=/usr/local/bin/geos-config\
--with-ogr=/usr/local/bin/gdal-config \
--with-postgis=/usr/local/pgsql/bin/pg_config \
--with-xml2-config=/usr/local/bin/xml2-config \
  \
--with-agg=/usr/local \
--with-freetype=/usr/local\
--with-gd=/usr/local  \
--with-httpd=/usr/local/apache2/bin/httpd \
--with-jpeg=/usr/local\
--with-proj=/usr/local\
--with-tiff=/usr/local\
  \
--with-wfsclient  \
--with-wmsclient  \
--with-threads\
--with-wcs\
  \
--enable-debug

#
# Mapserver version.
#
Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv -v
MapServer version 6.0.1 \

  OUTPUT=GIF \
  OUTPUT=PNG \
  OUTPUT=JPEG \

  SUPPORTS=PROJ \
  SUPPORTS=AGG \
  SUPPORTS=FREETYPE \
  

Re: [mapserver-users] Resolved: Mapserver install - Mac OS X and safari

2012-01-18 Thread Puneet Kishor

On Jan 18, 2012, at 1:13 PM, M Badar wrote:

 Thanks again to everyone who provided input.  The gist of the problem was
 related to a conflict between the version of apache I had installed and the
 version which is shipped with OS X.  Listed below are the steps I followed
 to eliminate the problem:
 
 1. Completely uninstall the apache version shipped with OS X;

You did the single most possibly wrong thing with #1 above. Never, never touch 
the stuff that comes with the system if for no other reason than you just don't 
have to.

 2. Ran 'find' to search for http occurrences on the filesystem: find /
 -name '*http*' -print;
 3. Deleted the following file to stop OS X from starting apache
 automatically:
 
 /System/Library/LaunchDaemons/org.apache.httpd.plist

Good lord. All you had to do was to go to System Preferences.. and turn off 
web sharing. 

If you really wanted to do it the difficult way, you could have done a 
`launchctl unload` (http://ss64.com/osx/launchctl.html)

 
 4. Start apache manually with 'apachectl'
 
 /usr/local/apache2/bin/apachectl start
 
 5. Access the mapserver URL as follows:
 
 http://localhost/cgi-bin/mapserv
 
 6. Success - the following was displayed by Safari:
 
 No query information to decode. QUERY_STRING is set, but empty.
 
 7. Let the fun begin!
 
 Although I'm not sure which of the steps above actually fixed the problem,
 I believe it was steps 1 and 3 which were the critical parts of the
 solution.


I hope it works out for you... good luck.



 
 Take care,
 
 Mike Badar
 
 #
 # Original post.
 #
 
 Thanks, everyone.
 
 With /etc/hosts set to:
 
 127.0.0.1   localhost   localhost
 
 and accessing the URL:
 
 http://localhost.com/cgi-bin/mapserv
 
 I get the error:
 
 # safari can't open the page http://localhost.com/cgi-bin/mapserv; because
 the server
 # unexpectedly dropped the connection.
 
 and when the URL is accessed this way (leaving /etc/hosts as shown above):
 
 http://localhost/cgi-bin/mapserv
 
 I get the error:
 
 Not Found
 
 The requested URL /cgi-bin/mapserv was not found on this server.
 
 At this point I'm 90% sure the problem lies between safari and apache.
 Maybe it's time for a reference manual on apache.  Does anyone have any
 titles they would like to recommend?
 
 Mike
 
 Greetings,
 
 New user to the list. I am installing mapserver
 on my MacBook Pro. The installation has progressed without error until I
 attempt
 to call the 'mapserv' cgi executable from safari; it returns the following
 error
 after running the final check as described in the documentation:
 
 # Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The
 basic install.
 
 # This is the final test to ensure mapserver is installed and functioning
 correctly.
 # When attempting to access the test URL, safari returns the following
 error:
 
 # Test URL: http://localhost.com/cgi-bin/mapserv
 
 # Safari error:
 
 # safari can't open the page http://localhost.com/cgi-bin/mapserv; because
 the server
 # unexpectedly dropped the connection.
 
 Mapserver version: 6.0.1
 Mac OS X version: 10.6.8
 Safari version: 5.1.2
 
 My suspicion is the error is related to how mapserver and apache are
 communicating; however,
 not being apache literate, I don't know where to begin diagnosing the
 connection problem. I
 ran a syntax check on the httpd.conf file and it returned the following:
 
 Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t
 httpd: Could not reliably determine the server's fully qualified domain
 name, using
 Michael-Badars-MacBook-Pro.local for ServerName
 Syntax OK
 Michael-Badars-MacBook-Pro:bin bobby$
 
 Listed below are details regarding my installation.
 
 Thanks in advance for any help you can provide.
 
 Mike Badar
 
 
 
 
 #
 # Map Server 6.0.1 configure script.
 #
 
 # Author: Mike Badar
 # Date: 29 December, 2011
 # Version: 3
 
 ./configure   \
--with-curl-config=/usr/local/bin/curl-config \
--with-gdal=/usr/local/bin/gdal-config\
--with-geos=/usr/local/bin/geos-config\
--with-ogr=/usr/local/bin/gdal-config \
--with-postgis=/usr/local/pgsql/bin/pg_config \
--with-xml2-config=/usr/local/bin/xml2-config \
  \
--with-agg=/usr/local \
--with-freetype=/usr/local\
--with-gd=/usr/local  \
--with-httpd=/usr/local/apache2/bin/httpd \
--with-jpeg=/usr/local\
--with-proj=/usr/local\
--with-tiff=/usr/local\
  \
--with-wfsclient  

[mapserver-users] 16 bit PNG or 16 bit jpeg output

2012-01-18 Thread Ragi Burhum
Hello,

I am trying to output a single band 16bit png (or jpeg) output from a
Mapserver WCS service.

I have tried the following output formats:

OUTPUTFORMAT
NAME jpeg
DRIVER GDAL/JPEG
MIMETYPE image/jpeg
IMAGEMODE INT16
EXTENSION jpg
FORMATOPTION QUALITY=85
 END

OUTPUTFORMAT
NAME GDALPNG
DRIVER GDAL/PNG
MIMETYPE image/png
IMAGEMODE INT16
EXTENSION png
FORMATOPTION FILENAME=result.png
  END

When I try different IMAGEMODEs, I get the correct results, but for some
reason, INT16 does not work. I looked through the mailing list and I
noticed that this question has been asked before:

http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-td6249725.html
http://osgeo-org.1803224.n2.nabble.com/Using-a-16-bit-per-band-PNG-image-td2490088.html

I tried looking for a ticket in Trac, but I had no luck. Am I doing
something wrong? Perhaps I could accomplish this somehow with a custom gdal
driver?

Also, a side question, if I wanted to make sure the replies from my WCS
getcoverage calls were not multipart (I am just interested in the binary
output), is there some mapserver-specific setting I can use to just get
that image as a reply instead of the accompanying xml files?

Thanks!

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