Re: [mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

2010-03-01 Thread Afroz K
Dear Mr. Tamas,
 I have upgraded my Mapserver from 5.4.2 to 5.6.1 . I still get the same
message.

Layer 'region1'
Content-type: application/vnd.ogc.se_xml

http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>





There are two notable changes after the upgrade

1. I no more get the error  "msMSSQL2008LayerGetShapeRandom bad shape: 1" in
the log file.
2. The query coming to the SQL server has changed a bit now , though it
gives me the correct result while running it on the query window.

SELECT convert(varchar(max), ID),convert(varchar(max),
name),convert(varchar(max),
flag1),convert(varchar(max), flag2),convert(varchar(max),
flag3),geom.STAsBinary(),convert(varchar(20), id) from region1
WHEREgeom.STIntersects(Geometry
::STGeomFromText('POLYGON((55.4843749962207
-4.59960928778372,56.5390624973545 -4.59960928778372,56.5390624973545
-3.54492178664993,55.4843749962207 -3.54492178664993,55.4843749962207
-4.59960928778372))',4326)) = 1

Thanks and regards
Afroz

On Mon, Mar 1, 2010 at 4:28 PM,  wrote:

> Dear Tamaz,
> My mapserver version is 5.4.2 .
> I ll upgrade and let u know the results.
>
> Thnx a lot
> Afroz
>
> Sent from my BlackBerry® smartphone from du
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] A Question of Group

2010-03-01 Thread James Card

On Mon, 01 Mar 2010 20:48:59 -0800, Bill Thoen  wrote:

I've got about about 30 layers that I'd like to display as a single  
layer, all in the same style, with only one entry in the legend for the  
group. I've tried using the 'GROUP' command in the mapfile, and while  
that does put them all under the same heading, each layer still shows as  
a separate entry in the legend.


Perhaps a tileindex would work? See "ogrtindex" at  
.


--
James Card
California CAD Solutions, Inc.
209-578-5580 - Voice
209-521-6493 - FAX
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] A Question of Group

2010-03-01 Thread Bill Thoen
I've got about about 30 layers that I'd like to display as a single 
layer, all in the same style, with only one entry in the legend for the 
group. I've tried using the 'GROUP' command in the mapfile, and while 
that does put them all under the same heading, each layer still shows as 
a separate entry in the legend.


I also tried commenting out the class name and wms group name, that 
didn't do it.


Is there a way to do this?

--
- Bill Thoen 
 GISnet - www.gisnet.com

 303-786-9961

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


