Re: [mapserver-users] Apache installation for ms4w

2011-01-21 Thread Jeff McKenna

Hello David,

First, all questions related to MS4W should be sent to the MS4W-users 
mailing list, where hundreds of users and devs can assist you with your 
issues (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users).


As you mentioned, MS4W is designed for new installations and contains a 
ready to use Web server and everything you need to move forward.  If you 
need to use MS4W in an existing environment, there are some options:


 - follow the existing notes to install in other environments in your 
local README file 
(http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-installing-the-ms4w-mapserver-binaries-in-other-environments)
 - search the MS4W mailing list for other users asking this same 
question and the responses (search at: 
http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html)

 - contact me directly for assistance

Hope that helps.

-jeff


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




On 11-01-20 7:51 PM, David Hildebrand wrote:

The installation package for ms4w contains a preconfigured version of
Apache. This works well for a new installation. In the case of an
existing Apache installation what are the requirements which need to be
met for ms4w? Are there potential conflicts to be aware of?



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


Re: [mapserver-users] Raster input file delete access prohibited by MapScript

2011-01-21 Thread Frank Warmerdam

On 11-01-20 10:13 AM, Anzel, Phil - Fort Collins, CO wrote:

All,

I have an application that uses the MapScript API under C# to create map
images. Without exiting the application, I need to delete the input raster
(JPEG) files that have been used in the image creation. Deletion of the
input files is not possible until the application terminates.

...

Can you help? I'm guessing that the input JPG file is opened for reading by
MapServer and is never explicitly closed, even when the layer is closed. Is
there a method defined in the API that will force the closure, if that is
even the situation?


Phil,

In recent versions MapServer aggressively keeps single raster files used for
raster layers open even after the map is destroyed in order accelerate the
next access to it.  This can be controlled/disabled by adding the following
line in your raster layer:

  PROCESSING CLOSE_CONNECTION=NORMAL

The default setting is DEFER for raster files.

Best regards,
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapserver-users] RE: mapserver-users Digest, Vol 36, Issue 32

2011-01-21 Thread Anzel, Phil - Fort Collins, CO
Excellent! Thanks, Frank.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
mapserver-users-requ...@lists.osgeo.org
Sent: Friday, January 21, 2011 10:00 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 36, Issue 32

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. Re: Apache installation for ms4w (Jeff McKenna)
   2. Re: Raster input file delete access prohibited by MapScript
  (Frank Warmerdam)


--

Message: 1
Date: Fri, 21 Jan 2011 09:47:42 -0400
From: Jeff McKenna jmcke...@gatewaygeomatics.com
Subject: Re: [mapserver-users] Apache installation for ms4w
To: mapserver-users mapserver-users@lists.osgeo.org
Message-ID: 4d398e7e.4010...@gatewaygeomatics.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello David,

First, all questions related to MS4W should be sent to the MS4W-users 
mailing list, where hundreds of users and devs can assist you with your 
issues (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users).

As you mentioned, MS4W is designed for new installations and contains a 
ready to use Web server and everything you need to move forward.  If you 
need to use MS4W in an existing environment, there are some options:

  - follow the existing notes to install in other environments in your 
local README file 
(http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-installing-the-ms4w-mapserver-binaries-in-other-environments)
  - search the MS4W mailing list for other users asking this same 
question and the responses (search at: 
http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html)
  - contact me directly for assistance

Hope that helps.

-jeff


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




On 11-01-20 7:51 PM, David Hildebrand wrote:
 The installation package for ms4w contains a preconfigured version of
 Apache. This works well for a new installation. In the case of an
 existing Apache installation what are the requirements which need to be
 met for ms4w? Are there potential conflicts to be aware of?




--

Message: 2
Date: Fri, 21 Jan 2011 09:59:28 -0500
From: Frank Warmerdam warmer...@pobox.com
Subject: Re: [mapserver-users] Raster input file delete access
prohibited by   MapScript
To: mapserver-users@lists.osgeo.org
Message-ID: 4d399f50.3050...@pobox.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 11-01-20 10:13 AM, Anzel, Phil - Fort Collins, CO wrote:
 All,

 I have an application that uses the MapScript API under C# to create map
 images. Without exiting the application, I need to delete the input raster
 (JPEG) files that have been used in the image creation. Deletion of the
 input files is not possible until the application terminates.
