Re: [mapserver-users] CLUSTER and GetFeatureInfo

2011-06-01 Thread luca.casagra...@gmail.com
2011/6/1 Tamas Szekeres :
>
> 2011/6/1 Luca Casagrande 
>>
>> Hello everybody,
>> I have a working demo with the new CLUSTER class working fine. What I'd
>> like
>> to do is to get the list of the values for a specific attribute, for every
>> feature in the cluster. Is this possible, for example, with a
>> GetFeatureInfo
>> request?
>>
>
> Luca,
>
> If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the
> features making up the cluster are returned instead of a single feature at
> the same clustered location.
>
> Best regards,
>
> Tamas

Thanks Tamas.
Is this feature currently only in trunk or it's fine with 6.0.0?

Ciao
L.

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


[mapserver-users] MAXLENGTH not working with WRAP

2011-06-01 Thread kngai
Hi Everyone,

I have setup a wms server to display a polygon on OpenLayers. I can show the
labels with WRAP " ". But when I add MAXLENGTH, the map image (tiles) simply
doesn't render anymore. Here is my mapfile LABEL:
LABEL
COLOR   255 0 0
OUTLINECOLOR255 255 255
TYPETRUETYPE
FONTvera-it
SIZE8
ANTIALIAS   TRUE
POSITIONCC
PARTIALSFALSE
BUFFER  3
MAXLENGTH   8
WRAP" "
END

Am I missing something here?

-
Kevin Ngai
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAXLENGTH-not-working-with-WRAP-tp6429308p6429308.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


Re: [mapserver-users] CLUSTER and GetFeatureInfo

2011-06-01 Thread Tamas Szekeres
2011/6/1 Luca Casagrande 

> Hello everybody,
> I have a working demo with the new CLUSTER class working fine. What I'd
> like
> to do is to get the list of the values for a specific attribute, for every
> feature in the cluster. Is this possible, for example, with a
> GetFeatureInfo
> request?
>
>
Luca,

If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the
features making up the cluster are returned instead of a single feature at
the same clustered location.

Best regards,

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


[mapserver-users] CLUSTER and GetFeatureInfo

2011-06-01 Thread Luca Casagrande
Hello everybody,
I have a working demo with the new CLUSTER class working fine. What I'd like
to do is to get the list of the values for a specific attribute, for every
feature in the cluster. Is this possible, for example, with a GetFeatureInfo
request?

Thanks
Luca 

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/CLUSTER-and-GetFeatureInfo-tp6428949p6428949.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


Re: [mapserver-users] Hwy Shields

2011-06-01 Thread Brent Fraser
This is kinda cool: 
http://commons.wikimedia.org/wiki/Category:Highway_shield_blanks


Best Regards,
Brent Fraser


On 6/1/2011 9:50 AM, Fawcett, David (MPCA) wrote:

Does anyone have a highway shield example map file and symbol set that they are 
willing to share?

Thanks,

David.

___
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] RE: Hwy Shields

2011-06-01 Thread Brent Fraser

Johan,

  That's the "classic" way of doing it:
layer 1 (line): line symbology
layer 2 (anno): label with point symbol under the label

The "new" way is to use a STYLE object (referencing the point symbol) 
inside the LABEL object of the line layer so only one layer required.


Best Regards,
Brent Fraser


On 6/1/2011 1:15 PM, Johan Forsman wrote:

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
boun...@lists.osgeo.org] On Behalf Of Fawcett, David (MPCA)
Sent: Wednesday, June 01, 2011 10:50 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Hwy Shields

Does anyone have a highway shield example map file and symbol set that
they are willing to share?

Thanks,

David.

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

I did this as one of the first "advanced" mapfile projects when I started with 
MapServer, so it probably is both inelegant and incorrect, but I used a line layer for 
the roads and an annotation layer for the labels. I don't recall precisely the reason I 
did an annotation layer, but it may have had to do with my preferred positioning of the 
labels.

Here's an partial extract from the symbol set and mapfile:

# Highway shields
SYMBOL
NAME 'interstate'
TYPE pixmap
IMAGE "interstate.png"
END 

LAYER   # Freeways at small scale
DATA 'webmaps_LDOTD_2007_hwys'
name freeways_small
type line
OPACITY 100
status on
labelitem "HWY_NUM"
LABELCACHE on
classitem "SHIELD"
MINSCALEDENOM   250001
class
EXPRESSION "I"
NAME "Interstate highways"
style
color 0 92 230
width 3
antialias true
end
style
color 254 254 254
width 1
antialias true
end
end #class
end #layer freeways_small

LAYER   # shields and labels for freeways at small scale
DATA 'webmaps_LDOTD_2007_hwys'
name freeways_small_labels
type annotation
OPACITY 100
status on
labelitem "HWY_NUM"
LABELCACHE on
classitem "SHIELD"
MINSCALEDENOM   250001
class
EXPRESSION "I"
style
SYMBOL 'interstate'
end
label
type truetype
antialias true
font arial
size 8
position cc
ANGLE 0
color 254 254 254
partials false
MINDISTANCE 200
MINFEATURESIZE auto
end #label
end #class
end #layer freeways_small_labels

Hope that helps get you started.

Take care,

Johan Forsman
Geologist
Safe Drinking Water Program
Louisiana Department of Health and Hospitals
Telephone: 225.342.7309
Telefax: 225.342.7303



___
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: Hwy Shields

2011-06-01 Thread Johan Forsman
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
> boun...@lists.osgeo.org] On Behalf Of Fawcett, David (MPCA)
> Sent: Wednesday, June 01, 2011 10:50 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Hwy Shields
> 
> Does anyone have a highway shield example map file and symbol set that
> they are willing to share?
> 
> Thanks,
> 
> David.
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

I did this as one of the first "advanced" mapfile projects when I started with 
MapServer, so it probably is both inelegant and incorrect, but I used a line 
layer for the roads and an annotation layer for the labels. I don't recall 
precisely the reason I did an annotation layer, but it may have had to do with 
my preferred positioning of the labels.

Here's an partial extract from the symbol set and mapfile:

# Highway shields
SYMBOL
NAME 'interstate'
TYPE pixmap
IMAGE "interstate.png"
END 

LAYER   # Freeways at small scale
DATA 'webmaps_LDOTD_2007_hwys'
name freeways_small 
type line
OPACITY 100
status on
labelitem "HWY_NUM"
LABELCACHE on
classitem "SHIELD"
MINSCALEDENOM   250001
class 
EXPRESSION "I"
NAME "Interstate highways"
style
color 0 92 230 
width 3  
antialias true
end
style
color 254 254 254
width 1 
antialias true
end
end #class
end #layer freeways_small