Re: [mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

2010-03-01 Thread afrozk
Dear Tamaz, 
 My mapserver version is 5.4.2 .
I ll upgrade and let u know the results. 

Thnx a lot
Afroz 
Sent from my BlackBerry® smartphone from du

-Original Message-
From: Tamas Szekeres 
Date: Mon, 1 Mar 2010 13:02:56 
To: Afroz Kannancheri
Cc: 
Subject: Re: [mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

Hi,

I have an impression you encounter a problem which I've already fixed in
http://trac.osgeo.org/mapserver/ticket/3082.

Which version of the mapserver binaries have been used for testing?

I would suggest to download the latest from http://vbkto.dyndns.org/sdk/

Best regards,

Tamas



2010/3/1 Afroz Kannancheri 

> Hi,
>
>  Please find below the wkb hex string from the geom column
>
> 0xE610010407005839B4C87606504091ED7C3F35CE4140AC1C5A643B0F4F40C976BE9F1A9F40401F85EB51B86E4F40E7FBA9F1D20D3F405A643BDF4F5D5040DD24068195233F402B8716D9CEDF5040F2D24D6210B840409AB95040068195438BDC41405839B4C87606504091ED7C3F35CE4140010002010003
>
>
> Thanks
> Afroz
> On Mon, Mar 1, 2010 at 12:11 PM, Tamas Szekeres [via OSGeo.org] <[hidden
> email]
> > wrote:
>
>> Could you provide the query result (wkb hex string) displayed in the query
>> analyzer?
>>
>> Best regards,
>>
>> Tamas
>>
>>
>> 2010/3/1 Afroz Kannancheri <[hidden 
>> email]
>> >
>>
>>>
>>> Dear Tamaz,
>>>
>>> This is the query that comes to the Sqlserver when I click on the polygon
>>>
>>> select convert(varchar(max), ID),convert(varchar(max),
>>> name),convert(varchar(max), flag1),convert(varchar(max),
>>> flag2),convert(varchar(max), flag3),geom from region1 where id = 218
>>>
>>> Executing the above query directly gives the correct values from the
>>> table.
>>>
>>>
>>> Thanks and regards
>>> Afroz
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4652355.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
>>>
>>
>>
>>___
>> mapserver-users mailing list
>> [hidden 
>> email]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> --
> View this message in context: Re: Getfeatureinfo and MSsql 2008 
> server
>
> Sent from the Mapserver - User mailing list 
> archiveat 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: Getfeatureinfo and MSsql 2008 server

2010-03-01 Thread Tamas Szekeres
Hi,

I have an impression you encounter a problem which I've already fixed in
http://trac.osgeo.org/mapserver/ticket/3082.

Which version of the mapserver binaries have been used for testing?

I would suggest to download the latest from http://vbkto.dyndns.org/sdk/

Best regards,

Tamas



2010/3/1 Afroz Kannancheri 

> Hi,
>
>  Please find below the wkb hex string from the geom column
>
> 0xE610010407005839B4C87606504091ED7C3F35CE4140AC1C5A643B0F4F40C976BE9F1A9F40401F85EB51B86E4F40E7FBA9F1D20D3F405A643BDF4F5D5040DD24068195233F402B8716D9CEDF5040F2D24D6210B840409AB95040068195438BDC41405839B4C87606504091ED7C3F35CE4140010002010003
>
>
> Thanks
> Afroz
> On Mon, Mar 1, 2010 at 12:11 PM, Tamas Szekeres [via OSGeo.org] <[hidden
> email]
> > wrote:
>
>> Could you provide the query result (wkb hex string) displayed in the query
>> analyzer?
>>
>> Best regards,
>>
>> Tamas
>>
>>
>> 2010/3/1 Afroz Kannancheri <[hidden 
>> email]
>> >
>>
>>>
>>> Dear Tamaz,
>>>
>>> This is the query that comes to the Sqlserver when I click on the polygon
>>>
>>> select convert(varchar(max), ID),convert(varchar(max),
>>> name),convert(varchar(max), flag1),convert(varchar(max),
>>> flag2),convert(varchar(max), flag3),geom from region1 where id = 218
>>>
>>> Executing the above query directly gives the correct values from the
>>> table.
>>>
>>>
>>> Thanks and regards
>>> Afroz
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4652355.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
>>>
>>
>>
>> ___
>> mapserver-users mailing list
>> [hidden 
>> email]
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> --
> View this message in context: Re: Getfeatureinfo and MSsql 2008 
> server
>
> Sent from the Mapserver - User mailing list 
> archiveat 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] line width unit ignored after mapserver upgrade

2010-03-01 Thread thomas bonfort
if you're aiming for webmapping and screen display, you should
probably not be setting those to a value other than the default value.

resolution is used for high-res print output, eg passing from

http://server/mapserv/?[]width=300&height=300

to

http://server/mapserv/?[]map_resolution=288&width=1200&height=1200

to get a higher resolution image, but without affecting the actual
styles being used.

--
thomas

On Mon, Mar 1, 2010 at 10:58, Oliver Christen
 wrote:
> Hi Bart
>
> that was it!
>
> my map has RESOLUTION 254
> so adding a DEFRESOLUTION 254 solved the problem
>
> thank you very much
>
> best regards
> Oliver
>
> - Original Message -
> Hi,
>
> is your MAP->RESOLUTION different from 72? If so, set DEFRESOLUTION to your
> value as well.
>
> Best regards,
> Bart
>
> On Mar 1, 2010, at 9:32 AM, Oliver Christen wrote:
>
>> hello
>>
>> I recently upgraded mapserver from 5.4 to 5.6.1 and all my line style are
>> computed in meter (I believe) instead of pixel.
>>
>> here is the result im getting:
>> http://dev.camptocamp.com/~ochriste/wms_line.png
>>
>> here is my layer definition:
>>
>> LAYER
>> NAME "SitPrProjetConsLine"
>> GROUP "GrpConstruction"
>> METADATA
>>  "wms_title" "SitPrProjetConsLine"
>> END
>> TYPE LINE
>> DATA SIT_PR_Projet_cons_line
>> STATUS ON
>>
>> DEBUG 5
>>
>> MAXSCALE 10001
>>
>> SIZEUNITS pixels
>>
>> CLASS
>>  STYLE
>>    COLOR 0 0 255
>>    WIDTH 1
>>    MAXWIDTH 1
>>    MINWIDTH 1
>>  END
>> END
>> END
>>
>>
>> here is the query I do:
>>
>>
>> ?LAYERS=SitPrProjetConsLine&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=506263.99910144,143335.99917056,506391.99903232,143463.99910144&WIDTH=256&HEIGHT=256
>>
>> I want a line width of 1px
>> What am I doing wrong ?
>>
>> thanks in advance
>> Oliver
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] line width unit ignored after mapserver upgrade