...
 Can you help? I'm guessing that the input JPG file is opened for reading by
 MapServer and is never explicitly closed, even when the layer is closed. Is
 there a method defined in the API that will force the closure, if that is
 even the situation?

Phil,

In recent versions MapServer aggressively keeps single raster files used for
raster layers open even after the map is destroyed in order accelerate the
next access to it.  This can be controlled/disabled by adding the following
line in your raster layer:

   PROCESSING CLOSE_CONNECTION=NORMAL

The default setting is DEFER for raster files.

Best regards,
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent



--

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


End of mapserver-users Digest, Vol 36, Issue 32
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Apache installation for ms4w

2011-01-21 Thread David Hildebrand
Thanks, Jeff.  I didn't realize there was a separate mailing list for
MS4W.

===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca http://www.afsc.ca
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff
McKenna
Sent: Friday, January 21, 2011 6:48 AM
To: mapserver-users
Subject: Re: [mapserver-users] Apache installation for ms4w

Hello David,

First, all questions related to MS4W should be sent to the MS4W-users 
mailing list, where hundreds of users and devs can assist you with your 
issues (subscribe at
http://lists.maptools.org/mailman/listinfo/ms4w-users).

As you mentioned, MS4W is designed for new installations and contains a 
ready to use Web server and everything you need to move forward.  If you

need to use MS4W in an existing environment, there are some options:

  - follow the existing notes to install in other environments in your 
local README file 
(http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-ins
talling-the-ms4w-mapserver-binaries-in-other-environments)
  - search the MS4W mailing list for other users asking this same 
question and the responses (search at: 
http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html)
  - contact me directly for assistance

Hope that helps.

-jeff


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




On 11-01-20 7:51 PM, David Hildebrand wrote:
 The installation package for ms4w contains a preconfigured version of
 Apache. This works well for a new installation. In the case of an
 existing Apache installation what are the requirements which need to
be
 met for ms4w? Are there potential conflicts to be aware of?


___
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] capability to reproject to 2 different projections within the map object of the map file

2011-01-21 Thread John Mitchell
If I want all the layers within a map file no matter the layers own
projection to have the capability to reproject to 2 different projections
would I within the map object of the map file replace:
 PROJECTION
  init=epsg:4326
 END

With:
 PROJECTION
  init=epsg:4326
  init=epsg:102113
  END

Thanks,

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


RE: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file

2011-01-21 Thread Fawcett, David (MPCA)
I believe that in CGI mode, you can only have one output projection, so your 
approach won't work.

You can support multiple SRS/projection in WMS mode.  To do this, you put 
multiple SRS codes in the wms_srs metadata for a layer.

You might be able to change the map projection on the fly by changing the 
parameters via the URL, I assume that you would also need to change the extent 
values to match the projection. (I can't verify that map.projection is 
something that you can change via URL).

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of John Mitchell
Sent: Friday, January 21, 2011 3:13 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] capability to reproject to 2 different projections 
within the map object of the map file

If I want all the layers within a map file no matter the layers own projection 
to have the capability to reproject to 2 different projections would I within 
the map object of the map file replace:
 PROJECTION
  init=epsg:4326
 END

With:
 PROJECTION
  init=epsg:4326
  init=epsg:102113
  END

Thanks,

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


[mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers

2011-01-21 Thread Eric Jarvies
Hello,I am attempting to connect to a remote MapServer(http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map) and retrieve the respective WMS layers. However, I am unable to do so for some reason.http://loscabosproperties.mx/geoserver/wms.pngI get the result in XML format, and the map is not displayed.The remote MapServer server is located at:http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.mapIn my PHP/OpenLayers doc/code, i have this:   var wmsUrl2 = "http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi";   var wms2 = new OpenLayers.Layer.WMS("WMS2", wmsUrl2, { map: '/home/juribe/webcatastro/catastro.map', //layers: 'p', //map_imagetype: 'jpg' SERVICE: 'WMS', VERSION: '1.1.1', REQUEST: 'GetCapabilities' }, {singleTile: true, isBaseLayer: false});   map.addLayer(wms2);Any help would be appreciated. Thanks!


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