Re: [mapserver-users] Expressions

2010-10-06 Thread ibrahim saricicek
Hi List,

Thanks, that works.
But *this doesn't* and I need something like in the Class definitions below.
What should I do in this condition?
Is it about this; http://trac.osgeo.org/mapserver/ticket/2817
Using ms4w 5.4.0-rc2.

 CLASSITEM name

  CLASS
EXPRESSION ([id] = 5)
MAXSCALEDENOM 4000
MINSCALEDENOM 1000
NAME 1
STYLE
COLOR [color2]
END
STYLE
OUTLINECOLOR 20 20 20
WIDTH 3
END
END

CLASS
EXPRESSION /xyz/
NAME 2
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END

*OR*

#CLASSITEM 'name' # Without CLASSITEM definition
CLASS
EXPRESSION ('[name]' eq /xyz/ AND [id] = 5)
NAME GID_S
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END

On Tue, Oct 5, 2010 at 8:08 PM, Lime, Steve D (DNR)
steve.l...@state.mn.uswrote:

 You can use regular expressions instead. E.g.

 Classitem 'name'
 Class
  Expression /xyz/
 End

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org [
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ibrahim Saricicek [
 ibrahimsarici...@gmail.com]
 Sent: Tuesday, October 05, 2010 8:08 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Expressions

 Hi List;

 instead of an sql ,in the connection string including 'LIKE';
 (select id, name,the_geom from public.mytable where name like '%xyz%')
 I would like to use an expression.
 But documents say The following logical operators are supported:
 =,,,=,=,=,or,and,lt,gt,ge,le,eq,ne

 How can I use something like this?
  CLASS
EXPRESSION ([name]  like '%xyz%')

 Thanks in Advance...
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserver and i18n

2010-10-06 Thread teeschke

Hi List,

does anybody managed the internationalization with UMN?
Currently we have the racy idea to provide one mapfile for each language.
The differences are clear:
- title of the map
- title of the layers 
- name of the classes.
- every gml_SOMEATTRIBUTE_alias

CartoMap seems to support i18n with complex configuration, but i never tried
this out.
http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html
http://www.cartoweb.org/doc/cw3.5/xhtml/intro.archi.html

Thanks a lot and regards,
Daniel
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5607348.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] doubt about mapserver URL: coordinate system

2010-10-06 Thread Sebastian E. Ovide
Hi List

I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
MapServer with ULRs like this:

http://mapserver/mapserver?layers=NAFRA_2008_final
map=/home/gis/conf/mapserver/uk.map
mode=map
map_imagetype=png
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
map_size=256+256
imgx=128
imgy=128
imgxy=256+256

Just trying to understand the coordinate system used by mapext and imgext. (
it is different from than that used to call Google servers:
http://mt0.google.com/vt/lyr...@133hl=ensrc=apix=257246y=166679z=19s=G
)

Is it possible to use a different coordinate system ? say for example the
same coordinate system specified in the LAYER (in my case epsg:27700)

thanks

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


Re: [mapserver-users] GetFeatureInfo over OGR OCI Layer

2010-10-06 Thread Sebastian E. Ovide
does

ogrinfo OCI:admcarto/admca...@ora10gex GV_SIGPAC_REC_ED50

work ?

On Fri, Oct 1, 2010 at 12:25 PM, David Alda Fernandez de Lezea da...@ikt.es
 wrote:

 Hi list,

 I'm trying to execute a GetFeatureInfo request over an Oracle layer via
 OGR. I can view the content of the layer, but when I make the request I
 don't get any result. I mean, I receive an empty GML. My layer config:

 LAYER
STATUS ON
CONNECTION OCI:admcarto/admca...@ora10gex
CONNECTIONTYPE OGR
DATA GV_SIGPAC_REC_ED50 #todo el sigpac
NAME RecintosSigpacOGR
PROJECTION
init=epsg:23030
END
DUMP TRUE
TYPE POLYGON
METADATA
wms_title   Recintos Sigpac
 2009
wms_srs EPSG:23030
wms_nameRecintosSigpacOGR
wms_server_version  1.1.1
wms_format  image/gif
wms_transparent true
wms_extent  46 469 61
 482
