[mapserver-users] Tool for configure mapfile

2010-11-03 Thread Julian Wiersbitzki
Hi!

Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? 
Our mapfile gets bigger and bigger and it's getting very unhandlich. ;-) 
Perhaps there is already a faq for this?

TIA, Julian

__

Hamburger Berater Team GmbH   Handelsregister: HRB 31629
Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
20355 Hamburg Geschäftsführer:
Fon:  040/369779-43   Ilse Habermann
Fax:  040/369779-99   Hans-Joachim Habermann
Mail: mailto:j...@hbt.de  Daniel Hoffmann
__

Internet:   http://www.hbt.de
http://www.geofox.dehttp://www.geonetwatch.de
__

DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
__

Diese Email einschließlich eventuell angehängter Dateien 
enthält vertrauliche Informationen und ist ausschließlich 
für den bezeichneten Adressaten bestimmt. Wenn Sie nicht 
der richtige Adressat oder dessen Vertreter sind, verständigen 
Sie bitte sofort den Absender und löschen Sie dann diese Email 
und eventuell angehängte Dateien. Vielen Dank!
Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder 
Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
__

This e-mail is intended only for the above addressee. 
It may contain privileged information. If you are not the 
addressee you must not copy, distribute, disclose or use any 
of the information in it. If you have received it in error 
please delete it and immediately notify the sender. 
__
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Tool for configure mapfile

2010-11-03 Thread Frode Wiseth Jørgensen
I use Textpad for editing mapfiles. It has some syntax highlighting.

INCLUDE's could be used to avoid very big files but debugging could be a bit
harder.

Frode

3. nov.. 2010 08.26 Julian Wiersbitzki j...@hbt.de:

Hi!

Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile?
Our mapfile gets bigger and bigger and it's getting very unhandlich. ;-)
Perhaps there is already a faq for this?

TIA, Julian

__

Hamburger Berater Team GmbH   Handelsregister: HRB 31629
Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
20355 Hamburg Geschäftsführer:
Fon:  040/369779-43   Ilse Habermann
Fax:  040/369779-99   Hans-Joachim Habermann
Mail: mailto:j...@hbt.de  Daniel Hoffmann
__

Internet:   http://www.hbt.de
http://www.geofox.dehttp://www.geonetwatch.de
__

DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
__

Diese Email einschließlich eventuell angehängter Dateien
enthält vertrauliche Informationen und ist ausschließlich
für den bezeichneten Adressaten bestimmt. Wenn Sie nicht
der richtige Adressat oder dessen Vertreter sind, verständigen
Sie bitte sofort den Absender und löschen Sie dann diese Email
und eventuell angehängte Dateien. Vielen Dank!
Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder
Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
__

This e-mail is intended only for the above addressee.
It may contain privileged information. If you are not the
addressee you must not copy, distribute, disclose or use any
of the information in it. If you have received it in error
please delete it and immediately notify the sender.
__
___
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] conf of MapServ+Apache.Lighttpd for better usability

2010-11-03 Thread Wim Vanbelle
This would be a good thing. That way, if you would zoom in to a location
very quickly, you would also not have to wait for mapserver to render the
outer zooms first (where  you clicked through quite fast), but you would get
your data first and the data you don't need anymore later.

But i suppose this is not easy to realize.

On 2 November 2010 18:40, Sebastian E. Ovide sebastian.ov...@gmail.comwrote:

 Hi Guys,

 I am using MapServer as a FastCgi (with lighttpd and Apache) connected to
 Oracle, PG, ESRI shapes, ESRI binary grids and MapInfo TAB files.

 There is a situation that makes the use of MapServer not very user
 friendly:

 An user A opens a map, activates a slow layer and drags the map around.
 This would add a lot of calls to the webserver that would launch many
 MapServer processes reaching the maximum number of processes. At the same
 time, there is another user B displaying another layer... this time a fast
 layer As the maximum number of processes has been reached, the webserver
 cannot create new processes until those alive finish their work, it cannot
 serve the other user... that is very annoying as The other user would have
 to wait a long time until the queue is processed and his map is displayed.

 Another similar situation is when the user A get annoyed as the map is not
 displaying and therefore decides to turn off the layer and turn on a
 different layer... say a fast layer... he still need to wait that all the
 MapServer processes finish the processing... That annoys the users that
 doesn't understand what is going on... and thinks that the server has
 crashed...

 Is there anyway to configure Apache/Lighttpd to give higher priority to the
 new calls ? (that means to conver the queue from FIFO to LIFO)

 I have configured Apache FastCgi to kill the old processes once a minute...
 but the process wont die... actually they would not die with a simple
 kill... they would die with only kill -9 !!!

 Any other solutions ?

 Thanks
 --
 Sebastian E. Ovide





 ___
 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] Tool for configure mapfile