LAYER   # shields and labels for freeways at small scale
DATA 'webmaps_LDOTD_2007_hwys'
name freeways_small_labels
type annotation
OPACITY 100
status on
labelitem "HWY_NUM"
LABELCACHE on
classitem "SHIELD"
MINSCALEDENOM   250001
class 
EXPRESSION "I"
style
SYMBOL 'interstate'
end
label
type truetype
antialias true
font arial
size 8
position cc
ANGLE 0
color 254 254 254
partials false
MINDISTANCE 200
MINFEATURESIZE auto
end #label
end #class
end #layer freeways_small_labels

Hope that helps get you started.

Take care,

Johan Forsman
Geologist
Safe Drinking Water Program
Louisiana Department of Health and Hospitals
Telephone: 225.342.7309
Telefax: 225.342.7303



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


[mapserver-users] Geom Field with PostGIS

2011-06-01 Thread B. Heath Robinson
I am using tilecache with mapserver to serve map tiles.  I seem to be having a 
problem because my geometry column is not named 'geom'.  Below is my mapfile 
exerpt and the error message.  You can see the the SQL that is built is not 
correct.  I did some digging in the source code and found the lines I think are 
the culprit.  I have also included these below.


Mapfile Exerpt
CONNECTIONTYPE postgis
CONNECTION "dbname='gisdb' host='localhost' port=5432 user='webuser' 
password='*' sslmode=disable"
DATA 'shape FROM "maps_parcel" USING UNIQUE id USING srid=4326'


ERROR
An error occurred: msDrawMap(): Image handling error. Failed to draw layer 
named 'parcels'.
msPostGISLayerWhichShapes(): Query error. Error (ERROR:  column "shape" does 
not exist
LINE 1: ..."color",encode(AsBinary(force_collection(force_2d("shape")),...
 ^
) executing query: select 
"id","color",encode(AsBinary(force_collection(force_2d("shape")),'NDR'),'hex') 
as geom,"id" from "maps_parcel" where shape && 
GeomFromText('POLYGON((-97.4212539097114 31.0482371048694,-97.4212539097114 
31.0529247835391,-97.4157822026614 31.0529247835391,-97.4157822026614 
31.0482371048694,-97.4212539097114 31.0482371048694))',4326)
  File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", 
line 303, in wsgiHandler
format, image = service.dispatchRequest( fields, path_info, req_method, 
host )
  File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", 
line 208, in dispatchRequest
return self.renderTile(tile, params.has_key('FORCE'))
  File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", 
line 138, in renderTile
data = layer.render(tile, force=force)
  File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Layer.py", 
line 444, in render
return self.renderTile(tile)
  File 
"/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Layers/MapServer.py",
 line 51, in renderTile
mapImage = wms.draw()
  File "/srv/ve/two-release/lib/python2.6/site-packages/mapscript.py", line 
1466, in draw
def draw(*args): return _mapscript.mapObj_draw(*args)

Links are to trac source code
1612 - from msPostGISBuildSQLItems
It aliases all geom columns to 'geom'



1861 -  from msPostGISBuildSQLWhere
It builds the BBOX part of the where clause with the geom column from the 
config file



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


Re: [mapserver-users] Hwy Shields

2011-06-01 Thread Brent Fraser

David,

  While the below example uses a very simple symbol (a circle), it may 
get you started:


  #Circle symbol
  SYMBOL
NAME 'CIRCLE'
TYPE ellipse
FILLED true
POINTS
  1 1
END
  END

  LAYER # Roads
NAME 'Roads'
TYPE LINE
 :
CLASS
  LABEL
STYLE
SYMBOL 'CIRCLE'
SIZE 8
OUTLINECOLOR 0 0 0
COLOR 255 255 255
END
FONT "trebuc"
TYPE TRUETYPE
POSITION CC
ALIGN CENTER
WRAP ' '
SIZE 5
BUFFER 1
COLOR 0 0 0
#OUTLINECOLOR 0 0 0
ANGLE 0
PARTIALS FALSE
ANTIALIAS TRUE
MINDISTANCE 250
MINFEATURESIZE 10
END # Label
 END #Class
END #Layer


Best Regards,
Brent Fraser


On 6/1/2011 9:50 AM, Fawcett, David (MPCA) wrote:

Does anyone have a highway shield example map file and symbol set that they are 
willing to share?

Thanks,

David.

___
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] Hwy Shields

2011-06-01 Thread Jeff McKenna

On 11-06-01 12:50 PM, Fawcett, David (MPCA) wrote:

Does anyone have a highway shield example map file and symbol set that they are 
willing to share?


Hi David,

I recommend that you try the OSM/MapServer steps, and in the end you'll 
have a nice mapfile with all of the tricks (such as shields) running 
locally: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData


(as you travel down that path, feel free to edit that wiki page with 
your feedback for everyone, thanks!)


-jeff


--
Jeff McKenna
MapServer 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


[mapserver-users] Hwy Shields

2011-06-01 Thread Fawcett, David (MPCA)
Does anyone have a highway shield example map file and symbol set that they are 
willing to share?

Thanks, 

David.

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


Re: [mapserver-users] font support problem

2011-06-01 Thread William Kyngesburye
Freetype is found.  Iconv is found.  GD is found.  gdImageStringFT test fails 
because it doesn't try with iconv.

I do see a test for if GD needs iconv in configure, but for some reason it's 
not getting to this test for me...  I'll look into it more later this evening 
when I have time.

On Jun 1, 2011, at 10:24 AM, Stephen Woodbridge wrote:

> When you get a chance please write a bug against this issue. It seems that 
> there are a few things that need to be fixed:
> 
> 1. error message is wrong and misleading
> 2. configure is not finding the libraries
> 3. configure is not detecting a missing library (iconv) and disabling 
> freetype if the missing lib is required.
> 4. freetype without iconv should be ok unless this is a new requirement
> 5. doc needs to be updated as required
> 
> Also I would think the a missing -liconv should cause a fatal link error in 
> make.
> 
> Thanks,
>  -Steve
> 
> On 6/1/2011 10:11 AM, William Kyngesburye wrote:
>> Freetype is not the problem.  I already figured it out - my gd font
>> support needs -liconv and configure is not adding it to the gd test.
>> It looks like the mapserver configure doesn't get the libs from the
>> gdlib-config script but makes a common guess.
>> 
>> I thought I had this working in the past, but it's possible I only
>> recently added iconv support to my gd. I forget.
>> 
>> On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote:
>> 
>>> ./configure can not find your truetype font includes and/or libs.
>>> You need to make sure you have the truetype package installed on
>>> Linux this is called something like freetype2. On my debian
>>> system:
>>> 
>>> ls /usr/include/freetype2/freetype/ configftcid.h
>>> ftimage.h   ftmodapi.h  ftsnames.h  ftxf86.h freetype.h
>>> fterrdef.h  ftincrem.h  ftmoderr.h  ftstroke.h  t1tables.h ftbbox.h
>>> fterrors.h  ftlcdfil.h  ftotval.h   ftsynth.h   ttnameid.h ftbdf.h
>>> ftgasp.hftlist.hftoutln.h   ftsystem.h  tttables.h
>>> ftbitmap.hftglyph.h   ftlzw.h ftpfr.h fttrigon.h
>>> tttags.h ftcache.h ftgxval.h   ftmac.h ftrender.h
>>> fttypes.h   ttunpat.h ftchapters.h  ftgzip.hftmm.h
>>> ftsizes.h   ftwinfnt.h
>>> 
>>> 
>>> ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a
>>> /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la
>>> /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so
>>> 
>>> 
>>> -Steve W
>>> 
>>> On 6/1/2011 9:44 AM, William Kyngesburye wrote:
 It would help if I turned off the find words option ;)  There it
 is in configure, I just need to figure out why it was disabled.
 
 On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote:
 
