[MAPSERVER-USERS] Setting offset on a symbol within STYLE

2008-11-13 Thread Philippe Kruschitz

Hi,

I'm trying to move my icon, which is a small flag, to fit correctly on my
map. I'm reading the geometry from a PostGIS table. Displaying the icon
works, except for the offset, which doesn't work at all. MS sytematically
puts the icon on the point (i.e. the point is in the middle of my icon). I
tried all possible values for OFFSET, negative/positive, but it just won't
move. I'm working on Mapserver 5.0.0. Did anyone know why this happens?
Maybe I'm doing something wrong? I read the documentation and found a thread
in the forum dealing with a similar problem, but it didn't help me much.

http://www.nabble.com/Symbol-Origin-to18715006.html#a18734570

Here's an example taken from my mapfile (the icon is 22*31px):

CLASS
  EXPRESSION ([idstatus] eq 2)
  SIZE 24
  STYLE
SYMBOL 'etc/icons/pos/ti_icon_tourende_pos.gif'
OFFSET 11 15
  END # style
END #class


Thanks,

Philippe

-- 
View this message in context: 
http://www.nabble.com/Setting-offset-on-a-symbol-within-STYLE-tp20477081p20477081.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


[mapserver-users] White screen after editing mapfile

2008-11-13 Thread Constanze Blübaum
Hello list,

I´m very new to mapserver and all his tricks.
I run a mapserver together with the pmapper software on a virtual server (11 
in Germany) in Linux. For testing I load one shapefile into the map and 
everything runs fine. But when I try to edit the mapfile to show a second 
shapefile my screen is white and nothing happens.
I copied the running file to the server and everything runs fine. 
To test, if my edits caused the crash, I deleted to mapfile from server and 
copied it to the server again. Even the file is the same as before (same 
contents, same savingdate, ...) the screen remains white and the mapserver does 
nothing.
It´s a mystery.

Has anyone the experience? Or can point me a way to solve this problem?

Any suggestions are helpful.
Thanks in advance
Constanze
-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Adding symbols on top of polyline elements

2008-11-13 Thread Adrian Popa
I looked again over your example, and now I understand the difference 
from what I tried. Thanks!


thomas bonfort wrote:

you don't have to... you can use the multiple style blocks as I showed
in my last email
althoug you will have to play with offsets to avoid the symbols overlapping

thomas

On Thu, Nov 13, 2008 at 09:40, Adrian Popa [EMAIL PROTECTED] wrote:
  

Thanks for the reply Thomas,

I will try a workaround by creating a third symbol with both arrows on top
of it 

Thanks,

thomas bonfort wrote:

Hi,



Case 3: displaying both arrows on the same element:
  CLASS
NAME Right
EXPRESSION /^FO040314$/
STYLE
SYMBOL right
SIZE 24
COLOR 51 102 0
END
   END
   CLASS
NAME Left
EXPRESSION /^FO040314$/
STYLE
SYMBOL left
SIZE 24
COLOR 102 51 0
END
   END

How can I display both arrows on the same object (or do they display, but
they overlap completely?)


only ONE class is drawn for each feature, the first one in the rder of
the mapfile to meet the expression and scale tests. so your second
class is never rendered in this case.

CLASS
 NAME Rightand left
 EXPRESSION /^FO040314$/
 STYLE
 SYMBOL right
 SIZE 24
 COLOR 51 102 0
 END
 STYLE
 SYMBOL left
 SIZE 24
 COLOR 102 51 0
 END
END


cheers,
thomas



--
Adrian Popa

Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP  Metro
Compartiment IP Core





  



--
Adrian Popa

Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP  Metro
Compartiment IP Core


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


RE: [mapserver-users] White screen after editing mapfile

2008-11-13 Thread Burgholzer,Robert
Gonna have to post the mapfile I think, otherwise it is hard to see what you 
are doing wrong.

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
[EMAIL PROTECTED]
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Constanze 
Blübaum
Sent: Thursday, November 13, 2008 8:57 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] White screen after editing mapfile

Hello list,

I´m very new to mapserver and all his tricks.
I run a mapserver together with the pmapper software on a virtual server (11 
in Germany) in Linux. For testing I load one shapefile into the map and 
everything runs fine. But when I try to edit the mapfile to show a second 
shapefile my screen is white and nothing happens.
I copied the running file to the server and everything runs fine. 
To test, if my edits caused the crash, I deleted to mapfile from server and 
copied it to the server again. Even the file is the same as before (same 
contents, same savingdate, ...) the screen remains white and the mapserver does 
nothing.
It´s a mystery.

Has anyone the experience? Or can point me a way to solve this problem?