2010-11-03 Thread Bob Basques

All,

One of the design features of GeoMoose was to allow for abstracting out each layer to it's own MapFile.  Each layer has 
it's own Mapfile.  This was done primarily to allow owners of data to stylize their respective datasets on their own 
with out affecting each other work.  A side benefit has been that the MapFiles are all separate.


Also, in separating the mapfiles out, it has allowed for some fairly large single layer mapfiles with some fairly 
comprehensive cartography (Long mapfiles of their own)


It's something to thing about anyway.

bobb



On 11/3/2010 2:26 AM, Julian Wiersbitzki wrote:

Hi!

Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile 
gets bigger and bigger and it's getting very unhandlich. ;-) Perhaps there is 
already a faq for this?

TIA, Julian

__

Hamburger Berater Team GmbH   Handelsregister: HRB 31629
Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
20355 Hamburg Geschäftsführer:
Fon:  040/369779-43   Ilse Habermann
Fax:  040/369779-99   Hans-Joachim Habermann
Mail: mailto:j...@hbt.de  Daniel Hoffmann
__

Internet:   http://www.hbt.de
http://www.geofox.dehttp://www.geonetwatch.de
__

DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
__

Diese Email einschließlich eventuell angehängter Dateien
enthält vertrauliche Informationen und ist ausschließlich
für den bezeichneten Adressaten bestimmt. Wenn Sie nicht
der richtige Adressat oder dessen Vertreter sind, verständigen
Sie bitte sofort den Absender und löschen Sie dann diese Email
und eventuell angehängte Dateien. Vielen Dank!
Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder
Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
__

This e-mail is intended only for the above addressee.
It may contain privileged information. If you are not the
addressee you must not copy, distribute, disclose or use any
of the information in it. If you have received it in error
please delete it and immediately notify the sender.
__
___
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] Amazon EC2 vs. Collocation/Dedicated servers

2010-11-03 Thread Adam Eskreis
Hey All,

I just wanted to get an idea of what the general consessus is about what the
best platform for running mapserver in a live environment for many users (in
the tens of thousands).  My company is trying to decide the best way to
spend money on servers is for our mapserver application.  We have just 2
layers in our map, but one of them is heavily data intensive and is too
dynamic to be cached (to put it simply, it is a dynamic layer that uses a
different png symbols for each feature), the other is a cached baselayer.
The biggest concern is, what type of environment will allow us to quickly
serve up not only cached tiles, but dynamic tiles as well, while still being
able to handle tens of thousands of users.  The two choices we are deciding
between are Amazon EC2, or purchased servers in a collocation facility.  I
have put together a list of pros and cons of each, but I still wanted to get
the opinion of the mapserver pros out there.  So, if anyone has any
thoughts, please write back.

Thanks,
-Adam

P.S. We are also looking for a developer who knows the mapserver code like
the back of their hand who may be able to modify mapserver to be optimized
for our project.  Any mapserver developer that is interested in a part-time
contracted position, please reply to aeskr...@gmail.com with your resume as
well as your hourly rate.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Tool for configure mapfile

2010-11-03 Thread Fawcett, David (MPCA)
One approach is to create files for each layer or chunk of code and then use 
includes to pull them into a master map file.  

http://mapserver.org/mapfile/Include.html

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Julian Wiersbitzki
Sent: Wednesday, November 03, 2010 2:26 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Tool for configure mapfile

Hi!

Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? 
Our mapfile gets bigger and bigger and it's getting very unhandlich. ;-) 
Perhaps there is already a faq for this?

TIA, Julian

__

Hamburger Berater Team GmbH   Handelsregister: HRB 31629
Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
20355 Hamburg Geschäftsführer:
Fon:  040/369779-43   Ilse Habermann
Fax:  040/369779-99   Hans-Joachim Habermann
Mail: mailto:j...@hbt.de  Daniel Hoffmann
__