> Something has killed my font support in MapServer in the
> compilation stage.
> 
> I'm getting a "Keyword FONT is not valid without TrueType font
> support" error at runtime.  It looks like font support is
> conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure
> out where this is set in configuration.  I don't see those in
> the GD sources either.
> 
> - William Kyngesburye
> http://www.kyngchaos.com/
> 
> "Time is an illusion - lunchtime doubly so."
> 
> - Ford Prefect
> 
> 
> ___ mapserver-users
> mailing list mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 - William Kyngesburye
 http://www.kyngchaos.com/
 
 "Time is an illusion - lunchtime doubly so."
 
 - Ford Prefect
 
 
 ___ 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
>> 
>> - William Kyngesburye
>> http://www.kyngchaos.com/
>> 
>> The equator is so long, it could encircle the earth completely once.
>> 
> 

-
William Kyngesburye 
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited 
to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy


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


Re: [mapserver-users] font support problem

2011-06-01 Thread Stephen Woodbridge
When you get a chance please write a bug against this issue. It seems 
that there are a few things that need to be fixed:


1. error message is wrong and misleading
2. configure is not finding the libraries
3. configure is not detecting a missing library (iconv) and disabling 
freetype if the missing lib is required.

4. freetype without iconv should be ok unless this is a new requirement
5. doc needs to be updated as required

Also I would think the a missing -liconv should cause a fatal link error 
in make.


Thanks,
  -Steve

On 6/1/2011 10:11 AM, William Kyngesburye wrote:

Freetype is not the problem.  I already figured it out - my gd font
support needs -liconv and configure is not adding it to the gd test.
It looks like the mapserver configure doesn't get the libs from the
gdlib-config script but makes a common guess.

I thought I had this working in the past, but it's possible I only
recently added iconv support to my gd. I forget.

On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote:


./configure can not find your truetype font includes and/or libs.
You need to make sure you have the truetype package installed on
Linux this is called something like freetype2. On my debian
system:

ls /usr/include/freetype2/freetype/ configftcid.h
ftimage.h   ftmodapi.h  ftsnames.h  ftxf86.h freetype.h
fterrdef.h  ftincrem.h  ftmoderr.h  ftstroke.h  t1tables.h ftbbox.h
fterrors.h  ftlcdfil.h  ftotval.h   ftsynth.h   ttnameid.h ftbdf.h
ftgasp.hftlist.hftoutln.h   ftsystem.h  tttables.h
ftbitmap.hftglyph.h   ftlzw.h ftpfr.h fttrigon.h
tttags.h ftcache.h ftgxval.h   ftmac.h ftrender.h
fttypes.h   ttunpat.h ftchapters.h  ftgzip.hftmm.h
ftsizes.h   ftwinfnt.h


ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a
/usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la
/usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so


-Steve W

On 6/1/2011 9:44 AM, William Kyngesburye wrote:

It would help if I turned off the find words option ;)  There it
is in configure, I just need to figure out why it was disabled.

On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote:


Something has killed my font support in MapServer in the
compilation stage.

I'm getting a "Keyword FONT is not valid without TrueType font
support" error at runtime.  It looks like font support is
conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure
out where this is set in configuration.  I don't see those in
the GD sources either.

- William Kyngesburye
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


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


- William Kyngesburye
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


___ 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


- William Kyngesburye
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.



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


Re: [mapserver-users] SLD with filter

2011-06-01 Thread Daniel Degasperi
Ok, ticket (with test data) created at 
http://trac.osgeo.org/mapserver/ticket/3902


Am 31/05/2011 19:35, schrieb Yewondwossen Assefa:

Daniel,

 I just did a quick test with 5.6.x (svn) and a postgis layer using 
the metadata but could not reproduce a crash. If it is something I can 
reproduce using some test map/data/filter, I will investigate. You can 
either send them to me or attache it to a trac bug.


best regards

On 31/05/2011 10:25 AM, Daniel Degasperi wrote:
Ok, with the metadata tag described below mapserver does not 
reprocude this error, but it throws a segfault.

I've put the coredump online: http://www.r3-gis.com/core.333.gz

Best regards,
Daniel

Am 31/05/2011 14:37, schrieb Yewondwossen Assefa:

Hi Daniel,

 You could possibly try to set on the layer a metadata for the type 
of your field to force it to string: something like

  metadata
 "ows_localita_type" "Character"
 ...
end

regards,

On 31/05/2011 8:26 AM, Daniel Degasperi wrote:

Hi,
I've a problem with following filter:

http://www.opengis.net/ogc";>

localita
1.102



Output:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ows="http://www.opengis.net/ows"; version="1.1.0" 
language="en-US" xsi:schemaLocation="http://www.opengis.net/ows 
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd";>


msWFSGetFeature(): WFS server error. 
FLTApplyFilterToLayer() failed
msPostGISLayerWhichShapes(): Query error. Error (ERROR:  operator 
does not exist: text = numeric
LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 
1.102) )

 ^
HINT:  No operator matches the given name and argument type(s). You 
might need to add explicit type casts.
) executing query: select 
"gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') 
as geom,"gc_objid" from (SELECT  __data__.di_id as 
gc_objid,__data__.the_geom, 
__data__.di_id,__data__.localita,__data__.di_name_1 FROM 
geo.district_area AS __data__) AS foo where the_geom && 
GeomFromText('POLYGON((-393764.596966392 
4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 
5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 
4130435.36164853))',32632) and ( (localita= 1.102) 
)




It seems that the value 1.102 is not quoted. Should I add the 
attribute xs:type="string" to the literal node or use the 
PropertyIsLike condition?


I'm using MapServer 5.6.6

Best regards,
Daniel














--
Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] font support problem

