Re: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS

2009-04-08 Thread Heiko Schröter
On Dienstag, 7. April 2009 15:52:10 you wrote:

Hi Steve,

thanks for the clues. I'am probably to dumb for this.
Firefox replaces the quot; with  and mapserv5.4 complains. I've tried brute 
force backslashes than but that doesn't work either (of course).
I've tried than with a little webpage in case that it is a coding (ISO or UTF) 
problem. But this fails as well. Do you have a working example of what exactly 
one has to use within the URL?
Sorry to bother you again with this.
(Since we are using Satellite global mapping, we need to change content and 
projection on the fly...)

The Webpage:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=content-type content=text/html; charset=ISO-8859-1
titleMapserver 5.4 Test/title
/head
body
a href=http://localhost/cgi-
bin/mapserv?MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map
LAYERS=karte,grid,pscSERVICE=WMSVERSION=1.1.1REQUEST=GetMap
STYLES=FORMAT=image/pngSRS=epsg:4326BBOX=-180,-90,180,90
WIDTH=600HEIGHT=300
map.layer[psc]=FILTER+quot;orbitnreq;3456quot;
link /a
/body
/html

And this is what Firefox does:
http://localhost/cgi-bin/mapserv?
MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map
LAYERS=karte,grid,pscSERVICE=WMSVERSION=1.1.1REQUEST=GetMap
STYLES=FORMAT=image/pngSRS=epsg:4326BBOX=-180,-90,180,90
WIDTH=600HEIGHT=300
map.layer[psc]=FILTER+%22orbitnreq;3456%22
(The %22 will be shown as  in the Firefox URL line)

Results in:
getSymbol(): Symbol definition error. Parsing error near ():(line 1) 

It doesn't matter if you escape the = sign or use single qoutes within the 
Filter string.

I'am testing now the OpenLayer approach and will report later.

Thanks for your effort.
Regards
Heiko

 Hi Heiko: Two things:

 1) There's an error in your URL. The syntax should be something like:

   map.layer[psc]=FILTER+'orbitnr=6758'

 but you'd need to escape the ' and = characters in the URL.

 2) Setting extra vars in OpenLayers is easy. Something like this would
 work:

   myLayer = new OpenLayers.Layer.MapServer(
 'stuff',
 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map',
 { layers:'stuff', map_transparent: 'true',
   somevar: 'somevalue',
 },
 { ratio:1, singleTile:true, transitionEffect:'resize',
 isBaseLayer:false }
   );

 You can then modify the content of the 'somevar' variable. With code
 like:

   myLayer.params.somevar = 'somenewvalue';

 This will tag somevar=somenewvalue onto the URL passed to MapServer.

 Steve

  Heiko Schröter schro...@iup.physik.uni-bremen.de 04/07/09 5:26 AM

 On Montag, 6. April 2009 19:57:19 you wrote:

 Hello,

 the error seems to remain in mapserver 5.4:

 /usr/lib/cgi-bin/mapserv -v
 MapServer version 5.4.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER
 INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE

 http://localhost/cgi-bin/mapserv?
 MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map
 LAYERS=karte,grid,pscSERVICE=WMSVERSION=1.1.1
 REQUEST=GetMapSTYLES=
 FORMAT=image/pngSRS=epsg:4326BBOX=-180,-90,180,90
 WIDTH=600HEIGHT=300
 map.layer[psc].filter='orbitnr=6758'

 loadLayer(): Unknown identifier. Parsing error near (orbitnr=6758):(line
 1)


 Mapfile as below. The map is ok without the 'map.layer[]...'  stuff.

 Does a kind soul knows howto do the runtime substitution from within
 OpenLayer
 (i know it is not the 100% correct list, but maybe someone has hit this
 before).

 Regards
 Heiko

  You'll need to use 5.4 to get this functionality. That version add
  support to allow you to define
  validation strings to lock down what values can be passed for the
  variable. Another solution is
  to consider using runtime substitution to do something similar. That
  works well if the SQL is
  pretty much fixed:
 
   FILTER 'wert=%myval%'
 
  It's also easier to secure.
 
  Steve
 
   On 4/6/2009 at 4:01 AM, in message
 
  200904061101.54781.schro...@iup.physik.uni-bremen.de, Heiko Schröter
 
  schro...@iup.physik.uni-bremen.de wrote:
   Hello,
  
   when passing a 'FILTER' parameter to be changed with the URL to use
 
  GIS
 
   requests, mapserv(5.0.3) fails with:
   loadLayer(): Unknown identifier. Parsing error near (FILTER):(line
 
  1)
 
   The call is:

 http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map;

   LAYERS=karte,grid,pscSERVICE=WMSVERSION=1.1.1REQUEST=GetMap
   STYLES=EXCEPTIONS=application/vnd.ogc.se_inimage
   FORMAT=image/png
   SRS=epsg:4326BBOX=-180,7.91,-82.08,105.83
   WIDTH=256HEIGHT=256
   MAP.LAYER[psc].FILTER='wert=0'
   (Linebreaks included for readability)
  
   When omitting this part:  MAP.LAYER[psc].FILTER='wert=0'the

 map

  is
 
   generated fine (without the proper GIS data of course).
  
   I did read several comments in the archive and the net about this
 
  issue but
 
   haven't found a solution to this problem.
   What do i 