Any suggestions are helpful.
Thanks in advance
Constanze
-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
___
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] White screen after editing mapfile

2008-11-13 Thread Jeff McKenna

Constanze Blübaum wrote:

Hello list,

I´m very new to mapserver and all his tricks.
I run a mapserver together with the pmapper software on a virtual server (11 
in Germany) in Linux. For testing I load one shapefile into the map and everything 
runs fine. But when I try to edit the mapfile to show a second shapefile my screen 
is white and nothing happens.
I copied the running file to the server and everything runs fine. 
To test, if my edits caused the crash, I deleted to mapfile from server and copied it to the server again. Even the file is the same as before (same contents, same savingdate, ...) the screen remains white and the mapserver does nothing.

It´s a mystery.

Has anyone the experience? Or can point me a way to solve this problem?

Any suggestions are helpful.
Thanks in advance
Constanze


My thoughts:

- use the MapServer commandline utility 'shp2img' to debug your mapfile 
(see http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img)
- try removing all layers but the one problem layer and then try shp2img 
with that tiny mapfile

- make sure the EXTENT parameter matches that extents of that one layer
- do some reading on the PROJECTION object, as you could be using 2 data 
layers in difference projections: 
http://mapserver.gis.umn.edu/docs/reference/mapfile/projection


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


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


Re: RE: [mapserver-users] White screen after editing mapfile

2008-11-13 Thread Constanze Blübaum
Hello,

thanks for your response. I attatched the mapfile. 

But I don´t think somethings wrong with the mapfile. Everything runs fine, then 
I delete the mapfile from the server and copy the same mapfile to the server 
again. Everything is identical, but the mapserver crashes.

Constanze

 Original-Nachricht 
 Datum: Thu, 13 Nov 2008 09:22:37 -0500
 Von: Burgholzer,Robert [EMAIL PROTECTED]
 An: Constanze Blübaum [EMAIL PROTECTED], mapserver-users@lists.osgeo.org
 Betreff: RE: [mapserver-users] White screen after editing mapfile

 Gonna have to post the mapfile I think, otherwise it is hard to see what
 you are doing wrong.
 
 Robert W. Burgholzer
 Surface Water Modeler
 Office of Water Supply and Planning
 Virginia Department of Environmental Quality
 [EMAIL PROTECTED]
 804-698-4405
 Open Source Modeling Tools:
 http://sourceforge.net/projects/npsource/
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Constanze Blübaum
 Sent: Thursday, November 13, 2008 8:57 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] White screen after editing mapfile
 
 Hello list,
 
 I´m very new to mapserver and all his tricks.
 I run a mapserver together with the pmapper software on a virtual server
 (11 in Germany) in Linux. For testing I load one shapefile into the map and
 everything runs fine. But when I try to edit the mapfile to show a second
 shapefile my screen is white and nothing happens.
 I copied the running file to the server and everything runs fine. 
 To test, if my edits caused the crash, I deleted to mapfile from server
 and copied it to the server again. Even the file is the same as before (same
 contents, same savingdate, ...) the screen remains white and the mapserver
 does nothing.
 It´s a mystery.
 
 Has anyone the experience? Or can point me a way to solve this problem?
 
 Any suggestions are helpful.
 Thanks in advance
 Constanze
 -- 
 Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
 für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


stade_boden.map
Description: Binary data
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] dBox - Hide mapfile source

2008-11-13 Thread Richard Polk
Steve,
It seems to me that once Javascript interprets the variable, a user will see 
the value of the env variable if they view the source code in a browser.  I am 
not sure of this though.  
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver doesn't compile for WMS/WFS client support

2008-11-13 Thread Carlos Ruiz
Hi list, 

I'm configuring Mapserver to support WMS/WFS Server and client features, but it 
doesn't 
works. 

I execute the ./configure script and this is what i get : 

MapServer is now configured for

 -- Compiler Info -
  C compiler:    gcc -O2 -fPIC -Wall
  C++ compiler:  g++ -O2 -fPIC -Wall
  Debug:  -DNEED_NONBLOCKING_STDERR
  Generic NINT:
  Threading support:

 -- Renderer Settings -
  zlib support:  -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support: -DUSE_ICONV
  AGG support:
  AGG Freetype support:
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:
  PostGIS support:   -DUSE_POSTGIS
  Proj.4 support:    -DUSE_PROJ
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  GEOS support:  -DUSE_GEOS
  Oracle Spatial support:
  FastCGI support:

 -- OGC Services --
  WMS Server:    -DUSE_WMS_SVR
  WMS Client:    -DUSE_WMS_LYR
  WFS Server:    -DUSE_WFS_SVR
  WFS Client:    -DUSE_WMS_LYR
  WCS Server:
  SOS Server:

 -- MapScript -
  PHP MapScript: yes