2010-03-01 Thread Oliver Christen

Hi Bart

that was it!

my map has RESOLUTION 254
so adding a DEFRESOLUTION 254 solved the problem

thank you very much

best regards
Oliver

- Original Message - 


Hi,

is your MAP->RESOLUTION different from 72? If so, set DEFRESOLUTION to your 
value as well.


Best regards,
Bart

On Mar 1, 2010, at 9:32 AM, Oliver Christen wrote:


hello

I recently upgraded mapserver from 5.4 to 5.6.1 and all my line style are 
computed in meter (I believe) instead of pixel.


here is the result im getting:
http://dev.camptocamp.com/~ochriste/wms_line.png

here is my layer definition:

LAYER
NAME "SitPrProjetConsLine"
GROUP "GrpConstruction"
METADATA
  "wms_title" "SitPrProjetConsLine"
END
TYPE LINE
DATA SIT_PR_Projet_cons_line
STATUS ON

DEBUG 5

MAXSCALE 10001

SIZEUNITS pixels

CLASS
  STYLE
COLOR 0 0 255
WIDTH 1
MAXWIDTH 1
MINWIDTH 1
  END
END
END


here is the query I do:

?LAYERS=SitPrProjetConsLine&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=506263.99910144,143335.99917056,506391.99903232,143463.99910144&WIDTH=256&HEIGHT=256

I want a line width of 1px
What am I doing wrong ?

thanks in advance
Oliver
___
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] line width unit ignored after mapserver upgrade

2010-03-01 Thread Bart van den Eijnden
Hi,

is your MAP->RESOLUTION different from 72? If so, set DEFRESOLUTION to your 
value as well.

Best regards,
Bart

On Mar 1, 2010, at 9:32 AM, Oliver Christen wrote:

> hello
> 
> I recently upgraded mapserver from 5.4 to 5.6.1 and all my line style are 
> computed in meter (I believe) instead of pixel.
> 
> here is the result im getting:
> http://dev.camptocamp.com/~ochriste/wms_line.png
> 
> here is my layer definition:
> 
> LAYER
> NAME "SitPrProjetConsLine"
> GROUP "GrpConstruction"
> METADATA
>   "wms_title" "SitPrProjetConsLine"
> END
> TYPE LINE
> DATA SIT_PR_Projet_cons_line
> STATUS ON
> 
> DEBUG 5
> 
> MAXSCALE 10001
> 
> SIZEUNITS pixels
> 
> CLASS
>   STYLE
> COLOR 0 0 255
> WIDTH 1
> MAXWIDTH 1
> MINWIDTH 1
>   END
> END
> END
> 
> 
> here is the query I do:
> 
> ?LAYERS=SitPrProjetConsLine&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=506263.99910144,143335.99917056,506391.99903232,143463.99910144&WIDTH=256&HEIGHT=256
> 
> I want a line width of 1px
> What am I doing wrong ?
> 
> thanks in advance
> Oliver 
> ___
> 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] line width unit ignored after mapserver upgrade