[mapserver-users] instalation of map server

2009-04-08 Thread Aklilu Dinkneh
Dear All

I am new user for mapserver i never did something similar before also and i
have a problem in the instalation of mapserver. I just followed the steps on
the page
http://www.mapserver.org/introduction.html#installation-and-requirements but
i couldnt manage to complete step 8. and i opened the follder
D:\mapserverinstall\apache\cgi-bin there is only one pl file mapserv.exe is
not there so do i have to do something in addition to the instalation
procedure listed in the above page
any one help me please
with kind regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] port from Apache to IIS

2009-04-08 Thread Barend Kobben
Hi,

Thi worked last year  for me, but I run IIS6. If not much changed between 6
and 7, it might help you:

0) Get the latest binaries (eg. the MS4W installation or any other) and
install
1) Create a virtual directory in IIS pointing to the dir where mapserv.exe
resides (eg. when using ms4w it's C:\ms4w\Apache\cgi-bin) and give it an
appropriate alias name alias; for instance cgi-bin.
2) Set the execute permissions on this virtual directory to Scripts and
Executables
3) Accept the virtual directory
4) Go to Web Service Extensions in the IIS service manager
5) Select Add a new web service extension. On the required files tab, add
C:\YourMapserverInstalldir\mapserv.exe
6) Set it to allow
7) Through the security tab of the mapserver install directory, give IIS_WPG
(a standard system usergroup) read/write and execute permission on ALL the
underlying sub-directories
7a) go to IIS manager
7b) go to the server's Web Server Extensions
7c) choose add a new Web Service Extension...
7d) name it mapserver_cgi or similar, and press Add.. near the
required files field.
7e) find the mapserv.exe again (look for CGI's not for dll's!) and press
OK
7f) set it's status to Allowed.
8) Restart the World Wide Web publishing service in the services section
of the administrative tools
9) Test mapserv by running http:\\yourserver\yourmapservaliasdir\mapserv.exe
If you get the message No query information to decode. QUERY_STRING is set,
but empty. Mapserver under IIS is ready to go!


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253


On 08-04-09 07:18, Jessie Xu t-zhe...@microsoft.com wrote:

 I'd like to have mapserver running on IIS 7 and want to know how? I saw an
 article called 'IIS setup for Mapserver' but it is written in 2005 based on
 IIS 5. Could someone give me a hand to figure out how to port from Apache to
 IIS 7? What changes should be made to config files, virtual directories and
 permissions, etc?
 
 Thanks for help!
 
 Jessie
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Symbol problem

2009-04-08 Thread Christy Nieman

Hi,

If you use TYPE ANNOTATION instead of TYPE POINT only the symbols for 
features that get labelled will be drawn.


Regards,

--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

Valeria Muñoz wrote:

Hi
 I have problem with a Symbol, I define some configurations 
parameters for my labels, this works for labels but not for symbols
 
if you look the image attached the red labels are from the symbol.. I 
need to display on the map only the symbols of the labels and not 
symbols with no labels.
 
Layer:
 


  LAYER
NAME 'centro_urbano_punto'
TYPE POINT
DATA 'centro_urbano_punto.shp'
METADATA
  'wms_title' 'centro_urbano_punto'
END
STATUS DEFAULT
MAXSCALE 1988400
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
''
END
LABELITEM 'NAME'
CLASS
   NAME 'centro_urbano_punto'
   STYLE
 SYMBOL 'circle'
 SIZE 3
 OUTLINECOLOR 161 189 196
 COLOR 0 0 0
  
   END

   LABEL
SIZE 6
TYPE TRUETYPE
FONT georgia
ANTIALIAS TRUE
BUFFER 20
COLOR 110 0 0
   OUTLINECOLOR 255 255 255
   OUTLINEWIDTH 3
   
FORCE false

MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 2 0
PARTIALS FALSE
POSITION AUTO
  END
END
  END 
 
 
 
   #Circle symbol

  SYMBOL
NAME 'CIRCLE'
TYPE ellipse
ANTIALIAS TRUE
FILLED true
POINTS
  1 1
END
  END
 
I attach image
 
help please...
 
RG






___
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] Layer Object Parameter Substitution fromURLusing GIS

2009-04-08 Thread Heiko Schröter
On Dienstag, 7. April 2009 15:52:10 you wrote:

Hello Steve,

this seem to fail as well. Funny enough i needed to change the Layernames to 
uppercase in OpenLayer. But anyway:
snip
   var kartenstring = karte,grid,psc;
   var somevalue = FILTER+'orbitnr=4567' ;
   layer = new OpenLayers.Layer.WMS( IUP WMS, 
  http://kahlo1/cgi-bin/mapserv;,
  
{map:'/home/schroete/sciadaten/MapServer/country98/heiko1.map',
   layers: kartenstring,
   map.layer[PSC]: somevalue},
  {singleTile:true});
snap
The relevant part of the generated URL:
...LAYERS=karte%2Cgrid%2CPSCMAP.LAYER%5BPSC%5D=FILTER%2B%27orbitnr%3D4567%27...
I've tried various \' inside somevalue, but that won't change a thing.
Backslashing the + sign won't change thing as well.