2011-06-01 Thread William Kyngesburye
Freetype is not the problem.  I already figured it out - my gd font support 
needs -liconv and configure is not adding it to the gd test.  It looks like the 
mapserver configure doesn't get the libs from the gdlib-config script but makes 
a common guess.

I thought I had this working in the past, but it's possible I only recently 
added iconv support to my gd. I forget.

On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote:

> ./configure can not find your truetype font includes and/or libs. You need to 
> make sure you have the truetype package installed on Linux this is called 
> something like freetype2. On my debian system:
> 
> ls /usr/include/freetype2/freetype/
> configftcid.h ftimage.h   ftmodapi.h  ftsnames.h  ftxf86.h
> freetype.hfterrdef.h  ftincrem.h  ftmoderr.h  ftstroke.h  t1tables.h
> ftbbox.h  fterrors.h  ftlcdfil.h  ftotval.h   ftsynth.h   ttnameid.h
> ftbdf.h   ftgasp.hftlist.hftoutln.h   ftsystem.h  tttables.h
> ftbitmap.hftglyph.h   ftlzw.h ftpfr.h fttrigon.h  tttags.h
> ftcache.h ftgxval.h   ftmac.h ftrender.h  fttypes.h   ttunpat.h
> ftchapters.h  ftgzip.hftmm.h  ftsizes.h   ftwinfnt.h
> 
> 
> ls /usr/lib/libfreetype.*
> /usr/lib/libfreetype.a   /usr/lib/libfreetype.so.6
> /usr/lib/libfreetype.la  /usr/lib/libfreetype.so.6.3.18
> /usr/lib/libfreetype.so
> 
> 
> -Steve W
> 
> On 6/1/2011 9:44 AM, William Kyngesburye wrote:
>> It would help if I turned off the find words option ;)  There it is in 
>> configure, I just need to figure out why it was disabled.
>> 
>> On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote:
>> 
>>> Something has killed my font support in MapServer in the compilation stage.
>>> 
>>> I'm getting a "Keyword FONT is not valid without TrueType font support" 
>>> error at runtime.  It looks like font support is conditionalized on 
>>> USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in 
>>> configuration.  I don't see those in the GD sources either.
>>> 
>>> -
>>> William Kyngesburye
>>> http://www.kyngchaos.com/
>>> 
>>> "Time is an illusion - lunchtime doubly so."
>>> 
>>> - Ford Prefect
>>> 
>>> 
>>> ___
>>> mapserver-users mailing list
>>> mapserver-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> 
>> -
>> William Kyngesburye
>> http://www.kyngchaos.com/
>> 
>> "Time is an illusion - lunchtime doubly so."
>> 
>> - Ford Prefect
>> 
>> 
>> ___
>> 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

-
William Kyngesburye 
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.

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


Re: [mapserver-users] font support problem

2011-06-01 Thread Stephen Woodbridge
./configure can not find your truetype font includes and/or libs. You 
need to make sure you have the truetype package installed on Linux this 
is called something like freetype2. On my debian system:


ls /usr/include/freetype2/freetype/
configftcid.h ftimage.h   ftmodapi.h  ftsnames.h  ftxf86.h
freetype.hfterrdef.h  ftincrem.h  ftmoderr.h  ftstroke.h  t1tables.h
ftbbox.h  fterrors.h  ftlcdfil.h  ftotval.h   ftsynth.h   ttnameid.h
ftbdf.h   ftgasp.hftlist.hftoutln.h   ftsystem.h  tttables.h
ftbitmap.hftglyph.h   ftlzw.h ftpfr.h fttrigon.h  tttags.h
ftcache.h ftgxval.h   ftmac.h ftrender.h  fttypes.h   ttunpat.h
ftchapters.h  ftgzip.hftmm.h  ftsizes.h   ftwinfnt.h


ls /usr/lib/libfreetype.*
/usr/lib/libfreetype.a   /usr/lib/libfreetype.so.6
/usr/lib/libfreetype.la  /usr/lib/libfreetype.so.6.3.18
/usr/lib/libfreetype.so


-Steve W

On 6/1/2011 9:44 AM, William Kyngesburye wrote:

It would help if I turned off the find words option ;)  There it is in 
configure, I just need to figure out why it was disabled.

On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote:


Something has killed my font support in MapServer in the compilation stage.

I'm getting a "Keyword FONT is not valid without TrueType font support" error 
at runtime.  It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, 
but I can't figure out where this is set in configuration.  I don't see those in the GD 
sources either.

-
William Kyngesburye
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


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


-
William Kyngesburye
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


___
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] font support problem

2011-06-01 Thread William Kyngesburye
It would help if I turned off the find words option ;)  There it is in 
configure, I just need to figure out why it was disabled.

On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote:

> Something has killed my font support in MapServer in the compilation stage.
> 
> I'm getting a "Keyword FONT is not valid without TrueType font support" error 
> at runtime.  It looks like font support is conditionalized on USE_GD_TTF or 
> USE_GD_FT, but I can't figure out where this is set in configuration.  I 
> don't see those in the GD sources either.
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> "Time is an illusion - lunchtime doubly so."
> 
> - Ford Prefect
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-
William Kyngesburye 
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


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


[mapserver-users] font support problem

2011-06-01 Thread William Kyngesburye
Something has killed my font support in MapServer in the compilation stage.

I'm getting a "Keyword FONT is not valid without TrueType font support" error 
at runtime.  It looks like font support is conditionalized on USE_GD_TTF or 
USE_GD_FT, but I can't figure out where this is set in configuration.  I don't 
see those in the GD sources either.

-
William Kyngesburye 
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


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


Re: [mapserver-users] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread Brent Fraser

There's even a ticket:

http://trac.osgeo.org/mapserver/ticket/3448

Best Regards,
Brent Fraser


On 6/1/2011 3:18 AM, prab.raja wrote:

OK. Thanks!

On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] 
<[hidden email] > wrote:


ok. the docs are wrong. WIDTH binding is available since mapserver
5.4.0.

On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden email]
> wrote:

> Below is the mapserv.exe -v output.
> It shows MapServer version 5.2.1 only.
> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
> OUTPUT=PDF
>  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICO
> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI
> SUP
> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG
INPUT=POSTGIS
> INPUT=OGR
>  INPUT=GDAL INPUT=SHAPEFILE
> On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org]
<[hidden

> email]> wrote:
>>
>> then make sure you are actually using 5.2.1 and not an older
version
>>
>> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
>> > yes.
>> > Below is the style copied from my Map file.
>> > STYLE
>> > COLOR 0 140 70
>> > WIDTH [gid]
>> >  END
>> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via
OSGeo.org] <[hidden
>> > email]> wrote:
>> >>
>> >> are you using the exact syntax of your first example, i.e.
"WIDTH
>> >> [gid]" ?
>> >>
>> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> >> > But when I tried this mapserver gives error message as
"getInteger():
>> >> > Symbol
>> >> > definition error. Parsing error near (gid)".
>> >> > I am using MapServer version 5.2.1.
>> >> >
>> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org]
>> >> > <[hidden
>> >> > email]> wrote:
>> >> >>
>> >> >> According to > >> >> href="> >> >> href="http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">> >> >> href="http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html
>