Internet:   http://www.hbt.de
http://www.geofox.dehttp://www.geonetwatch.de
__

DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
__

Diese Email einschließlich eventuell angehängter Dateien 
enthält vertrauliche Informationen und ist ausschließlich 
für den bezeichneten Adressaten bestimmt. Wenn Sie nicht 
der richtige Adressat oder dessen Vertreter sind, verständigen 
Sie bitte sofort den Absender und löschen Sie dann diese Email 
und eventuell angehängte Dateien. Vielen Dank!
Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder 
Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
__

This e-mail is intended only for the above addressee. 
It may contain privileged information. If you are not the 
addressee you must not copy, distribute, disclose or use any 
of the information in it. If you have received it in error 
please delete it and immediately notify the sender. 
__
___
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] Filter elements on multiple layers

2010-11-03 Thread leene
Hey,
I have a problem with filtering elements of multiple layers.
My mapserver (version 5.2.1) is configured with two layers - layer1 and layer2. 
For better understanding see attachment: layer1 has black crosses and layer2 
has 
red points. Now I try to get features by id - but I don't know the 
corresponding 
layer. Therefore I send the following request:

http://my-server/fcgi-bin/mapserv?map=mymap.mapservice=WFSversion=1.1.0request=GetFeaturetypename=layer1,layer2filter=

FilterOR
PropertyIsEqualToPropertyNameID/PropertyNameLiteralidAofLayer1/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNameID/PropertyNameLiteralidBofLayer1/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNameID/PropertyNameLiteralidCofLayer2/Literal/PropertyIsEqualTo

/OR/Filter

In the response are some features missing but they exist in the shapefile. I 
found out following rules: 

1. All features of layer2 (red points in attachment) are returned correctly.
2. Features of layer1 (black crosses) which are inside the blue frame are also 
returned correctly.
3. Features of layer1 which are outside the blue frame (bounds of layer2) are 
missing - if I filter the missing elements only on layer1 I get the features.

Is this a bug or where is my mistake?

Regards,
Cathleen

By the way: Is there a date of mapserver 6 release? 
http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to 
date.


attachment: example.JPG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Filter elements on multiple layers

2010-11-03 Thread Daniel Morissette
leene wrote:
 
 By the way: Is there a date of mapserver 6 release?
 http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up
 to date.
 


At the FOSS4G Code Sprint in September [1] we talked about aiming for a
feature freeze around Nov 15th and a final release around end of
January. However, some development is still taking place at the moment
so these dates are likely going to slip a bit.

[1]
http://lists.osgeo.org/pipermail/mapserver-dev/2010-September/010236.html

-- 
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Filter elements on multiple layers

2010-11-03 Thread Alexander Petkov
Hmm, I just tested this--it seems that you'd always get features where
the envelopes for the results from each layer spatially intersect,
(i.e. anything within the blue rectangle of your image).

 Alex

On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov green...@gmail.com wrote:
 You might have to specify your filter for each typename, as in:
 http://my-server/fcgi-bin/mapservmap=mymap.mapservice=WFSversion=1.1.0request=GetFeaturetypename=layer1,layer2FILTER=(Filter.../Filter)(Filter.../Filter)


 See this thread:
 http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10695.html


 Alex

 On Wed, Nov 3, 2010 at 8:44 AM, leene leene...@yahoo.de wrote:
 Hey,
 I have a problem with filtering elements of multiple layers.
 My mapserver (version 5.2.1) is configured with two layers - layer1 and
 layer2. For better understanding see attachment: layer1 has black crosses
 and layer2 has red points. Now I try to get features by id - but I don't
 know the corresponding layer. Therefore I send the following request:

 http://my-server/fcgi-bin/mapserv?map=mymap.mapservice=WFSversion=1.1.0request=GetFeaturetypename=layer1,layer2filter=
 FilterOR
 PropertyIsEqualToPropertyNameID/PropertyNameLiteralidAofLayer1/Literal/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameID/PropertyNameLiteralidBofLayer1/Literal/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameID/PropertyNameLiteralidCofLayer2/Literal/PropertyIsEqualTo
 /OR/Filter

 In the response are some features missing but they exist in the shapefile. I
 found out following rules:
 1. All features of layer2 (red points in attachment) are returned correctly.
 2. Features of layer1 (black crosses) which are inside the blue frame are
 also returned correctly.
 3. Features of layer1 which are outside the blue frame (bounds of layer2)
 are missing - if I filter the missing elements only on layer1 I get the
 features.

 Is this a bug or where is my mistake?

 Regards,
 Cathleen

 By the way: Is there a date of mapserver 6 release?
 http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to
 date.


 ___
 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] map file paths