wms_include_items   all
gml_include_items all
END
MAXSCALE 1

TEMPLATE ms_template.html
PROCESSING LABEL_NO_CLIP=ON
PROCESSING CLOSE_CONNECTION=DEFER
SYMBOLSCALE 5000

#Simbologia
CLASSGROUP Simbologia_Recintos
CLASS
TEXT ([PARCELA]:[RECINTO])
STYLE
OUTLINECOLOR 0 234 0
END
LABEL
COLOR 254 254 255
OUTLINECOLOR 0 0 0
TYPE truetype
FONT sans
SIZE 6
POSITION cc
PARTIALS TRUE
END
NAME RecintosSigPac
GROUP Referencia_Sigpac
END

CLASS
STYLE
OUTLINECOLOR 0 234 0
WIDTH 1
END
NAME RecintosSigPac
GROUP Predeterminado
END

END

 Resultant file

 ?xml version=1.0 encoding=ISO-8859-1?

 msGMLOutput
 xmlns:gml=http://www.opengis.net/gml;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 /msGMLOutput

 Any ideas? Something wrong configured?

 Thanks.


 Un saludo,


 ··

 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad

 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)


 ··
 Tlfnos.: 945-00-32-95 Fax: 945-00.32.90

 ··
 email: da...@ikt.esweb: www.ikt.es

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




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


[mapserver-users] mapserv 5.6 faults on Windows Server 2003

2010-10-06 Thread Richard Greenwood
I'm getting a whole bunch of faults on a Windows 2003 server. The
Event Viewer reports:
   faulting application mapserv.exe, version 0.0.0.0,
   faulting module libmap.dll, version 0.0.0.0,
   fault address 0x0002deaa.
I'm running a plain vanilla ms4w_3.0_beta11. Tried both 5.6.3 and
5.6.5. It started when I upgraded the server from MS 5.2 to 5.6.

I can find the CGI request in the Apache log that caused the fault,
but when I paste the same request into a browser and run it again it
doesn't produce the fault. So it's not reproducible.

Any thoughts?

Thanks,
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] How to display Labels from 1 table?

2010-10-06 Thread elisabeth theresia
Hi Mr. Michael,

Thanks for replying, i already did what you suggested to me and i delete my 
layer about LABELITEMS (my coding in the bottom), but there's no labels appear 
in my map yet, why?

then when i write like this: (coding) there was an error message : getString(): 
Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])

here the coding:
LAYER 
NAME Annotation of Region
TYPE ANNOTATION
STATUS DEFAULT
FEATURE
TEXT ([name_region]|[value_1]-[value_2])
END #FEATURE
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP |
END #LABEL
END #CLASS
END #LAYER


Thanks for the attention :)
-Theresia





rFrom: Michael Schulz x...@xx.x
To: elisabeth theresia x...@xx.com
Cc: mapserv forumlist mapserver-users@lists.osgeo.org
Sent: Wed, October 6, 2010 6:45:30 AM
Subject: Re: [mapserver-users] How to display Labels from 1 table?

Hi Theresia,

you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html

e.g. like this:

  CLASS
LABEL
   COLOR 0 0 0
  TYPE Truetype
  FONT Arial
  SIZE 11
  MINSIZE 8
  ANGLE Auto
  POSITION UC
  ANTIALIAS True
   WRAP |
END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
END #CLASS

This will label the features with the values of the tree fields in this form:

name_region
values_1 - values_2

You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.

Cheers, Michael