Once I execute the make script and then check with ./mapserver -v, this is what 
i get :

MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

But it doesn't shows SUPPORTS=WMS_CLIENT nor SUPPORTS=WFS_SERVER nor 
SUPPORT=WFS_CLIENT


Does anyone knows how to solve this ?

Thanks in advance

IC Carlos Ruiz 

--- On Thu, 9/18/08, Steve Lime [EMAIL PROTECTED] wrote:
From: Steve Lime [EMAIL PROTECTED]
Subject: Re: [mapserver-users] Mapserver (CGI/FastCGI) crashes when querying 
amap
To: mapserver-users@lists.osgeo.org, [EMAIL PROTECTED]
Date: Thursday, September 18, 2008, 1:54 PM

You're going to have to be more specific what the hell you're trying to
do. ;-)

 On 9/18/2008 at 1:43 PM, in message
[EMAIL PROTECTED], Carlos Ruiz
[EMAIL PROTECTED] wrote:
 Hi list,
 
 I have Mapserver 5.0.2 installed on Win32, when I do some queries to my
map, 
 the response 
 takes so long and then a window appears saying that CGI/FastCGI crashes.
Can 
 someone 
 have some idea why the hell is crashing ?
 
 Thanks in advance
 
 IC Carlos Ruiz
 
 
   




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


Re: [mapserver-users] dBox - Hide mapfile source

2008-11-13 Thread Steve Lime
The web server interprets the variable, not the browser. The browser never sees 
the expanded value
unless you want it to.

Steve

 On 11/13/2008 at 9:08 AM, in message [EMAIL PROTECTED],
Richard Polk [EMAIL PROTECTED] wrote:
 Steve,
 It seems to me that once Javascript interprets the variable, a user will see 
 the value of the env variable if they view the source code in a browser.  I 
 am not sure of this though.  
  
  

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


RE: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport

2008-11-13 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Carlos Ruiz
 Sent: Thursday, November 13, 2008 1:21 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Mapserver doesn't compile for 
 WMS/WFS clientsupport
 
 Hi list, 
 
 I'm configuring Mapserver to support WMS/WFS Server and 
 client features, but it doesn't works. 
 
 I execute the ./configure script and this is what i get : 
 
 MapServer is now configured for
 
  -- Compiler Info -
   C compiler:gcc -O2 -fPIC -Wall
   C++ compiler:  g++ -O2 -fPIC -Wall
   Debug:  -DNEED_NONBLOCKING_STDERR
   Generic NINT:
   Threading support:
 
  -- Renderer Settings -
   zlib support:  -DUSE_ZLIB
   png support:
   jpeg support:
   iconv support: -DUSE_ICONV
   AGG support:
   AGG Freetype support:
   Ming(flash) support:
   PDFLib support:
 
  -- Data Format Drivers ---
   native tiff support:
   PostGIS support:   -DUSE_POSTGIS
   Proj.4 support:-DUSE_PROJ
   EPPL7 support: -DUSE_EPPL
   ArcSDE support:
   OGR support:   -DUSE_OGR
   GDAL support:  -DUSE_GDAL
   GEOS support:  -DUSE_GEOS
   Oracle Spatial support:
   FastCGI support:
 
  -- OGC Services --
   WMS Server:-DUSE_WMS_SVR
   WMS Client:-DUSE_WMS_LYR
   WFS Server:-DUSE_WFS_SVR
   WFS Client:-DUSE_WMS_LYR
   WCS Server:
   SOS Server:
 
  -- MapScript -
   PHP MapScript: yes
 
 
 Once I execute the make script and then check with 
 ./mapserver -v, this is what i get :
 
 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
 SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 But it doesn't shows SUPPORTS=WMS_CLIENT nor 
 SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT
 
 Does anyone knows how to solve this ?
 
 Thanks in advance
 
 IC Carlos Ruiz
 

What does your ./configure look like?  Did you specify
--with-curl-config=PATH ?

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


RE: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport

2008-11-13 Thread Carlos Ruiz
Hi Tom,

Yes, i specify --the with-curl-config parameter. This is my configure string :



./configure --with-proj=/usr/lib --with-geos=/usr/bin/geos-config 
--with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config
--with-wms-server --with-wmsclient --with-wfs --with-wfsclient 
--with-postgis=/usr/local/pgsql/bin/pg_config 
--with-curl-config=/usr/bin/curl-config
--with-httpd=/usr/local/apache2/bin/httpd --with-php=/usr/local/php-5.2.6 