2010-11-03 Thread David Hildebrand
Is there a way of abbreviating pathnames to the map file?  For instance,
my URL to produce a map is

 

http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DH
ildebrand/geoprocessing_server/MapServer/sample.mapmode=map

 

In my apache configuration file I have
//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased
to /test/ but the alias does not seem to work with CGI.  I'm just
wondering if there is a workaround so that I don't need to specify the
whole file path in my URL.

 

Thanks.

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

www.afsc.ca about:www.afsc.ca  http://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.

 

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


Re: [mapserver-users] map file paths

2010-11-03 Thread Rahkonen Jukka
Hi,

See http://mapserver.org/ogc/wms_server.html#reference-section and there about 
wrapper shell script.

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ke 3.11.2010 22:42
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] map file paths
 
Is there a way of abbreviating pathnames to the map file?  For instance,
my URL to produce a map is

 

http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DH
ildebrand/geoprocessing_server/MapServer/sample.mapmode=map

 

In my apache configuration file I have
//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased
to /test/ but the alias does not seem to work with CGI.  I'm just
wondering if there is a workaround so that I don't need to specify the
whole file path in my URL.

 

Thanks.

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

www.afsc.ca about:www.afsc.ca  http://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.

 


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


[mapserver-users] DEM display

2010-11-03 Thread David Hildebrand
I have an SRTM file in TIF format which I want to display in a shaded
relief but I'm not sure of the approach I should take.  Do I need to
define classes and symbols for the layer (that would not help for the
hillshade) or should I execute a script (PERL) on the server to create
the image I need on the fly?

 

Thanks for the tips.

 

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

www.afsc.ca about:www.afsc.ca  http://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.

 

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


Re: [mapserver-users] map file paths

2010-11-03 Thread Richard Greenwood
On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand
david.hildebr...@afsc.ca wrote:
 Is there a way of abbreviating pathnames to the map file?  For instance, my
 URL to produce a map is



 http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.mapmode=map



 In my apache configuration file I have
 //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to
 /test/ but the alias does not seem to work with CGI.  I’m just wondering if
 there is a workaround so that I don’t need to specify the whole file path in
 my URL.



 Thanks.

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

In your Apache httpd.conf add:
   SetEnv MY_MAP  C:/path/to/my/mapfile.map

and then your URL can be:
   http://localhost/cgi-bin/mapserv.exe?map=MYMAPmode=map

Shorter URL, better security.

Rich

-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] map file paths

2010-11-03 Thread John Callahan
Basically what I do is copy and rename mapserv.exe to some name I want in
the URL.  Then, if a request goes to that file, set the MS_MAPFILE variable
to the relevant map file.  This has worked well for me so far.

For example, my organization recently published our 15th geologic map of out
state.  I want people to refer to it as geomap15.  Therefore, I copied and
renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin
directory).  Then, I have the following in my httpd.conf file:

SetEnvIf Request_URI /cgi-bin/geomap15
MS_MAPFILE=C:/pathtomapfile/geomap15.map

My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15?

(This map file in action here:
http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset
)

- John

**
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**


On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood 
richard.greenw...@gmail.com wrote:

 On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand
 david.hildebr...@afsc.ca wrote:
  Is there a way of abbreviating pathnames to the map file?  For instance,
 my
  URL to produce a map is
 
 
 
 
 http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.mapmode=map
 
 
 
  In my apache configuration file I have
  //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to
  /test/ but the alias does not seem to work with CGI.  I’m just wondering
 if
  there is a workaround so that I don’t need to specify the whole file path
 in
  my URL.
 
 
 
  Thanks.
 
  ===
  David V. Hildebrand
  Agriculture Financial Services Corporation
  (403) 782-8239

 In your Apache httpd.conf add:
   SetEnv MY_MAP  C:/path/to/my/mapfile.map

 and then your URL can be:
   http://localhost/cgi-bin/mapserv.exe?map=MYMAPmode=map

 Shorter URL, better security.

 Rich

 --
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.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] map file paths