>> >> >> that should be possible.
>> >> >>
>> >> >> Håvard
>> >> >>
>> >> >> On 6/1/2011 8:09 AM, prab.raja wrote:
>> >> >> > Hi,
>> >> >> > I would like to know if it's posible to draw line layer
with
>> >> >> > variable
>> >> >> > width
>> >> >> > from database table.
>> >> >> >
>> >> >> > Something like this?
>> >> >> >
>> >> >> > LAYER
>> >> >> >NAME line_layer
>> >> >> >CONNECTIONTYPE postgis
>> >> >> >CONNECTION "user=postgres password=**
dbname=shpdb
>> >> >> > host=localhost
>> >> >> > port=5432"
>> >> >> >DATA "the_geom FROM  (SELECT gid, the_geom FROM
line_layer)
>> >> >> >   AS SUBQUERY using unique gid"
>> >> >> >PROCESSING "CLOSE_CONNECTION=DEFER"
>> >> >> >TYPE line
>> >> >> >OPACITY 100
>> >> >> >STATUS Off
>> >> >> >CLASS
>> >> >> >   STYLE
>> >> >> >  COLOR 0 140 70
>> >> >> >  WIDTH [gid]
>> >> >> >   END
>> >> >> >END
>> >> >> > END
>> >> >> >
>> >> >> > --
>> >> >> > View this message in context:
>> >> >> >
>> >> >> >
>> >> >> >

http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
>> >> >> > Sent from the Mapserver - User mailing list archive at
Nabble.com.

>> >> >> > ___
>> >> >> > mapserver-users mailing list
>> >> >> > [hidden email]
>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >> >
>> >> >> --
>> >> >> Håvard Tveite
>> >> >> Department of Mathematical Sciences and Technology, UMB
>> >> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
>> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>> >> >> ___
>> >> >> mapserver-users mailing list
>> >> >> [hidden email]
>> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >>
>> >> >>
>> >> >> 
>> >> >> If you reply to this email, your message will be added to
the
>> >> >> discussion
>> >> >> below:
>> >> >>
>> >> >>
>> >> >>
>> >> >

Re: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread thomas bonfort
looking at the code, it seems the only reason on unix you'd get that
message is because the curl library is too old. On ms4w it might be
because the maintainer has not set the USE_CURLOPT_PROXYAUTH #define.

--
thomas

On Wed, Jun 1, 2011 at 11:26, sulu  wrote:
> Hi Jukka.
>
> Thanks for answering.
>
> If i use only wms_proxy_host and wms_proxy_port parameter in the
> Layer/Metadata i get a plain old 407 because of missing credentials.
> But if wms_proxy_password comes into use the "CURLOPT_PROXYAUTH not
> supported"-error shows up.
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426206.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] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
Hi Jukka.

Thanks for answering.

If i use only wms_proxy_host and wms_proxy_port parameter in the
Layer/Metadata i get a plain old 407 because of missing credentials.
But if wms_proxy_password comes into use the "CURLOPT_PROXYAUTH not
supported"-error shows up.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426206.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] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread prab.raja
OK. Thanks!

On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426142-1064851714-338...@n2.nabble.com> wrote:

> ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0.
>
> On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden 
> email]>
> wrote:
>
> > Below is the mapserv.exe -v output.
> > It shows MapServer version 5.2.1 only.
> > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=PDF
> >  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> > SUPPORTS=ICO
> > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> > SUPPORTS=WFS_SERVER
> > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
> SUPPORTS=FASTCGI
> > SUP
> > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
> > INPUT=OGR
> >  INPUT=GDAL INPUT=SHAPEFILE
> > On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden
> > email]> wrote:
> >>
> >> then make sure you are actually using 5.2.1 and not an older version
> >>
> >> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
> >> > yes.
> >> > Below is the style copied from my Map file.
> >> > STYLE
> >> > COLOR 0 140 70
> >> > WIDTH [gid]
> >> >  END
> >> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org]
> <[hidden
> >> > email]> wrote:
> >> >>
> >> >> are you using the exact syntax of your first example, i.e. "WIDTH
> >> >> [gid]" ?
> >> >>
> >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
> >> >> > But when I tried this mapserver gives error message as
> "getInteger():
> >> >> > Symbol
> >> >> > definition error. Parsing error near (gid)".
> >> >> > I am using MapServer version 5.2.1.
> >> >> >
> >> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org]
> >> >> > <[hidden
> >> >> > email]> wrote:
> >> >> >>
> >> >> >> According to  >> >> >> href=" >> >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html "> >> >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html >
> >> >> >> that should be possible.
> >> >> >>
> >> >> >> Håvard
> >> >> >>
> >> >> >> On 6/1/2011 8:09 AM, prab.raja wrote:
> >> >> >> > Hi,
> >> >> >> > I would like to know if it's posible to draw line layer with
> >> >> >> > variable
> >> >> >> > width
> >> >> >> > from database table.
> >> >> >> >
> >> >> >> > Something like this?
> >> >> >> >
> >> >> >> > LAYER
> >> >> >> >NAME line_layer
> >> >> >> >CONNECTIONTYPE postgis
> >> >> >> >CONNECTION "user=postgres password=** dbname=shpdb
> >> >> >> > host=localhost
> >> >> >> > port=5432"
> >> >> >> >DATA "the_geom FROM  (SELECT gid, the_geom FROM
> line_layer)
> >> >> >> >   AS SUBQUERY using unique gid"
> >> >> >> >PROCESSING "CLOSE_CONNECTION=DEFER"
> >> >> >> >TYPE line
> >> >> >> >OPACITY 100
> >> >> >> >STATUS Off
> >> >> >> >CLASS
> >> >> >> >   STYLE
> >> >> >> >  COLOR 0 140 70
> >> >> >> >  WIDTH [gid]
> >> >> >> >   END
> >> >> >> >END
> >> >> >> > END
> >> >> >> >
> >> >> >> > --
> >> >> >> > View this message in context:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
> >> >> >> > Sent from the Mapserver - User mailing list archive at
> Nabble.com.
> >> >> >> > ___
> >> >> >> > mapserver-users mailing list
> >> >> >> > [hidden email]
> >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >> >> >
> >> >> >> --
> >> >> >> Håvard Tveite
> >> >> >> Department of Mathematical Sciences and Technology, UMB
> >> >> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> >> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> >> >> >> ___
> >> >> >> mapserver-users mailing list
> >> >> >> [hidden email]
> >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >> >>
> >> >> >>
> >> >> >> 
> >> >> >> If you reply to this email, your message will be added to the
> >> >> >> discussion
> >> >> >> below:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
> >> >> >> To unsubscribe from Is it posible to substitute a value from table
>
> >> >> >> for
> >> >> >> width of line, click here.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Regards,
> >> >> > Prabu Raja
> >> >> >
> >> >> >
> >>