IC Carlos Ruiz 

--- On Thu, 11/13/08, Kralidis,Tom [Ontario] [EMAIL PROTECTED] wrote:
From: Kralidis,Tom [Ontario] [EMAIL PROTECTED]
Subject: RE: [mapserver-users] Mapserver doesn't compile for WMS/WFS 
clientsupport
To: [EMAIL PROTECTED], mapserver-users@lists.osgeo.org
Date: Thursday, November 13, 2008, 1:10 PM

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Carlos Ruiz
 Sent: Thursday, November 13, 2008 1:21 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Mapserver doesn't compile for 
 WMS/WFS clientsupport
 
 Hi list, 
 
 I'm configuring Mapserver to support WMS/WFS Server and 
 client features, but it doesn't works. 
 
 I execute the ./configure script and this is what i get : 
 
 MapServer is now configured for
 
  -- Compiler Info -
   C compiler:gcc -O2 -fPIC -Wall
   C++ compiler:  g++ -O2 -fPIC -Wall
   Debug:  -DNEED_NONBLOCKING_STDERR
   Generic NINT:
   Threading support:
 
  -- Renderer Settings -
   zlib support:  -DUSE_ZLIB
   png support:
   jpeg support:
   iconv support: -DUSE_ICONV
   AGG support:
   AGG Freetype support:
   Ming(flash) support:
   PDFLib support:
 
  -- Data Format Drivers ---
   native tiff support:
   PostGIS support:   -DUSE_POSTGIS
   Proj.4 support:-DUSE_PROJ
   EPPL7 support: -DUSE_EPPL
   ArcSDE support:
   OGR support:   -DUSE_OGR
   GDAL support:  -DUSE_GDAL
   GEOS support:  -DUSE_GEOS
   Oracle Spatial support:
   FastCGI support:
 
  -- OGC Services --
   WMS Server:-DUSE_WMS_SVR
   WMS Client:-DUSE_WMS_LYR
   WFS Server:-DUSE_WFS_SVR
   WFS Client:-DUSE_WMS_LYR
   WCS Server:
   SOS Server:
 
  -- MapScript -
   PHP MapScript: yes
 
 
 Once I execute the make script and then check with 
 ./mapserver -v, this is what i get :
 
 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
 SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 But it doesn't shows SUPPORTS=WMS_CLIENT nor 
 SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT
 
 Does anyone knows how to solve this ?
 
 Thanks in advance
 
 IC Carlos Ruiz
 

What does your ./configure look like?  Did you specify
--with-curl-config=PATH ?

..Tom



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


[mapserver-users] Would like to flesh out Python mapscript page

2008-11-13 Thread Roger André
Hi,

I'd like to add some examples to the
http://mapserver.gis.umn.edu/docs/howto/mapscript_python page.
Unfortunately, when I try to register for an account at
mapserver.gis.umn.edu, I get an error saying No space left on device.

Could someone let me know if there is another way that I can register?

Thanks,

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


Re: [mapserver-users] Would like to flesh out Python mapscript page

2008-11-13 Thread Howard Butler


On Nov 13, 2008, at 3:00 PM, Roger André wrote:


Hi,

I'd like to add some examples to the http://mapserver.gis.umn.edu/docs/howto/mapscript_python 
 page.  Unfortunately, when I try to register for an account at  
mapserver.gis.umn.edu, I get an error saying No space left on  
device.


Could someone let me know if there is another way that I can register?



Log overflow.  Fixed.  Thanks for the report.

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


Re: [mapserver-users] Would like to flesh out Python mapscript page

2008-11-13 Thread Roger André
Thanks, but it now the registration service appears unable to contact either
my company's mail server, or GMail's.  Is it possible something is still
rotten in Denmark?
--

On Thu, Nov 13, 2008 at 1:44 PM, Howard Butler [EMAIL PROTECTED] wrote:


 On Nov 13, 2008, at 3:00 PM, Roger André wrote:

  Hi,

 I'd like to add some examples to the
 http://mapserver.gis.umn.edu/docs/howto/mapscript_python page.
  Unfortunately, when I try to register for an account at
 mapserver.gis.umn.edu, I get an error saying No space left on device.

 Could someone let me know if there is another way that I can register?


 Log overflow.  Fixed.  Thanks for the report.

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


Re: [mapserver-users] Is it possible to take the last 3 chars from astring as labelitem

2008-11-13 Thread Steve Lime
It's not possible within mapserver itself. With PostGIS or Oracle Spatial you 
can specify functions in your data
statements essentially creating a column on-the-fly. Perhaps that's possible 
with SDE as well?