2010-11-03 Thread P Kishor
On Wed, Nov 3, 2010 at 8:20 PM, John Callahan john.calla...@udel.edu wrote:
 Basically what I do is copy and rename mapserv.exe to some name I want in
 the URL.  Then, if a request goes to that file, set the MS_MAPFILE variable
 to the relevant map file.  This has worked well for me so far.

 For example, my organization recently published our 15th geologic map of out
 state.  I want people to refer to it as geomap15.  Therefore, I copied and
 renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin
 directory).

So you have 15 copies of the binary floating around on your computer.
What a nightmare. If you upgrade, you have to make 15 copies of the
new version and replace the old version.

What would happen when you publish the 150th geologic map?

Use a single binary, and use a wrapper (or the env variable) to get
the right query.



 Then, I have the following in my httpd.conf file:

 SetEnvIf Request_URI /cgi-bin/geomap15
 MS_MAPFILE=C:/pathtomapfile/geomap15.map

 My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15?

 (This map file in action here:
 http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset)

 - John

 **
 John Callahan, Research Scientist
 Delaware Geological Survey, University of Delaware
 URL: http://www.dgs.udel.edu
 **


 On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood
 richard.greenw...@gmail.com wrote:

 On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand
 david.hildebr...@afsc.ca wrote:
  Is there a way of abbreviating pathnames to the map file?  For instance,
  my
  URL to produce a map is
 
 
 
 
  http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.mapmode=map
 
 
 
  In my apache configuration file I have
  //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased
  to
  /test/ but the alias does not seem to work with CGI.  I’m just wondering
  if
  there is a workaround so that I don’t need to specify the whole file
  path in
  my URL.
 
 
 
  Thanks.
 
  ===
  David V. Hildebrand
  Agriculture Financial Services Corporation
  (403) 782-8239

 In your Apache httpd.conf add:
   SetEnv MY_MAP  C:/path/to/my/mapfile.map

 and then your URL can be:
   http://localhost/cgi-bin/mapserv.exe?map=MYMAPmode=map

 Shorter URL, better security.

 Rich

 --
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.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





-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
---
Assertions are politics; backing up assertions with evidence is science
===
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Tool for configure mapfile

2010-11-03 Thread Edmar Moretti
The software i3geo (http://softwarepublico.gov.br) contains an editor of 
mapfiles with forms for editing the layers and their characteristics. 
The system can be seen at 
http://mapas.mma.gov.br/i3geo44/admin/html/editormapfile.html


_

Edmar Moretti
http://www.meadiciona.com/edmarmoretti

Poliedro Informática, Consultoria e Serviços
http://www.poliedro.com.br/

Chat Skype: edmar.moretti MSN: edmar.moretti
Blogger http://edmarmoretti.blogspot.com/Facebook 
http://www.facebook.com/photos.php?id=10073040274Picasa 
http://picasaweb.google.com.br/edmar.morettiTwitter 
http://twitter.com/edmarmoretti


--- @ WiseStamp Signature 
http://my.wisestamp.com/link?u=ww6q7n3tsfwrcqztsite=www.wisestamp.com/email-install. 
Get it now 
http://my.wisestamp.com/link?u=ww6q7n3tsfwrcqztsite=www.wisestamp.com/email-install



Bob Basques escreveu:

All,

One of the design features of GeoMoose was to allow for abstracting 
out each layer to it's own MapFile.  Each layer has it's own Mapfile.  
This was done primarily to allow owners of data to stylize their 
respective datasets on their own with out affecting each other work.  
A side benefit has been that the MapFiles are all separate.


Also, in separating the mapfiles out, it has allowed for some fairly 
large single layer mapfiles with some fairly comprehensive cartography 
(Long mapfiles of their own)


It's something to thing about anyway.

bobb



On 11/3/2010 2:26 AM, Julian Wiersbitzki wrote:

Hi!

Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a 
mapfile? Our mapfile gets bigger and bigger and it's getting very 
unhandlich. ;-) Perhaps there is already a faq for this?