2010/10/6 elisabeth theresia dbee_ka...@yahoo.com:
 Hello Mapserver experts,

 I have question in my mind, How to display Labels from 1 table in my
 database (Postgre + Postgis)?
 in this table there are fields of : name_region, values_1, values_2, How to
 appear them? Could Mapserver make it?
 I ask this question, because I want to show the difference values_1 between
 values_2 in my Bar Chart :)

 if i do this (code in the bottom) then just appear values_2 in the map :) ?

 LAYER
 STATUS DEFAULT
 TYPE ANNOTATION
 CONNECTIONTYPE POSTGIS
 CONNECTION user=x password=x dbname=mydb host=host port=5432
 DATA the_geom FROM tb_region USING UNIQUE code_region

 LABELITEM name_region
 CLASS
 LABEL
 COLOR 0 0 0
 TYPE Truetype
 FONT Arial
 SIZE 11
 MINSIZE 8
 ANGLE Auto
 POSITION UC
 ANTIALIAS True
 END # LABEL
 END #CLASS

 LABELITEM values_1
 CLASS
 LABEL
 COLOR 255 255 255
 TYPE Truetype
 FONT Arial
 SIZE 9
 MINSIZE 8
 ANGLE Auto
 POSITION UC
 ANTIALIAS True
 END # LABEL
 END #CLASS

 LABELITEM values_2
 CLASS
 LABEL
 COLOR 255 255 255
 TYPE Truetype
 FONT Arial
 SIZE 9
 MINSIZE 8
 ANGLE Auto
 POSITION UC
 ANTIALIAS True
 END # LABEL
 END #CLASS
 END #LAYER

 Thanks really appreciate yours,

 -Theresia :)


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





-- 
~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in Köln Halle: 11.2
Stand-Nr: 2C.121
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg



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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-06 Thread Stephen Woodbridge

On 10/6/2010 11:07 AM, teeschke wrote:


Hi Jeff,

Thanks a lot, but I don't mean the support of caracter encoding.

I want to publish the same map in different languages.
I mean the technology to publish the same content in multiple languages.
E.g. an american user would see the layers named highways and railways
but a user from france will get the layers named autoroute and chemins de
fer - with using the same shapefile.

regards, Daniel


Daniel,

I think this has more to do with the client software than directly with 
mapserver on the server side. The layer names are not really exposed to 
the user except possible in part of the UI that might have a control to 
turn on/off a layer. At that point the client side should be doing the 
translation of the displayed names to the mapserver layer names.


Along this line of thinking, I think it would be interesting if 
mapserver could detect the client language preferences and that could be 
made available for selecting which attribute columns are used for 
labeling. I have done this with a control in the client to select the 
language then made changes in my requests to the server to request a 
different mapfile based on language.


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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-06 Thread Bart van den Eijnden
I don't agree with you here Steve.

Also look at the INSPIRE language parameter, it's up to the service (View 
Service, WMS) to translate, not the client. Think of layer titles in WMS 
GetCapabilities.

The way I've been doing it is to duplicate my datasets behind Mapserver, but 
that's not an ideal situation.

Best regards,
Bart

-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out 
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bart...@osgis.nl

On Oct 6, 2010, at 6:46 PM, Stephen Woodbridge wrote:

 On 10/6/2010 11:07 AM, teeschke wrote:
 
 Hi Jeff,
 
 Thanks a lot, but I don't mean the support of caracter encoding.
 
 I want to publish the same map in different languages.
 I mean the technology to publish the same content in multiple languages.
 E.g. an american user would see the layers named highways and railways
 but a user from france will get the layers named autoroute and chemins de
 fer - with using the same shapefile.
 
 regards, Daniel
 
 Daniel,
 
 I think this has more to do with the client software than directly with 
 mapserver on the server side. The layer names are not really exposed to the 
 user except possible in part of the UI that might have a control to turn 
 on/off a layer. At that point the client side should be doing the translation 
 of the displayed names to the mapserver layer names.
 
 Along this line of thinking, I think it would be interesting if mapserver 
 could detect the client language preferences and that could be made available 
 for selecting which attribute columns are used for labeling. I have done this 
 with a control in the client to select the language then made changes in my 
 requests to the server to request a different mapfile based on language.
 
 Regards,
  -Steve W
 ___
 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] doubt about mapserver URL: coordinate system

2010-10-06 Thread Rahkonen Jukka
Hi,

It looks like your application is calling Mapserver with native CGI requests 
and I believe you have defined some special Mapserver layer in your 
application. Try to change it to standard WMS layer.


-Jukka Rahkonen-


Sebastian E. Ovide wrote:

Lähetetty: ke 6.10.2010 18:06
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
 
Hi List

I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
MapServer with ULRs like this:

http://mapserver/mapserver?layers=NAFRA_2008_final
map=/home/gis/conf/mapserver/uk.map
mode=map
map_imagetype=png
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
map_size=256+256
imgx=128
imgy=128
imgxy=256+256