And mapserver fails. The output from DEBUG 5 is as follows:
[Wed Apr  8 10:52:31 2009].104328 getSymbol(): Symbol definition error. Parsing 
error near (+):(line 1)
or
[Wed Apr  8 10:51:24 2009].324130 loadLayer(): General error message. URL-
based FILTER configuration failed pattern validation.

Depending on what you have changed in someval.

Regards
Heiko


 2) Setting extra vars in OpenLayers is easy. Something like this would
 work:

   myLayer = new OpenLayers.Layer.MapServer(
 'stuff',
 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map',
 { layers:'stuff', map_transparent: 'true',
   somevar: 'somevalue',
 },
 { ratio:1, singleTile:true, transitionEffect:'resize',
 isBaseLayer:false }
   );

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


[mapserver-users] Gdal seg fault with mapserver on Ubuntu

2009-04-08 Thread Ray Pendergraph
I am having a problem rendering labels to my map. I am running mapserver from 
ubuntu intrepid packages (none compiled). Kernel is  2.6.27-7-generic. Since 
this is obviously a common function I must be doing something wrong in the 
layer or something in the packages is not meshing. Everything works until I try 
to do anything with TrueType fonts, but I am not sure why gdal would have 
anything to do with this. When I try to add a label to a working layer (called 
'clpoint'), the client gets a 500. Funny because the mapserver log reports lots 
of stuff like this for the layer (but no error):


40 2009].797599 msDrawMap(): Layer 6 (clpoint), 0.000s
[Wed Apr  8 08:24:40 2009].797672 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Apr  8 08:24:40 2009].797693 msDrawMap() total time: 0.001s
[Wed Apr  8 08:24:40 2009].803041 msFreeMap(): freeing map at 0x8d21ed8.
[Wed Apr  8 08:24:40 2009].895713 CGI Request 1 on process 29681
[Wed Apr  8 08:24:40 2009].896030 msWMSLoadGetMapParams(): enabling non-square 
pixels.[Wed Apr  8 08:24:40 2009].902272 msDrawMap(): kicking into non-square 
pixel preserving mode.[Wed Apr  8 08:24:40 2009].902928 msDrawMap(): Layer 6 
(clpoint), 0.001s
[Wed Apr  8 08:24:40 2009].903194 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Apr  8 08:24:40 2009].903236 msDrawMap() total time: 0.001s
[Wed Apr  8 08:24:40 2009].908839 msFreeMap(): freeing map at 0x8971ed8.
[Wed Apr  8 08:24:40 2009].928955 CGI Request 1 on process 29683


but syslog reports a bunch of these:
Apr  8 08:24:40 geoserver kernel: [1017419.869331] mapserv[29680]: segfault at 
bf41cfec ip b780fd4b sp bf41cfe0 error 6 in 
libgdal1.5.0.so.1.12.2[b7736000+4df000]
Apr  8 08:24:40 geoserver kernel: [1017419.916239] mapserv[29682]: segfault at 
bf72fffc ip b7821d56 sp bf73 error 6 in 
libgdal1.5.0.so.1.12.2[b7748000+4df000]

--The layer in question:
 LAYER
   METADATA
  wms_title    clpoint
   END
   TYPE POINT
   STATUS ON
   NAME clpoint

   DATA ../shapes/clpoint/clpoint.shp
   LABELITEM CLPTLABEL
   LABELCACHE ON
   CLASS
 STYLE
    COLOR 213 200 230
 END
 LABEL
    TYPE  TRUETYPE
    FONT  arial
    SIZE  8
    ANGLE FOLLOW
    COLOR 25 25 175
    OUTLINECOLOR  255 255 255
    MINDISTANCE   200
    PARTIALS  FALSE
 END
   END
#This works fine
#  CLASS
# STYLE
#    SYMBOL ../symbols/historical.png
#    SIZE 20
# END
#  END 

   JOIN
  TABLE ../shapes/clpoint/clpoint.dbf
  NAME clpoint
  FROM PolyId
  TO PolyId
  TYPE ONE-TO-ONE
   END
 END


--Mapserver configuration:
MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

--gdlib configuration:
# gdlib-config --version
2.0.36
# gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm


--Gdal configuration:
# gdal-config --libs
-L/usr/lib -lgdal1.5.0  (this 1.5.0 seems odd to me)
#gdal-config --version
1.5.2
# gdal-config --ogr-enabled
yes

--The libraries:
-rw-r--r-- 1 root root 8817022 2008-07-04 11:08 /usr/lib/libgdal1.5.0.a
-rw-r--r-- 1 root root    1345 2008-07-04 11:08 /usr/lib/libgdal1.5.0.la
lrwxrwxrwx 1 root root  22 2009-04-07 16:29 /usr/lib/libgdal1.5.0.so - 
libgdal1.5.0.so.1.12.2
lrwxrwxrwx 1 root root  22 2009-03-31 12:43 /usr/lib/libgdal1.5.0.so.1 - 
libgdal1.5.0.so.1.12.2
-rw-r--r-- 1 root root 5438428 2008-07-04 11:08 /usr/lib/libgdal1.5.0.so.1.12.2

--Things I have checked
*The font.list is present and seems to be read (fails with a clearer error when 
I reference a fake font.).
*The font file is a valid true type font and has all permissions. Tried 
different fonts.
*The shape file and the dbf file are readable by other tools and CLPTLABEL in 
the dbf file has the data I want. 