Re: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread Rahkonen Jukka
Hi, 

All I can say is that I am running MS4W 3.0.2 updated to use Mapserver
6.0 and I have these two lines in the LAYER-METADATA for setting the
proxy and it works for me.

"wms_proxy_host" "xxx.yyy.zzz"
"wms_proxy_port" "" 


-Jukka Rahkonen-
 
sulu wrote:

> 
> Update.
> 
> Am i doing something wrong here?
> 
> There is the same problem when i use the 
> ms4w-windows-mapserver (5.6.6)
> 
> It also complains about 
> CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up
> 
> Maybe there is something amiss in the mapefile.
> 
> "wms_proxy_auth_type" "ntlm"
> "wms_proxy_type" "http"
> "wms_proxy_host" "that_proxy_of_ours"
> "wms_proxy_port" "8080"
> "wms_proxy_username" "xxx"
> "wms_proxy_password" "yy"
> 
> 
> Cheers
> Andy
> 
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURL
> OPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421
746p6426115.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


Re: [mapserver-users] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread thomas bonfort
ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0.

On Wed, Jun 1, 2011 at 10:58, prab.raja  wrote:
> Below is the mapserv.exe -v output.
> It shows MapServer version 5.2.1 only.
> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF
>  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICO
> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
> SUP
> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR
>  INPUT=GDAL INPUT=SHAPEFILE
> On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden
> email]> wrote:
>>
>> then make sure you are actually using 5.2.1 and not an older version
>>
>> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
>> > yes.
>> > Below is the style copied from my Map file.
>> >         STYLE
>> >             COLOR 0 140 70
>> >             WIDTH [gid]
>> >          END
>> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
>> > email]> wrote:
>> >>
>> >> are you using the exact syntax of your first example, i.e. "WIDTH
>> >> [gid]" ?
>> >>
>> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> >> > But when I tried this mapserver gives error message as "getInteger():
>> >> > Symbol
>> >> > definition error. Parsing error near (gid)".
>> >> > I am using MapServer version 5.2.1.
>> >> >
>> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org]
>> >> > <[hidden
>> >> > email]> wrote:
>> >> >>
>> >> >> According to > >> >> href="> >> >> href="http://www.mapserver.org/mapfile/style.html ";>http://www.mapserver.org/mapfile/style.html ";>> >> >> href="http://www.mapserver.org/mapfile/style.html ";>http://www.mapserver.org/mapfile/style.html >
>> >> >> that should be possible.
>> >> >>
>> >> >> Håvard
>> >> >>
>> >> >> On 6/1/2011 8:09 AM, prab.raja wrote:
>> >> >> > Hi,
>> >> >> > I would like to know if it's posible to draw line layer with
>> >> >> > variable
>> >> >> > width
>> >> >> > from database table.
>> >> >> >
>> >> >> > Something like this?
>> >> >> >
>> >> >> > LAYER
>> >> >> >        NAME line_layer
>> >> >> >        CONNECTIONTYPE postgis
>> >> >> >        CONNECTION "user=postgres password=** dbname=shpdb
>> >> >> > host=localhost
>> >> >> > port=5432"
>> >> >> >        DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
>> >> >> >           AS SUBQUERY using unique gid"
>> >> >> >        PROCESSING "CLOSE_CONNECTION=DEFER"
>> >> >> >        TYPE line
>> >> >> >        OPACITY 100
>> >> >> >        STATUS Off
>> >> >> >        CLASS
>> >> >> >           STYLE
>> >> >> >              COLOR 0 140 70
>> >> >> >              WIDTH [gid]
>> >> >> >           END
>> >> >> >        END
>> >> >> >     END
>> >> >> >
>> >> >> > --
>> >> >> > View this message in context:
>> >> >> >
>> >> >> >
>> >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
>> >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >> >> > ___
>> >> >> > mapserver-users mailing list
>> >> >> > [hidden email]
>> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >> >
>> >> >> --
>> >> >> Håvard Tveite
>> >> >> Department of Mathematical Sciences and Technology, UMB
>> >> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
>> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>> >> >> ___
>> >> >> mapserver-users mailing list
>> >> >> [hidden email]
>> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >>
>> >> >>
>> >> >> 
>> >> >> If you reply to this email, your message will be added to the
>> >> >> discussion
>> >> >> below:
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
>> >> >> To unsubscribe from Is it posible to substitute a value from table
>> >> >> for
>> >> >> width of line, click here.
>> >> >
>> >> >
>> >> > --
>> >> > Regards,
>> >> > Prabu Raja
>> >> >
>> >> >
>> >> > 
>> >> > View this message in context: Re: Is it posible to substitute a value
>> >> > from
>> >> > table for width of line
>> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >> >
>> >> > ___
>> >> > mapserver-users mailing list
>> >> > [hidden email]
>> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >
>> >> >
>> >> ___
>> >> mapserver-users mailing list
>> >> [hidden email]
>> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >>
>> >>
>> >> 

[mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
That sould not be the problem.

On the centos-box we have:
yum list | grep -i curl
curl.i386  7.15.5-9.el5_6.2   
installed
curl.x86_647.15.5-9.el5_6.2   
installed
curl-devel.i3867.15.5-9.el5_6.2   
installed
curl-devel.x86_64  7.15.5-9.el5_6.2   
installed


I cant tell about ms4w-mapserver. I just installed the binary.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426136.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] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread prab.raja
Below is the mapserv.exe -v output.

It shows MapServer version 5.2.1 only.

MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426114-1083275088-338...@n2.nabble.com> wrote:

> then make sure you are actually using 5.2.1 and not an older version
>
> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden 
> email]>
> wrote:
>
> > yes.
> > Below is the style copied from my Map file.
> > STYLE
> > COLOR 0 140 70
> > WIDTH [gid]
> >  END
> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
> > email]> wrote:
> >>
> >> are you using the exact syntax of your first example, i.e. "WIDTH [gid]"
> ?
> >>
> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
> >> > But when I tried this mapserver gives error message as "getInteger():
> >> > Symbol
> >> > definition error. Parsing error near (gid)".
> >> > I am using MapServer version 5.2.1.
> >> >
> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden
>
> >> > email]> wrote:
> >> >>
> >> >> According to  >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html >
> >> >> that should be possible.
> >> >>
> >> >> Håvard
> >> >>
> >> >> On 6/1/2011 8:09 AM, prab.raja wrote:
> >> >> > Hi,
> >> >> > I would like to know if it's posible to draw line layer with
> variable
> >> >> > width
> >> >> > from database table.
> >> >> >
> >> >> > Something like this?
> >> >> >
> >> >> > LAYER
> >> >> >NAME line_layer
> >> >> >CONNECTIONTYPE postgis
> >> >> >CONNECTION "user=postgres password=** dbname=shpdb
> >> >> > host=localhost
> >> >> > port=5432"
> >> >> >DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
> >> >> >   AS SUBQUERY using unique gid"
> >> >> >PROCESSING "CLOSE_CONNECTION=DEFER"
> >> >> >TYPE line
> >> >> >OPACITY 100
> >> >> >STATUS Off
> >> >> >CLASS
> >> >> >   STYLE
> >> >> >  COLOR 0 140 70
> >> >> >  WIDTH [gid]
> >> >> >   END
> >> >> >END
> >> >> > END
> >> >> >
> >> >> > --
> >> >> > View this message in context:
> >> >> >
> >> >> >
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
> >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >> >> > ___
> >> >> > mapserver-users mailing list
> >> >> > [hidden email]
> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >> >
> >> >> --
> >> >> Håvard Tveite
> >> >> Department of Mathematical Sciences and Technology, UMB
> >> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> >> >> ___
> >> >> mapserver-users mailing list
> >> >> [hidden email]
> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >>
> >> >>
> >> >> 
> >> >> If you reply to this email, your message will be added to the
> >> >> discussion
> >> >> below:
> >> >>
> >> >>
> >> >>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
> >> >> To unsubscribe from Is it posible to substitute a value from table
> for
> >> >> width of line, click here.
> >> >
> >> >
> >> > --
> >> > Regards,
> >> > Prabu Raja
> >> >
> >> >
> >> > 
> >> > View this message in context: Re: Is it posible to substitute a value
> >> > from
> >> > table for width of line
> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >> >
> >> > ___
> >> > mapserver-users mailing list
> >> > [hidden email]
> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >
> >> >
> >> ___
> >> mapserver-users mailing list
> >> [hidden email]
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>
> >>
> >> 
> >> If you reply to this email, your message will be added to the discussion
>
> >> below:
> >>
> >>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html
> >> T

Re: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread thomas bonfort
first check that comes to mind: is your curl version > to  7.10.7 ?

On Wed, Jun 1, 2011 at 10:55, sulu  wrote:
> Update.
>
> Am i doing something wrong here?
>
> There is the same problem when i use the ms4w-windows-mapserver (5.6.6)
>
> It also complains about
> CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up
>
> Maybe there is something amiss in the mapefile.
> 
>                        "wms_proxy_auth_type" "ntlm"
>                        "wms_proxy_type" "http"
>                        "wms_proxy_host" "that_proxy_of_ours"
>                        "wms_proxy_port" "8080"
>                        "wms_proxy_username" "xxx"
>                        "wms_proxy_password" "yy"
> 
>
> Cheers
> Andy
>
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426115.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] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
Update.

Am i doing something wrong here?

There is the same problem when i use the ms4w-windows-mapserver (5.6.6)

It also complains about 
CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

Maybe there is something amiss in the mapefile.

"wms_proxy_auth_type" "ntlm"
"wms_proxy_type" "http"
"wms_proxy_host" "that_proxy_of_ours"
"wms_proxy_port" "8080"
"wms_proxy_username" "xxx"
"wms_proxy_password" "yy"


Cheers
Andy




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426115.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


Re: [mapserver-users] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread thomas bonfort
then make sure you are actually using 5.2.1 and not an older version

On Wed, Jun 1, 2011 at 10:47, prab.raja  wrote:
> yes.
> Below is the style copied from my Map file.
>         STYLE
>             COLOR 0 140 70
>             WIDTH [gid]
>          END
> On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
> email]> wrote:
>>
>> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?
>>
>> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> > But when I tried this mapserver gives error message as "getInteger():
>> > Symbol
>> > definition error. Parsing error near (gid)".
>> > I am using MapServer version 5.2.1.
>> >
>> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden
>> > email]> wrote:
>> >>
>> >> According to > >> href="http://www.mapserver.org/mapfile/style.html ";>http://www.mapserver.org/mapfile/style.html >
>> >> that should be possible.
>> >>
>> >> Håvard
>> >>
>> >> On 6/1/2011 8:09 AM, prab.raja wrote:
>> >> > Hi,
>> >> > I would like to know if it's posible to draw line layer with variable
>> >> > width
>> >> > from database table.
>> >> >
>> >> > Something like this?
>> >> >
>> >> > LAYER
>> >> >        NAME line_layer
>> >> >        CONNECTIONTYPE postgis
>> >> >        CONNECTION "user=postgres password=** dbname=shpdb
>> >> > host=localhost
>> >> > port=5432"
>> >> >        DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
>> >> >           AS SUBQUERY using unique gid"
>> >> >        PROCESSING "CLOSE_CONNECTION=DEFER"
>> >> >        TYPE line
>> >> >        OPACITY 100
>> >> >        STATUS Off
>> >> >        CLASS
>> >> >           STYLE
>> >> >              COLOR 0 140 70
>> >> >              WIDTH [gid]
>> >> >           END
>> >> >        END
>> >> >     END
>> >> >
>> >> > --
>> >> > View this message in context:
>> >> >
>> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
>> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >> > ___
>> >> > mapserver-users mailing list
>> >> > [hidden email]
>> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >
>> >> --
>> >> Håvard Tveite
>> >> Department of Mathematical Sciences and Technology, UMB
>> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
>> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>> >> ___
>> >> mapserver-users mailing list
>> >> [hidden email]
>> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >>
>> >>
>> >> 
>> >> If you reply to this email, your message will be added to the
>> >> discussion
>> >> below:
>> >>
>> >>
>> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
>> >> To unsubscribe from Is it posible to substitute a value from table for
>> >> width of line, click here.
>> >
>> >
>> > --
>> > Regards,
>> > Prabu Raja
>> >
>> >
>> > 
>> > View this message in context: Re: Is it posible to substitute a value
>> > from
>> > table for width of line
>> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >
>> > ___
>> > mapserver-users mailing list
>> > [hidden email]
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> >
>> ___
>> mapserver-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html
>> To unsubscribe from Is it posible to substitute a value from table for
>> width of line, click here.
>
>
> --
> Regards,
> Prabu Raja
>
>
> 
> View this message in context: Re: Is it posible to substitute a value from
> table for width of line
> 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] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread prab.raja
yes.
Below is the style copied from my Map file.
STYLE
COLOR 0 140 70
WIDTH [gid]
 END