Steve

 On 11/11/2008 at 7:14 AM, in message [EMAIL PROTECTED], I-Real - Rob
ter Haar [EMAIL PROTECTED] wrote:
 Hi,
 
 As in the subject. Is it possible to do a substr on a string like SQL 
 can do.
 
 I use SDE for source and in the description there is a long string, but 
 i only need the last 3 characters.
 
 I can't add column in the database so thats no option. I only have a sde 
 host username and password.
 
 Can anyone help me?
 
 kind regards,
 
 Rob ter Haar

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


[mapserver-users] FW: Mapserver 5.2 build for ArcSDE 9.1

2008-11-13 Thread Douville, Michelle R ILMB:EX
Mapserver 5.2 build for ArcSDE 9.1 point layers

I am having an issue with ArcSDE 9.1 SP3 point layers and Mapserver 5.2.
I took a .map file that works in mapserver 4.10 and since it didn't work
with point data, I have gone ahead and tried to tweak a simple point
layer to try and figure out what it doesn't like.. I have tried most of
the things listed here
http://mapserver.gis.umn.edu/docs/reference/vector_data/arcsde 

- Adding the sde.default didn't seem to make a difference. 
- using or not using attribute data to label seems to not affect the
outcome. I have tried with and without a template reference. 
- I have tried 
CONNECTION
slkux1.env.gov.bc.ca,port:5153,sde,proxy_mapserver_dev,password (which
works with lines and polygons)
CONNECTION slkux1.env.gov.bc.ca,5153,sde,proxy_mapserver_dev, password
CONNECTION
slkux1.env.gov.bc.ca,port,5153,sde,proxy_mapserver_dev,password
CONNECTION
slkux1.env.gov.bc.ca,port:5153,idwprod1,proxy_mapserver_dev,password
CONNECTION
slkux1.env.gov.bc.ca,port:5153,,proxy_mapserver_dev,password
CONNECTION
slkux1.env.gov.bc.ca,port:5153,sde,PROXY_MAPSERVER_DEV,password 
- I have tested with and without labelitem to no affect.

- invalid or null geometries in the layer: I could check that there are
no invalid or null geometries for one point layer. But I find it odd
that all point layers failed, while all line/polygon layers passed. And
no other applications that use these layers complain (ie. ArcIMS,
Geoserver)

Attached is the latest debug 5 result as well. 
ArcSDE INFO - idwprod1  
   Solaris 64bit
   RDBMS Version - 10.2.0.2 
   RDBMS Edition EE 
   ArcSDE Version 9.1   
   ArcSDE patch level SP3


E:\sw_nt\mapserver520mapserv -v
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG
 SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORT
S=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI
SUPPORTS=T
HREADS INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL
INPUT=SHAPE
FILE

Many thanks for all your help, 
Michelle




testclean.map
Description: testclean.map


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


Re: [mapserver-users] Would like to flesh out Python mapscript page

2008-11-13 Thread Dane Springmeyer
Just tried from here and I get a 'We were unable to send your password  
to your email address: (146, 'Connection refused')' error


Dane


On Nov 13, 2008, at 1:57 PM, Roger André wrote:

Thanks, but it now the registration service appears unable to  
contact either my company's mail server, or GMail's.  Is it possible  
something is still rotten in Denmark?

--

On Thu, Nov 13, 2008 at 1:44 PM, Howard Butler [EMAIL PROTECTED]  
wrote:


On Nov 13, 2008, at 3:00 PM, Roger André wrote:

Hi,

I'd like to add some examples to the http://mapserver.gis.umn.edu/docs/howto/mapscript_python 
 page.  Unfortunately, when I try to register for an account at  
mapserver.gis.umn.edu, I get an error saying No space left on  
device.


Could someone let me know if there is another way that I can register?


Log overflow.  Fixed.  Thanks for the report.

Howard

___
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] Legend for a layer with filter

2008-11-13 Thread Subha Ramakrishnan

Hi,

I want to know if it is possible to generate a legend for a layer with a 
filter.

I am getting a blank response with a mode=legend for this layer.
I tried passing the parameter that i am using in the filter, in the 
request but didn't work either.


This is the layer in the mapfile:
layer
 name filterlayer
 connectiontype postgis
 connection user= username dbname=db password=passwd host=localhost
 group world
 type polygon
 status on
 class
   style
 width 3
   color 170 153 175
   outlinecolor 000 000 000
  end
 end
 filter 'id IN (%pid%)'
 data topology from dbtable
 transparency 65
 end

Thank you.

Regards,
Subha


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