Can someone please tell me where I am going wrong (and thank you)? Sorry for 
the long post.



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


Re: [mapserver-users] Re: Problem with projection

2009-04-08 Thread John Westwood
Hi

There is an spurious  symbol in your PROJECTION definition, I'm not
sure if that is significant (probably not). Looking at your picture
though, it looks like a datum or ellipsoid mismatch. Is your data in
WGS84 or some other datum or ellipsoid? Check out the Wikipedia page:

http://en.wikipedia.org/wiki/Geographic_coordinate_system

You may also wish to check that OpenLayers is using the same coordinate
system as MapServer.

Regards

John Westwood


 Valeria Muñoz valemu...@gmail.com 07/04/09 6:04 PM 
I am sorry I forget something, my projection is:

PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
''
  END
2009/4/7 Valeria Muñoz valemu...@gmail.com

 HI

  I think I have problems with my PROJECTION but i do not why.. i have
a
 list of adress with latitude and longitude of them but the point is
not in
 the correct position. please look the image i mark with X where should
be



 Attach image


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


[mapserver-users] RE: port from Apache to IIS

2009-04-08 Thread Mark Volz
Hello,

I am also attempting to port from Apache to IIS.  In Apache everything works
well.  In IIS6 I have the following issues:  WMS services do not display, PHP
code does not seem to work - which run printing functions and the select by
buffer functions.  I noticed I am getting 404 and 405 errors.

I am running Geomoose over Mapserver 5.2.2 / MS4W 2.3.1

Mark Volz
GIS Specialist
Lyon County, MN


Message: 4
Date: Wed, 8 Apr 2009 10:12:03 +0200
From: Barend Kobben kob...@itc.nl
Subject: Re: [mapserver-users] port from Apache to IIS
To: Jessie Xu t-zhe...@microsoft.com,
mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Message-ID: c60228f3.9eb9%kob...@itc.nl
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Thi worked last year  for me, but I run IIS6. If not much changed between 6
and 7, it might help you:

0) Get the latest binaries (eg. the MS4W installation or any other) and
install
1) Create a virtual directory in IIS pointing to the dir where mapserv.exe
resides (eg. when using ms4w it's C:\ms4w\Apache\cgi-bin) and give it an
appropriate alias name alias; for instance cgi-bin.
2) Set the execute permissions on this virtual directory to Scripts and
Executables
3) Accept the virtual directory
4) Go to Web Service Extensions in the IIS service manager
5) Select Add a new web service extension. On the required files tab, add
C:\YourMapserverInstalldir\mapserv.exe
6) Set it to allow
7) Through the security tab of the mapserver install directory, give IIS_WPG
(a standard system usergroup) read/write and execute permission on ALL the
underlying sub-directories
7a) go to IIS manager
7b) go to the server's Web Server Extensions
7c) choose add a new Web Service Extension...
7d) name it mapserver_cgi or similar, and press Add.. near the
required files field.
7e) find the mapserv.exe again (look for CGI's not for dll's!) and press
OK
7f) set it's status to Allowed.
8) Restart the World Wide Web publishing service in the services section
of the administrative tools
9) Test mapserv by running http:\\yourserver\yourmapservaliasdir\mapserv.exe
If you get the message No query information to decode. QUERY_STRING is set,
but empty. Mapserver under IIS is ready to go!


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253


On 08-04-09 07:18, Jessie Xu t-zhe...@microsoft.com wrote:

 I'd like to have mapserver running on IIS 7 and want to know how? I saw an
 article called 'IIS setup for Mapserver' but it is written in 2005 based on
 IIS 5. Could someone give me a hand to figure out how to port from Apache
to
 IIS 7? What changes should be made to config files, virtual directories and
 permissions, etc?
 
 Thanks for help!
 
 Jessie
 ___
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Problem with projection

2009-04-08 Thread Valeria Muñoz
I think you have psychological problems ... you should not be on this list,

*This list is for help not to insult*

PD: I send the second mail because I did not put the settings defined in my
mapfile in the mail before

RG
*2009/4/7 NN SS nsanchez...@gmail.com
*

 *you are much imbeci, besides gross ...
 women had to be*

   On Tue, Apr 7, 2009 at 12:02 PM, Valeria Muñoz valemu...@gmail.comwrote:

   I am sorry I forget something, my projection is:

 PROJECTION
 'proj=longlat'
 'ellps=WGS84'
 'datum=WGS84'
 'no_defs'
 ''
   END
 2009/4/7 Valeria Muñoz valemu...@gmail.com

 HI

  I think I have problems with my PROJECTION but i do not why.. i have a
 list of adress with latitude and longitude of them but the point is not in
 the correct position. please look the image i mark with X where should be



 Attach image



 ___
 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] Layer Object Parameter Substitution fromURLusing GIS

2009-04-08 Thread Steve Lime
This one answers your previous question about escaping characters. ;-)
You need to
use the ascii escape sequences in a URL.

Anyway, you're running up against the security controls in place in 5.4.
Basically you
don't want someone setting a filter to just anything. So, you *must*
define a validation
pattern before MapServer will allow the change. This is done via a
VALIDATION block.

In your case you'd do something like this in the psc layer:

LAYER
  NAME 'psc'
  ...
  VALIDATION
filter '^orbitnr=[0-9]{1,5}$'
  END
  ...