TIA, Julian

__

Hamburger Berater Team GmbH   Handelsregister: HRB 31629
Stadthausbrücke 3 (Fleethof)  Amtsgericht Hamburg
20355 Hamburg Geschäftsführer:
Fon:  040/369779-43   Ilse Habermann
Fax:  040/369779-99   Hans-Joachim Habermann
Mail: mailto:j...@hbt.de  Daniel Hoffmann
__

Internet:   http://www.hbt.de
http://www.geofox.dehttp://www.geonetwatch.de
__

DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM
Diese Email wurde mit ständig aktualisierten Virenscannern geprüft
__

Diese Email einschließlich eventuell angehängter Dateien
enthält vertrauliche Informationen und ist ausschließlich
für den bezeichneten Adressaten bestimmt. Wenn Sie nicht
der richtige Adressat oder dessen Vertreter sind, verständigen
Sie bitte sofort den Absender und löschen Sie dann diese Email
und eventuell angehängte Dateien. Vielen Dank!
Beachten Sie: Jede Form der Nutzung, Vervielfältigung oder
Weitergabe des Inhalts fehlgeleiteter Emails ist unzulässig.
__

This e-mail is intended only for the above addressee.
It may contain privileged information. If you are not the
addressee you must not copy, distribute, disclose or use any
of the information in it. If you have received it in error
please delete it and immediately notify the sender.
__
___
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] map file paths

2010-11-03 Thread Richard Greenwood
John, Puneet,

Being able to leave the .exe extension off in Windows is new to me and
medium cool. Based on some rather foggy recollection, I think that it
is limited to Apache. I don't think it works under IIS. But it's handy
if you're developing on Windows and serving on *NIX.

I'm kind of with Puneet in that I don't think multiple copies of
binaries is generally good advise. However, under Windows (Apache or
IIS) there is far less flexibility in wrapper scripts[1] than under
*NIX, so I can see the appeal.

Regards,
Rich

[1] The most common wrapper under Windows in an ASP script, which not
only restricts you to IIS, but ASP has been superseded by ASPX, and I
haven't seen an ASPX wrapper yet. You can install Perl (I know Puneet
doesn't think a computer is worth booting if it doesn't have Perl) but
that's just one more dependency for most Windows users. And it seems
like there should be an option to wrap a CGI in PHP, but I have yet to
find it.




On Wed, Nov 3, 2010 at 7:20 PM, John Callahan john.calla...@udel.edu wrote:
 Basically what I do is copy and rename mapserv.exe to some name I want in
 the URL.  Then, if a request goes to that file, set the MS_MAPFILE variable
 to the relevant map file.  This has worked well for me so far.

 For example, my organization recently published our 15th geologic map of out
 state.  I want people to refer to it as geomap15.  Therefore, I copied and
 renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin
 directory).  Then, I have the following in my httpd.conf file:

 SetEnvIf Request_URI /cgi-bin/geomap15
 MS_MAPFILE=C:/pathtomapfile/geomap15.map

 My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15?

 (This map file in action here:
 http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset)

 - John

 **
 John Callahan, Research Scientist
 Delaware Geological Survey, University of Delaware
 URL: http://www.dgs.udel.edu
 **


 On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood
 richard.greenw...@gmail.com wrote:

 On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand
 david.hildebr...@afsc.ca wrote:
  Is there a way of abbreviating pathnames to the map file?  For instance,
  my
  URL to produce a map is
 
 
 
 
  http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.mapmode=map
 
 
 
  In my apache configuration file I have
  //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased
  to
  /test/ but the alias does not seem to work with CGI.  I’m just wondering
  if
  there is a workaround so that I don’t need to specify the whole file
  path in
  my URL.
 
 
 
  Thanks.
 
  ===
  David V. Hildebrand
  Agriculture Financial Services Corporation
  (403) 782-8239

 In your Apache httpd.conf add:
   SetEnv MY_MAP  C:/path/to/my/mapfile.map

 and then your URL can be:
   http://localhost/cgi-bin/mapserv.exe?map=MYMAPmode=map

 Shorter URL, better security.

 Rich

 --
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.com
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users