Just trying to understand the coordinate system used by mapext and imgext. (
it is different from than that used to call Google servers:
http://mt0.google.com/vt/lyr...@133hl=ensrc=apix=257246y=166679z=19s=G
)

Is it possible to use a different coordinate system ? say for example the
same coordinate system specified in the LAYER (in my case epsg:27700)

thanks

-- 
Sebastian E. Ovide

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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-06 Thread Stephen Woodbridge

On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:

I don't agree with you here Steve.

Also look at the INSPIRE language parameter, it's up to the service
(View Service, WMS) to translate, not the client. Think of layer
titles in WMS GetCapabilities.

The way I've been doing it is to duplicate my datasets behind
Mapserver, but that's not an ideal situation.

Best regards, Bart



Hi Bart,

Thanks for this feedback. I will look into that.

While I have implemented multilingual driving directions, but I'm far 
from being very knowledgeable with regards to most of the i18n issues.


So do you have any recommendations or ideas for how mapserver should 
deal with this? Would something like creating an additional mapping 
table for terms solve this problem? Maybe something like the following 
in a mapfile:


TRANSLATIONS
  TERM Highway
en_US.UTF-8 Highway
en_UK.UTF-8 Autoroute
...
  END
  TERM ...
  END
END

or something along these lines, with the idea the mapserver use this to 
deal with user requests appropriately.


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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-06 Thread Bart van den Eijnden
Hi Steve,

I have no real ideas towards a solution, like I said I use data duplication 
right now :-) . Normally a thesaurus would be used in between, but I don't know 
how viable it is to do this on the fly.

Best regards,
Bart

-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out 
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bart...@osgis.nl

On Oct 6, 2010, at 7:56 PM, Stephen Woodbridge wrote:

 On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:
 I don't agree with you here Steve.
 
 Also look at the INSPIRE language parameter, it's up to the service
 (View Service, WMS) to translate, not the client. Think of layer
 titles in WMS GetCapabilities.
 
 The way I've been doing it is to duplicate my datasets behind
 Mapserver, but that's not an ideal situation.
 
 Best regards, Bart
 
 
 Hi Bart,
 
 Thanks for this feedback. I will look into that.
 
 While I have implemented multilingual driving directions, but I'm far from 
 being very knowledgeable with regards to most of the i18n issues.
 
 So do you have any recommendations or ideas for how mapserver should deal 
 with this? Would something like creating an additional mapping table for 
 terms solve this problem? Maybe something like the following in a mapfile:
 
 TRANSLATIONS
  TERM Highway
en_US.UTF-8 Highway
en_UK.UTF-8 Autoroute
...
  END
  TERM ...
  END
 END
 
 or something along these lines, with the idea the mapserver use this to deal 
 with user requests appropriately.
 
 -Steve W
 

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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-06 Thread Michael Smith
I would do this on the backend. Pass a language variable to your data query

DATA geom from data where lang='%lang%'
LABELITEM %LANG%HIGHWAY

And have one mapfile and just have your translations in PostGis/Oracle/etc.

Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 





On 10/6/10 1:56 PM, Stephen Woodbridge wood...@swoodbridge.com wrote:

 On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:
 I don't agree with you here Steve.
 
 Also look at the INSPIRE language parameter, it's up to the service
 (View Service, WMS) to translate, not the client. Think of layer
 titles in WMS GetCapabilities.
 
 The way I've been doing it is to duplicate my datasets behind
 Mapserver, but that's not an ideal situation.
 
 Best regards, Bart
 
 
 Hi Bart,
 
 Thanks for this feedback. I will look into that.
 
 While I have implemented multilingual driving directions, but I'm far
 from being very knowledgeable with regards to most of the i18n issues.
 
 So do you have any recommendations or ideas for how mapserver should
 deal with this? Would something like creating an additional mapping
 table for terms solve this problem? Maybe something like the following
 in a mapfile:
 
 TRANSLATIONS
TERM Highway
  en_US.UTF-8 Highway
  en_UK.UTF-8 Autoroute
  ...
END
TERM ...
END
 END
 
 or something along these lines, with the idea the mapserver use this to
 deal with user requests appropriately.
 
 -Steve W
 ___
 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