END

This says that filter can be set via a URL but only if it matches the
pattern above. Guessing
based on your sample this says the filter must be of the form
orbitnr=an integer (1 to 5 digits)
so orbitnr=12345 will work orbitnr=abcd will not.

You can set a far more general pattern (e.g. '.' matches anything) but I
recommend against it.

Steve

 Heiko Schröter schro...@iup.physik.uni-bremen.de 04/08/09 4:04 AM

On Dienstag, 7. April 2009 15:52:10 you wrote:

Hello Steve,

this seem to fail as well. Funny enough i needed to change the
Layernames to 
uppercase in OpenLayer. But anyway:
snip
   var kartenstring = karte,grid,psc;
   var somevalue = FILTER+'orbitnr=4567' ;
   layer = new OpenLayers.Layer.WMS( IUP WMS, 
 
http://kahlo1/cgi-bin/mapserv;,
 
{map:'/home/schroete/sciadaten/MapServer/country98/heiko1.map',
   layers: kartenstring,
   map.layer[PSC]: somevalue},
  {singleTile:true});
snap
The relevant part of the generated URL:
...LAYERS=karte%2Cgrid%2CPSCMAP.LAYER%5BPSC%5D=FILTER%2B%27orbitnr%3D4567%27...
I've tried various \' inside somevalue, but that won't change a thing.
Backslashing the + sign won't change thing as well.

And mapserver fails. The output from DEBUG 5 is as follows:
[Wed Apr  8 10:52:31 2009].104328 getSymbol(): Symbol definition error.
Parsing 
error near (+):(line 1)
or
[Wed Apr  8 10:51:24 2009].324130 loadLayer(): General error message.
URL-
based FILTER configuration failed pattern validation.

Depending on what you have changed in someval.

Regards
Heiko


 2) Setting extra vars in OpenLayers is easy. Something like this would
 work:

   myLayer = new OpenLayers.Layer.MapServer(
 'stuff',
 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map',
 { layers:'stuff', map_transparent: 'true',
   somevar: 'somevalue',
 },
 { ratio:1, singleTile:true, transitionEffect:'resize',
 isBaseLayer:false }
   );


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


[mapserver-users] Get the query image of a wms layer

2009-04-08 Thread David Martinez Morata
Hello.

I have a little problem with my WMS server,
I have a WMS layer in my openlayers (Mapfish) application, and when I
request the map, I show My image in the temp directory of my server but y
don't show in the Openlayer Map.
Any sugestions?

Thanks

-- 
Martinez Morata David
Thinking GIS

-- 
Martinez Morata David
Thinking GIS
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: Querying type=circle layer

2009-04-08 Thread Christian Jauvin
I found the answer to my question:

You have to manually add a shapeindex value for each feature that
you add, and it has to start from zero.

Christian


On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin cjau...@gmail.com wrote:
 Hi,

 I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle
 on which I dynamically add features:

 layer = ..
 circle_shape = shapeObj(MS_SHAPE_LINE)
 p1 = pointObj(..)
 p2 = pointObj(..)
 line = lineObj()
 line.add(p1)
 line.add(p2)
 circle_shape.add(line)
 layer.addFeature(circle_shape)

 Then later I'd like to query that same layer using either
 queryByPoint() or queryByRect(), and there my problems begin:

 (1) queryByPoint does not work at all (but the same code I use works
 for other layers with static content, loaded from a shapefile or
 PostGIS)

 (2) queryByRect seems to work, as it returns MS_SUCCESS when there is
 an overlap, but then it seems that I cannot retrieve the shape I want
 using the result's shapeindex (I get an error message telling me that
 it doesn't exist).

 Am I missing something? Maybe queryByXX work differently with
 dynamical content layers? Or maybe with type=circle layers?

 Thanks a lot in advance for any help!

 Christian

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


[mapserver-users] Re: Querying type=circle layer

2009-04-08 Thread Christian Jauvin
Sorry not shapeindex.. index



On Wed, Apr 8, 2009 at 11:06 AM, Christian Jauvin cjau...@gmail.com wrote:
 I found the answer to my question:

 You have to manually add a shapeindex value for each feature that
 you add, and it has to start from zero.

 Christian


 On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin cjau...@gmail.com wrote:
 Hi,

 I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle
 on which I dynamically add features:

 layer = ..
 circle_shape = shapeObj(MS_SHAPE_LINE)
 p1 = pointObj(..)
 p2 = pointObj(..)
 line = lineObj()
 line.add(p1)
 line.add(p2)
 circle_shape.add(line)
 layer.addFeature(circle_shape)

 Then later I'd like to query that same layer using either
 queryByPoint() or queryByRect(), and there my problems begin:

 (1) queryByPoint does not work at all (but the same code I use works
 for other layers with static content, loaded from a shapefile or
 PostGIS)

 (2) queryByRect seems to work, as it returns MS_SUCCESS when there is
 an overlap, but then it seems that I cannot retrieve the shape I want
 using the result's shapeindex (I get an error message telling me that
 it doesn't exist).

 Am I missing something? Maybe queryByXX work differently with
 dynamical content layers? Or maybe with type=circle layers?

 Thanks a lot in advance for any help!

 Christian


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


Re: [mapserver-users] port from Apache to IIS