On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426084-491165995-338...@n2.nabble.com> wrote:

> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?
>
> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden 
> email]>
> wrote:
>
> > But when I tried this mapserver gives error message as "getInteger():
> Symbol
> > definition error. Parsing error near (gid)".
> > I am using MapServer version 5.2.1.
> >
> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden
> > email]> wrote:
> >>
> >> According to http://www.mapserver.org/mapfile/style.html
>  ">http://www.mapserver.org/mapfile/style.html >
> >> that should be possible.
> >>
> >> Håvard
> >>
> >> On 6/1/2011 8:09 AM, prab.raja wrote:
> >> > Hi,
> >> > I would like to know if it's posible to draw line layer with variable
> >> > width
> >> > from database table.
> >> >
> >> > Something like this?
> >> >
> >> > LAYER
> >> >NAME line_layer
> >> >CONNECTIONTYPE postgis
> >> >CONNECTION "user=postgres password=** dbname=shpdb
> >> > host=localhost
> >> > port=5432"
> >> >DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
> >> >   AS SUBQUERY using unique gid"
> >> >PROCESSING "CLOSE_CONNECTION=DEFER"
> >> >TYPE line
> >> >OPACITY 100
> >> >STATUS Off
> >> >CLASS
> >> >   STYLE
> >> >  COLOR 0 140 70
> >> >  WIDTH [gid]
> >> >   END
> >> >END
> >> > END
> >> >
> >> > --
> >> > View this message in context:
> >> >
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >> > ___
> >> > mapserver-users mailing list
> >> > [hidden email]
> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >
> >> --
> >> Håvard Tveite
> >> Department of Mathematical Sciences and Technology, UMB
> >> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> >> ___
> >> mapserver-users mailing list
> >> [hidden email]
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>
> >>
> >> 
> >> If you reply to this email, your message will be added to the discussion
>
> >> below:
> >>
> >>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
> >> To unsubscribe from Is it posible to substitute a value from table for
> >> width of line, click here.
> >
> >
> > --
> > Regards,
> > Prabu Raja
> >
> >
> > 
> > View this message in context: Re: Is it posible to substitute a value
> from
> > table for width of line
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >
> > ___
> > mapserver-users mailing list
> > [hidden email] 
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> ___
> mapserver-users mailing list
> [hidden email] 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html
>  To unsubscribe from Is it posible to substitute a value from table for
> width of line, click 
> here.
>
>



-- 
Regards,
Prabu Raja


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426093.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


Re: [mapserver-users] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread thomas bonfort
are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?

On Wed, Jun 1, 2011 at 10:27, prab.raja  wrote:
> But when I tried this mapserver gives error message as "getInteger(): Symbol
> definition error. Parsing error near (gid)".
> I am using MapServer version 5.2.1.
>
> On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden
> email]> wrote:
>>
>> According to http://www.mapserver.org/mapfile/style.html >
>> that should be possible.
>>
>> Håvard
>>
>> On 6/1/2011 8:09 AM, prab.raja wrote:
>> > Hi,
>> > I would like to know if it's posible to draw line layer with variable
>> > width
>> > from database table.
>> >
>> > Something like this?
>> >
>> > LAYER
>> >        NAME line_layer
>> >        CONNECTIONTYPE postgis
>> >        CONNECTION "user=postgres password=** dbname=shpdb
>> > host=localhost
>> > port=5432"
>> >        DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
>> >           AS SUBQUERY using unique gid"
>> >        PROCESSING "CLOSE_CONNECTION=DEFER"
>> >        TYPE line
>> >        OPACITY 100
>> >        STATUS Off
>> >        CLASS
>> >           STYLE
>> >              COLOR 0 140 70
>> >              WIDTH [gid]
>> >           END
>> >        END
>> >     END
>> >
>> > --
>> > View this message in context:
>> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
>> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> > ___
>> > mapserver-users mailing list
>> > [hidden email]
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> --
>> Håvard Tveite
>> Department of Mathematical Sciences and Technology, UMB
>> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>> ___
>> mapserver-users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
>> To unsubscribe from Is it posible to substitute a value from table for
>> width of line, click here.
>
>
> --
> Regards,
> Prabu Raja
>
>
> 
> View this message in context: Re: Is it posible to substitute a value from
> table for width of line
> 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] Re: Is it posible to substitute a value from table for width of line

2011-06-01 Thread prab.raja
But when I tried this mapserver gives error message as *"getInteger():
Symbol definition error. Parsing error near (gid)". *

**I am using MapServer version 5.2.1.

On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <
ml-node+6426034-1909892157-338...@n2.nabble.com> wrote:

> According to http://www.mapserver.org/mapfile/style.html >
> that should be possible.
>
> Håvard
>
> On 6/1/2011 8:09 AM, prab.raja wrote:
>
> > Hi,
> > I would like to know if it's posible to draw line layer with variable
> width
> > from database table.
> >
> > Something like this?
> >
> > LAYER
> >NAME line_layer
> >CONNECTIONTYPE postgis
> >CONNECTION "user=postgres password=** dbname=shpdb
> host=localhost
> > port=5432"
> >DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
> >   AS SUBQUERY using unique gid"
> >PROCESSING "CLOSE_CONNECTION=DEFER"
> >TYPE line
> >OPACITY 100
> >STATUS Off
> >CLASS
> >   STYLE
> >  COLOR 0 140 70
> >  WIDTH [gid]
> >   END
> >END
> > END
> >
> > --
> > View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> > ___
> > mapserver-users mailing list
> > [hidden email] 
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> --
> Håvard Tveite
> Department of Mathematical Sciences and Technology, UMB
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> ___
> mapserver-users mailing list
> [hidden email] 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
>  To unsubscribe from Is it posible to substitute a value from table for
> width of line, click 
> here.
>
>



-- 
Regards,
Prabu Raja


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426054.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


Re: [mapserver-users] Is it posible to substitute a value from table for width of line

2011-06-01 Thread Havard Tveite

According to http://www.mapserver.org/mapfile/style.html >
that should be possible.

Håvard

On 6/1/2011 8:09 AM, prab.raja wrote:

Hi,
I would like to know if it's posible to draw line layer with variable width
from database table.

Something like this?

LAYER
   NAME line_layer
   CONNECTIONTYPE postgis
   CONNECTION "user=postgres password=** dbname=shpdb host=localhost
port=5432"
   DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
  AS SUBQUERY using unique gid"
   PROCESSING "CLOSE_CONNECTION=DEFER"
   TYPE line
   OPACITY 100
   STATUS Off
   CLASS
  STYLE
 COLOR 0 140 70
 WIDTH [gid]
  END
   END
END

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.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



--
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users