2010-03-01 Thread Oliver Christen

hello

I recently upgraded mapserver from 5.4 to 5.6.1 and all my line style are 
computed in meter (I believe) instead of pixel.


here is the result im getting:
http://dev.camptocamp.com/~ochriste/wms_line.png

here is my layer definition:

LAYER
 NAME "SitPrProjetConsLine"
 GROUP "GrpConstruction"
 METADATA
   "wms_title" "SitPrProjetConsLine"
 END
 TYPE LINE
 DATA SIT_PR_Projet_cons_line
 STATUS ON

 DEBUG 5

 MAXSCALE 10001

 SIZEUNITS pixels

 CLASS
   STYLE
 COLOR 0 0 255
 WIDTH 1
 MAXWIDTH 1
 MINWIDTH 1
   END
 END
END


here is the query I do:

?LAYERS=SitPrProjetConsLine&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=506263.99910144,143335.99917056,506391.99903232,143463.99910144&WIDTH=256&HEIGHT=256

I want a line width of 1px
What am I doing wrong ?

thanks in advance
Oliver 


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


[mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

2010-03-01 Thread Afroz Kannancheri

Hi,

 Please find below the wkb hex string from the geom column
0xE610010407005839B4C87606504091ED7C3F35CE4140AC1C5A643B0F4F40C976BE9F1A9F40401F85EB51B86E4F40E7FBA9F1D20D3F405A643BDF4F5D5040DD24068195233F402B8716D9CEDF5040F2D24D6210B840409AB95040068195438BDC41405839B4C87606504091ED7C3F35CE4140010002010003


Thanks
Afroz
On Mon, Mar 1, 2010 at 12:11 PM, Tamas Szekeres [via OSGeo.org] <
ml-node+4653015-1473524091-382...@n2.nabble.com
> wrote:

> Could you provide the query result (wkb hex string) displayed in the query
> analyzer?
>
> Best regards,
>
> Tamas
>
>
> 2010/3/1 Afroz Kannancheri <[hidden 
> email]
> >
>
>>
>> Dear Tamaz,
>>
>> This is the query that comes to the Sqlserver when I click on the polygon
>>
>> select convert(varchar(max), ID),convert(varchar(max),
>> name),convert(varchar(max), flag1),convert(varchar(max),
>> flag2),convert(varchar(max), flag3),geom from region1 where id = 218
>>
>> Executing the above query directly gives the correct values from the
>> table.
>>
>>
>> Thanks and regards
>> Afroz
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4652355.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
>>
>
>
> ___
> mapserver-users mailing list
> [hidden 
> email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
> View message @
> http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4653015.html
> To unsubscribe from Re: Getfeatureinfo and MSsql 2008 server, click here< 
> (link removed) ==>.
>
>
>

-- 
View this message in context: 
http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4653039.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: Getfeatureinfo and MSsql 2008 server

2010-03-01 Thread Tamas Szekeres
Could you provide the query result (wkb hex string) displayed in the query
analyzer?

Best regards,

Tamas


2010/3/1 Afroz Kannancheri 

>
> Dear Tamaz,
>
> This is the query that comes to the Sqlserver when I click on the polygon
>
> select convert(varchar(max), ID),convert(varchar(max),
> name),convert(varchar(max), flag1),convert(varchar(max),
> flag2),convert(varchar(max), flag3),geom from region1 where id = 218
>
> Executing the above query directly gives the correct values from the table.
>
>
> Thanks and regards
> Afroz
>
> --
> View this message in context:
> http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4652355.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