2009-04-08 Thread Perry Nacionales
I assume you're talking about this: 
http://mapserver.org/installation/iis.html


Follow that document and you will see there hasn't been that many 
changes. The IIS manager interface might have changed a little but the 
permissions is still the same.


If you downloaded the MS4W package, there is also additional information 
available by going through README_INSTALL.


-Perry

Jessie Xu wrote:


I’d like to have mapserver running on IIS 7 and want to know how? I 
saw an article called ‘IIS setup for Mapserver’ but it is written in 
2005 based on IIS 5. Could someone give me a hand to figure out how to 
port from Apache to IIS 7? What changes should be made to config 
files, virtual directories and permissions, etc?


Thanks for help!

Jessie



___
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] Re: Querying type=circle layer

2009-04-08 Thread Steve Lime
Querying isn't supported for circles. It's pretty much a display-only layer 
type, just like
annotation. The reason being that queries work on the core geometry type of the 
data
source and not the LAYER TYPE. There is no circle geometry. Doesn't mean it 
couldn't 
be done but it would take work (search routines would have to be written for 
circles) to 
do so.

Steve

 On 4/8/2009 at 10:07 AM, in message
aa5471510904080807u620b50e4h30f07a9748d50...@mail.gmail.com, Christian Jauvin
cjau...@gmail.com wrote:
 Sorry not shapeindex.. index
 
 
 
 On Wed, Apr 8, 2009 at 11:06 AM, Christian Jauvin cjau...@gmail.com wrote:
 I found the answer to my question:

 You have to manually add a shapeindex value for each feature that
 you add, and it has to start from zero.

 Christian


 On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin cjau...@gmail.com wrote:
 Hi,

 I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle
 on which I dynamically add features:

 layer = ..
 circle_shape = shapeObj(MS_SHAPE_LINE)
 p1 = pointObj(..)
 p2 = pointObj(..)
 line = lineObj()
 line.add(p1)
 line.add(p2)
 circle_shape.add(line)
 layer.addFeature(circle_shape)

 Then later I'd like to query that same layer using either
 queryByPoint() or queryByRect(), and there my problems begin:

 (1) queryByPoint does not work at all (but the same code I use works
 for other layers with static content, loaded from a shapefile or
 PostGIS)

 (2) queryByRect seems to work, as it returns MS_SUCCESS when there is
 an overlap, but then it seems that I cannot retrieve the shape I want
 using the result's shapeindex (I get an error message telling me that
 it doesn't exist).

 Am I missing something? Maybe queryByXX work differently with
 dynamical content layers? Or maybe with type=circle layers?

 Thanks a lot in advance for any help!

 Christian


 ___
 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] getExtent(c#) with Postgis data ...

2009-04-08 Thread Matej
Tamas, thank you.

I have tried using Npgsql and mapscript_csharp and I can successfully connect 
to the database, but now I suppose I need .map files saved locally to get 
things working? 

Actually I am in the middle of choosing whether it is better to use SharpMap or 
Mapserver's C# libraries for building a desktop app? What are your (and 
everybody's else's) recommendations and suggestions about it?

Thank you very much,
Matej
  - Original Message - 
  From: Tamas Szekeres 
  To: Matej 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, April 07, 2009 10:17 PM
  Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ...


  Matej

  Yes it's definitely the case.

  You application should set a reference to the managed mapscript_csharp.dll 
assembly and it will implicitly load furher unmanaged dlls to provide the 
desired functionality.

  Best regards,

  Tamas



  2009/4/7 Matej ma...@matnet.net

Hi,

this might not be directly connected but I am planning to build a client 
desktop app which should be able to connect to the PostGIS db that is running 
on the remote server and display objects from it / add new etc.

Is this possible in C# with fwtools without the need to have the Mapserver 
running on every client computer?

Thanks and sorry for interrupting,
Matej
  - Original Message - 
  From: Tamas Szekeres 
  To: Paul james 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, April 07, 2009 8:29 PM
  Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ...


  Paul,

  You can refer to the ogrinfo C# sample application in the gdal source 
tree:
  http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs

  Best regards,

  Tamas




  2009/4/7 Paul james paulj...@gmail.com

Thanks Tamas...

But now I´m a little lost... Am I supposed to create a OGR layer?
Do you have any sample how to get extent´s layer using OGR?

P 



On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres szeker...@gmail.com 
wrote:

  Choose a package with the best match for your compiler and 
architecture from here:
  http://vbkto.dyndns.org:1280/sdk/index.html 


  Best regards,

  Tamas




  2009/4/6 Paul james paulj...@gmail.com

Where can I find ogr_csharp.dll ?

Thanks Tamas!

Paul 



On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres 
szeker...@gmail.com wrote:

  Paul,

  Unfortunately this function is not implemented by the MapServer 
postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll)  for 
this purpose. 


  Best regards,

  Tamas




  2009/4/6 Paul james paulj...@gmail.com

All value from getExtent (Postgis layer) is : 
3.4028234663852886E+38

Is it a bug? 




On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres 
szeker...@gmail.com wrote:

  Why don't? That function have already been exposed for 
layerObj with the following signature:

  public rectObj getExtent(void)

  Best regards,

  Tamas




  2009/4/6 Paul james paulj...@gmail.com

Hello, It seems that getExtent (c#) is not implemented...
Any other solution to get extent of a layer using mapscript?

Paul


___
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] KML for mapscript Map...

2009-04-08 Thread Paul james
Hello...
Is it possible to get KML from Mapscript(c#) map?

How?

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


[mapserver-users] PHP MapScript inserting extra parameters into .map file

2009-04-08 Thread Ian
I'm using PHP MapScript to change layers' DATA parameters as the user
selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This
is working fine however I just noticed that extra undefined/unwanted
information is being appended to the map file when my script runs.
Specifically:

STYLE
 ANGLE 360
 OPACITY 100
 SYMBOL 0
END

is appended to each CLASS so what was originally:

CLASS
EXPRESSION ([pixel] = 155 AND [pixel]  164)
COLOR 28 28 28
  END

becomes:

CLASS
  EXPRESSION ([pixel] = 155 AND [pixel]  164)
  STYLE
ANGLE 360
COLOR 28 28 28
OPACITY 100
SYMBOL 0
  END
END

Is there a way to prevent MapScript from doing this? My script is:

?php

// Grab POST parameters
$mapFile = $_POST['mapFile'];
$layerString = $_POST['layers'];

// Separate layers on comma
$layers = explode(,, $layerString);

// Load MapServer .map file
$map = ms_newMapObj($mapFile);

// Update map file with each layer
for ($i = 0; $i  sizeof($layers); ++$i) {
  $layerPrefix = explode(_, $layers[$i]);
  $layer = $map-getLayerByName($layerPrefix[0]);
  // Change DATA parameter for layer
  $layer-set(data, 'path/to/data/' . $layers[$i]);
}

// Finished editing, save .map file
$map-save($mapFile);
?


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


[mapserver-users] PHP MapScript inserting extra parameters into .map file

2009-04-08 Thread Ian
I'm using PHP MapScript to change layers' DATA parameters as the user
selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This
is working fine however I just noticed that extra undefined/unwanted
information is being appended to the map file when my script runs.
Specifically:

STYLE
 ANGLE 360
 OPACITY 100
 SYMBOL 0
END

is appended to each CLASS so what was originally:

CLASS
EXPRESSION ([pixel] = 155 AND [pixel]  164)
COLOR 28 28 28
  END

becomes:

CLASS
  EXPRESSION ([pixel] = 155 AND [pixel]  164)
  STYLE
ANGLE 360
COLOR 28 28 28
OPACITY 100
SYMBOL 0
  END
END

Is there a way to prevent MapScript from doing this? My script is:

?php

// Grab POST parameters
$mapFile = $_POST['mapFile'];
$layerString = $_POST['layers'];

// Separate layers on comma
$layers = explode(,, $layerString);

// Load MapServer .map file
$map = ms_newMapObj($mapFile);

// Update map file with each layer
for ($i = 0; $i  sizeof($layers); ++$i) {
  $layerPrefix = explode(_, $layers[$i]);
  $layer = $map-getLayerByName($layerPrefix[0]);
  // Change DATA parameter for layer
  $layer-set(data, 'path/to/data/' . $layers[$i]);
}

// Finished editing, save .map file
$map-save($mapFile);
?


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


Re: [mapserver-users] PHP MapScript inserting extra parameters into .map file

2009-04-08 Thread Daniel Morissette

Ian wrote:

I'm using PHP MapScript to change layers' DATA parameters as the user
selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This
is working fine however I just noticed that extra undefined/unwanted
information is being appended to the map file when my script runs.
Specifically:

STYLE
 ANGLE 360
 OPACITY 100
 SYMBOL 0
END



I think most of these could be avoided in a future release. Could you 
please file a enhancement ticket about this?


The case of ANGLE 360 is the one that surprised me the most. I checked 
and it seems that the default was changed from 0 to 360 by Steve in 
r4253: http://trac.osgeo.org/mapserver/changeset/4253


Steve: do you remember why that change was made?

Daniel
--
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] getExtent(c#) with Postgis data ...

2009-04-08 Thread Tamas Szekeres
2009/4/8 Matej ma...@matnet.net

  Tamas, thank you.

 I have tried using Npgsql and mapscript_csharp and I can successfully
 connect to the database, but now I suppose I need .map files saved locally
 to get things working?



Not necessarily. You could also build up a map object from scratch and not
save it in the filesystem if not required. You could also not save the map
image just draw the contents of the imageObj and read the contents directly
into a GDI+ bitmap.



 Actually I am in the middle of choosing whether it is better to use
 SharpMap or Mapserver's C# libraries for building a desktop app? What are
 your (and everybody's else's) recommendations and suggestions about it?


I've already used Mapserver's C# libraries to create various .NET desktop
applications and it worked pretty well. You might however create an example
just to make sure about all the aspects before making the final decision.
I'm not sure about  SharpMap, isn't that a pure ASP.NET project?

Best regards,

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


Re: [mapserver-users] KML for mapscript Map...

2009-04-08 Thread Tamas Szekeres
Rendering as KML is not yet supported by MapServer, but these's an
outstanding Google SoC project addressing this issue.

Best regards,

Tamas



2009/4/8 Paul james paulj...@gmail.com

 Hello...
 Is it possible to get KML from Mapscript(c#) map?

 How?

 Thanks!

 ___
 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] KML for mapscript Map...

2009-04-08 Thread Paul james
Thanks again Tamas !

Could you send me the link ?

[]´s

On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Rendering as KML is not yet supported by MapServer, but these's an
 outstanding Google SoC project addressing this issue.

 Best regards,

 Tamas



 2009/4/8 Paul james paulj...@gmail.com

 Hello...
 Is it possible to get KML from Mapscript(c#) map?

 How?

 Thanks!

 ___
 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] KML for mapscript Map...

2009-04-08 Thread Tamas Szekeres
I'm not sure whether it's publicly available to review, but here is the
link:

http://socghop.appspot.com/student_proposal/review/google/gsoc2009/dk/t123862094398


Best regards,

Tamas



2009/4/8 Paul james paulj...@gmail.com

 Thanks again Tamas !

 Could you send me the link ?

 []´s


 On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Rendering as KML is not yet supported by MapServer, but these's an
 outstanding Google SoC project addressing this issue.

 Best regards,

 Tamas



 2009/4/8 Paul james paulj...@gmail.com

 Hello...
 Is it possible to get KML from Mapscript(c#) map?

 How?

 Thanks!

 ___
 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] KML for mapscript Map...

2009-04-08 Thread Fawcett, David
I am not sure about c#, but with CGI, you can create a query template
for your KML as you want it and then use an nquery to build the kml
file.  
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas
Szekeres
Sent: Wednesday, April 08, 2009 4:03 PM
To: Paul james
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] KML for mapscript Map...


Rendering as KML is not yet supported by MapServer, but these's
an outstanding Google SoC project addressing this issue.

Best regards,

Tamas




2009/4/8 Paul james paulj...@gmail.com


Hello...
Is it possible to get KML from Mapscript(c#) map?

How?

Thanks!

___
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] KML for mapscript Map...

2009-04-08 Thread Steve Lime
While there is not *native* support for KML yet, it is possible to generate it:

  1) via templates

  2) through straight mapscript (it ain't that complex) by writing your own xml

Here's an example of the former:

!-- MapServer Template --
?xml version=1.0 encoding=UTF-8?
kml xmlns=http://www.opengis.net/kml/2.2;
[resultset layer=shor_waspt3_query]
  Folder
nameWater Access Points/name
descriptionWater Access Points in Minnesota. Supplied by the Minnesota
DNR, Division of Trails amp; Waterways/description
[feature]Placemark
  Point
coordinates[shpxy cs=, precision=6 
proj=+init=epsg:4326]/coordinates
  /Point
  name[LAKENAME], [COUNTYNAME] County/name
/Placemark
[/feature]
  /Folder
[/resultset]
/kml

You'd have a corresponding output format in your mapfile, like so:

 OUTPUTFORMAT
NAME 'kml'
DRIVER 'TEMPLATE'
MIMETYPE 'application/vnd.google-earth.kml+xml'
FORMATOPTION 'attachement=wap.kml'
FORMATOPTION 'FILE=/mytemplates/kml.xml'
  END

and can retrieve features via a normal query, like so:

  
http://maps.dnr.state.mn.us/cgi-bin/mapserv54?map=/usr/local/www/docs_maps/compass/compass_test.mapmode=nqueryqlayer=shor_waspt3_queryqformat=kml

This works well for place marks and outlines and you can combine multiple 
layers (as multiple folders) in one
output stream.

Steve

 On 4/8/2009 at 4:03 PM, in message
f3b73b7d0904081403s75aebc2fh174d0e525bfe8...@mail.gmail.com, Tamas Szekeres
szeker...@gmail.com wrote:
 Rendering as KML is not yet supported by MapServer, but these's an
 outstanding Google SoC project addressing this issue.
 
 Best regards,
 
 Tamas
 
 
 
 2009/4/8 Paul james paulj...@gmail.com
 
 Hello...
 Is it possible to get KML from Mapscript(c#) map?

 How?

 Thanks!

 ___
 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] PHP MapScript inserting extra parameters into.map file

2009-04-08 Thread Ian
Alright I've filed an enhancement ticket
(http://trac.osgeo.org/mapserver/ticket/2975).

I still don't understand why it happens though. Is MapScript defining
parameters it feels should be there by default? This extra data is
wreaking havoc on some other code and I need to stop it from reaching
the .map file. Is defining these parameters in my .map file a solution
to prevent these extra values from being appended?

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


Re: [mapserver-users] PHP MapScript inserting extra parameters into.map file

2009-04-08 Thread Steve Lime
All that's happening is MapServer is writing the default values for some of the 
parameters. The mapfile
before and after should be functionally equivalent. Not sure how that would 
wreak havoc. Your input
mapfile is using older syntax (no styles) that the mapfile writer can't/won't 
produce. So at a minimum 
you'd see the style block as output.

Steve

 On 4/8/2009 at 4:56 PM, in message
5b61c6c50904081456m4bd81c4dwde2011300bee2...@mail.gmail.com, Ian
ians...@gmail.com wrote:
 Alright I've filed an enhancement ticket
 (http://trac.osgeo.org/mapserver/ticket/2975).
 
 I still don't understand why it happens though. Is MapScript defining
 parameters it feels should be there by default? This extra data is
 wreaking havoc on some other code and I need to stop it from reaching
 the .map file. Is defining these parameters in my .map file a solution
 to prevent these extra values from being appended?
 
 Thanks,
 Ian
 ___
 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