Re: [mapserver-users] two raster layers's intersection
2013/8/11 Ahmet Temiz > > hello > > > My data is stored in Postgis. > > I need to display only two raster layers's intersection. > > how can I do that ? > > regards > Create a postgis view by using http://postgis.refractions.net/docs/RT_ST_Intersection.html Display the layer in mapserver /r ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] vector Symbol and anchorpoint
Hi, I'm having trouble try.ing use the anchorpoint with a vector symbol. Is this working with vectors ? This is what I'm try to do: SYMBOL NAME "test" TYPE vector FILLED TRUE POINTS 0.5 1.0 0.5 0.75 0.0 0.75 1.0 0.75 END ANCHORPOINT 0.0 0.0 END The anchorpoint seem always set to the 0.5 0.5 position. I'm use the trunk version of mapserver. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector Symbol and anchorpoint
try defining the points of your vector symbol such that min(x)=min(y)=0 On 11 August 2013 10:30, Andrea Peri wrote: > Hi, > > I'm having trouble try.ing use the anchorpoint with a vector symbol. > > Is this working with vectors ? > > This is what I'm try to do: > > SYMBOL > NAME "test" > TYPE vector > FILLED TRUE > POINTS >0.5 1.0 >0.5 0.75 >0.0 0.75 >1.0 0.75 > END > ANCHORPOINT 0.0 0.0 > END > > The anchorpoint seem always set to the 0.5 0.5 position. > > I'm use the trunk version of mapserver. > > > > -- > - > Andrea Peri > . . . . . . . . . > qwerty àèìòù > - > > ___ > 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] vector Symbol and anchorpoint
Hi, thx for response. I try to set this symbol: SYMBOL NAME "test" TYPE vector FILLED TRUE POINTS 0.0 0.0 1.0 0.0 0.5 0.0 0.5 0.5 END ANCHORPOINT 0.0 0.0 END But mapserver seem move the line by 0.5. I show in the attached image (img1) the problem. The filled green is the real polygon. Instead the red is the symbol I try to define with "test". As you can see the red line is not in the exact outline but 0.5 moved. I notice also that if I define this other kind of symbol: SYMBOL NAME "chiodo" TYPE vector FILLED TRUE POINTS 0.0 0.0 1.0 0.0 0.5 0.0 # 0.5 0.5 END ANCHORPOINT 0.0 0.0 END Where I comment the perpendicul segment, the result is a red line exactly on the outline. I show this in the img2 attacched. So mapserver seem move the symbol when there is a perpendicular segment. Is this a bug or I don't understand how work the symbols ? Thx, Andrea. 2013/8/11 thomas bonfort > try defining the points of your vector symbol such that min(x)=min(y)=0 > > On 11 August 2013 10:30, Andrea Peri wrote: > > Hi, > > > > I'm having trouble try.ing use the anchorpoint with a vector symbol. > > > > Is this working with vectors ? > > > > This is what I'm try to do: > > > > SYMBOL > > NAME "test" > > TYPE vector > > FILLED TRUE > > POINTS > >0.5 1.0 > >0.5 0.75 > >0.0 0.75 > >1.0 0.75 > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > The anchorpoint seem always set to the 0.5 0.5 position. > > > > I'm use the trunk version of mapserver. > > > > > > > > -- > > - > > Andrea Peri > > . . . . . . . . . > > qwerty àèìòù > > - > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- - Andrea Peri . . . . . . . . . qwerty àèìòù - <><>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector Symbol and anchorpoint
As you're not showing what you would like to obtain, nor the mapfile you are using to generate those images it is difficult to be of much help. I have added a test in https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f that mimics what I guess you would like to obtain, and for me shows that anchorpoint seems to be working as expected. -- thomas On 11 August 2013 13:07, Andrea Peri wrote: > Hi, > thx for response. > > I try to set this symbol: > > > SYMBOL > NAME "test" > TYPE vector > FILLED TRUE > POINTS >0.0 0.0 >1.0 0.0 >0.5 0.0 >0.5 0.5 > > END > ANCHORPOINT 0.0 0.0 > END > > But mapserver seem move the line by 0.5. > > I show in the attached image (img1) the problem. > The filled green is the real polygon. > Instead the red is the symbol I try to define with "test". > As you can see the red line is not in the exact outline but 0.5 moved. > > I notice also that if I define this other kind of symbol: > > SYMBOL > NAME "chiodo" > > TYPE vector > FILLED TRUE > POINTS >0.0 0.0 >1.0 0.0 >0.5 0.0 > # 0.5 0.5 > > END > ANCHORPOINT 0.0 0.0 > END > > Where I comment the perpendicul segment, > the result is a red line exactly on the outline. > I show this in the img2 attacched. > > So mapserver seem move the symbol when there is a perpendicular segment. > > Is this a bug or I don't understand how work the symbols ? > > Thx, > > Andrea. > > > > 2013/8/11 thomas bonfort >> >> try defining the points of your vector symbol such that min(x)=min(y)=0 >> >> On 11 August 2013 10:30, Andrea Peri wrote: >> > Hi, >> > >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. >> > >> > Is this working with vectors ? >> > >> > This is what I'm try to do: >> > >> > SYMBOL >> > NAME "test" >> > TYPE vector >> > FILLED TRUE >> > POINTS >> >0.5 1.0 >> >0.5 0.75 >> >0.0 0.75 >> >1.0 0.75 >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > The anchorpoint seem always set to the 0.5 0.5 position. >> > >> > I'm use the trunk version of mapserver. >> > >> > >> > >> > -- >> > - >> > Andrea Peri >> > . . . . . . . . . >> > qwerty àèìòù >> > - >> > >> > ___ >> > mapserver-users mailing list >> > mapserver-users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > > -- > - > Andrea Peri > . . . . . . . . . > qwerty àèìòù > - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector Symbol and anchorpoint
Hi, Sorry, I forgot to explain my need. I need to define an outline of polygon with an perpendicular segment forward the internal of polygon. It goal is to allow to use only the outline (no internal fill) and also help the user to distinguish the internal and the external part of a polygon when the scale is bigger and the polygon is not all in the screen. The problem is that the symbol don't start exactly from the outpline but a little before.as it was moved. Andrea. 2013/8/11 thomas bonfort > As you're not showing what you would like to obtain, nor the mapfile > you are using to generate those images it is difficult to be of much > help. I have added a test in > > https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f > that mimics what I guess you would like to obtain, and for me shows > that anchorpoint seems to be working as expected. > > -- > thomas > > On 11 August 2013 13:07, Andrea Peri wrote: > > Hi, > > thx for response. > > > > I try to set this symbol: > > > > > > SYMBOL > > NAME "test" > > TYPE vector > > FILLED TRUE > > POINTS > >0.0 0.0 > >1.0 0.0 > >0.5 0.0 > >0.5 0.5 > > > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > But mapserver seem move the line by 0.5. > > > > I show in the attached image (img1) the problem. > > The filled green is the real polygon. > > Instead the red is the symbol I try to define with "test". > > As you can see the red line is not in the exact outline but 0.5 moved. > > > > I notice also that if I define this other kind of symbol: > > > > SYMBOL > > NAME "chiodo" > > > > TYPE vector > > FILLED TRUE > > POINTS > >0.0 0.0 > >1.0 0.0 > >0.5 0.0 > > # 0.5 0.5 > > > > END > > ANCHORPOINT 0.0 0.0 > > END > > > > Where I comment the perpendicul segment, > > the result is a red line exactly on the outline. > > I show this in the img2 attacched. > > > > So mapserver seem move the symbol when there is a perpendicular segment. > > > > Is this a bug or I don't understand how work the symbols ? > > > > Thx, > > > > Andrea. > > > > > > > > 2013/8/11 thomas bonfort > >> > >> try defining the points of your vector symbol such that min(x)=min(y)=0 > >> > >> On 11 August 2013 10:30, Andrea Peri wrote: > >> > Hi, > >> > > >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. > >> > > >> > Is this working with vectors ? > >> > > >> > This is what I'm try to do: > >> > > >> > SYMBOL > >> > NAME "test" > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> >0.5 1.0 > >> >0.5 0.75 > >> >0.0 0.75 > >> >1.0 0.75 > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > The anchorpoint seem always set to the 0.5 0.5 position. > >> > > >> > I'm use the trunk version of mapserver. > >> > > >> > > >> > > >> > -- > >> > - > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty àèìòù > >> > - > >> > > >> > ___ > >> > mapserver-users mailing list > >> > mapserver-users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > > > -- > > - > > Andrea Peri > > . . . . . . . . . > > qwerty àèìòù > > - > -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector Symbol and anchorpoint
Andrea, the example I gave you does exactly that. https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20 , just remove the first style's COLOR if you don't want a fill. -- thomas On 11 August 2013 14:37, Andrea Peri wrote: > Hi, > > Sorry, I forgot to explain my need. > > I need to define an outline of polygon with an perpendicular segment forward > the internal of polygon. > It goal is to allow to use only the outline (no internal fill) and also help > the user to distinguish the internal and the external part of a polygon when > the scale is bigger and the polygon is not all in the screen. > > The problem is that the symbol don't start exactly from the outpline but a > little before.as it was moved. > > Andrea. > > > > > 2013/8/11 thomas bonfort >> >> As you're not showing what you would like to obtain, nor the mapfile >> you are using to generate those images it is difficult to be of much >> help. I have added a test in >> >> https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f >> that mimics what I guess you would like to obtain, and for me shows >> that anchorpoint seems to be working as expected. >> >> -- >> thomas >> >> On 11 August 2013 13:07, Andrea Peri wrote: >> > Hi, >> > thx for response. >> > >> > I try to set this symbol: >> > >> > >> > SYMBOL >> > NAME "test" >> > TYPE vector >> > FILLED TRUE >> > POINTS >> >0.0 0.0 >> >1.0 0.0 >> >0.5 0.0 >> >0.5 0.5 >> > >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > But mapserver seem move the line by 0.5. >> > >> > I show in the attached image (img1) the problem. >> > The filled green is the real polygon. >> > Instead the red is the symbol I try to define with "test". >> > As you can see the red line is not in the exact outline but 0.5 moved. >> > >> > I notice also that if I define this other kind of symbol: >> > >> > SYMBOL >> > NAME "chiodo" >> > >> > TYPE vector >> > FILLED TRUE >> > POINTS >> >0.0 0.0 >> >1.0 0.0 >> >0.5 0.0 >> > # 0.5 0.5 >> > >> > END >> > ANCHORPOINT 0.0 0.0 >> > END >> > >> > Where I comment the perpendicul segment, >> > the result is a red line exactly on the outline. >> > I show this in the img2 attacched. >> > >> > So mapserver seem move the symbol when there is a perpendicular segment. >> > >> > Is this a bug or I don't understand how work the symbols ? >> > >> > Thx, >> > >> > Andrea. >> > >> > >> > >> > 2013/8/11 thomas bonfort >> >> >> >> try defining the points of your vector symbol such that min(x)=min(y)=0 >> >> >> >> On 11 August 2013 10:30, Andrea Peri wrote: >> >> > Hi, >> >> > >> >> > I'm having trouble try.ing use the anchorpoint with a vector symbol. >> >> > >> >> > Is this working with vectors ? >> >> > >> >> > This is what I'm try to do: >> >> > >> >> > SYMBOL >> >> > NAME "test" >> >> > TYPE vector >> >> > FILLED TRUE >> >> > POINTS >> >> >0.5 1.0 >> >> >0.5 0.75 >> >> >0.0 0.75 >> >> >1.0 0.75 >> >> > END >> >> > ANCHORPOINT 0.0 0.0 >> >> > END >> >> > >> >> > The anchorpoint seem always set to the 0.5 0.5 position. >> >> > >> >> > I'm use the trunk version of mapserver. >> >> > >> >> > >> >> > >> >> > -- >> >> > - >> >> > Andrea Peri >> >> > . . . . . . . . . >> >> > qwerty àèìòù >> >> > - >> >> > >> >> > ___ >> >> > mapserver-users mailing list >> >> > mapserver-users@lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > >> > >> > >> > -- >> > - >> > Andrea Peri >> > . . . . . . . . . >> > qwerty àèìòù >> > - > > > > > -- > - > Andrea Peri > . . . . . . . . . > qwerty àèìòù > - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector Symbol and anchorpoint
Hi Thomas. It work very well. I tried to define a symbol with two segment: one perpendicolar to the other. Instead more simple was to create an only one segment perpendicular to the outline. Many thx, Andrea. 2013/8/11 thomas bonfort > Andrea, the example I gave you does exactly that. > > https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20 > , just remove the first style's COLOR if you don't want a fill. > > -- > thomas > > On 11 August 2013 14:37, Andrea Peri wrote: > > Hi, > > > > Sorry, I forgot to explain my need. > > > > I need to define an outline of polygon with an perpendicular segment > forward > > the internal of polygon. > > It goal is to allow to use only the outline (no internal fill) and also > help > > the user to distinguish the internal and the external part of a polygon > when > > the scale is bigger and the polygon is not all in the screen. > > > > The problem is that the symbol don't start exactly from the outpline but > a > > little before.as it was moved. > > > > Andrea. > > > > > > > > > > 2013/8/11 thomas bonfort > >> > >> As you're not showing what you would like to obtain, nor the mapfile > >> you are using to generate those images it is difficult to be of much > >> help. I have added a test in > >> > >> > https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f > >> that mimics what I guess you would like to obtain, and for me shows > >> that anchorpoint seems to be working as expected. > >> > >> -- > >> thomas > >> > >> On 11 August 2013 13:07, Andrea Peri wrote: > >> > Hi, > >> > thx for response. > >> > > >> > I try to set this symbol: > >> > > >> > > >> > SYMBOL > >> > NAME "test" > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> >0.0 0.0 > >> >1.0 0.0 > >> >0.5 0.0 > >> >0.5 0.5 > >> > > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > But mapserver seem move the line by 0.5. > >> > > >> > I show in the attached image (img1) the problem. > >> > The filled green is the real polygon. > >> > Instead the red is the symbol I try to define with "test". > >> > As you can see the red line is not in the exact outline but 0.5 moved. > >> > > >> > I notice also that if I define this other kind of symbol: > >> > > >> > SYMBOL > >> > NAME "chiodo" > >> > > >> > TYPE vector > >> > FILLED TRUE > >> > POINTS > >> >0.0 0.0 > >> >1.0 0.0 > >> >0.5 0.0 > >> > # 0.5 0.5 > >> > > >> > END > >> > ANCHORPOINT 0.0 0.0 > >> > END > >> > > >> > Where I comment the perpendicul segment, > >> > the result is a red line exactly on the outline. > >> > I show this in the img2 attacched. > >> > > >> > So mapserver seem move the symbol when there is a perpendicular > segment. > >> > > >> > Is this a bug or I don't understand how work the symbols ? > >> > > >> > Thx, > >> > > >> > Andrea. > >> > > >> > > >> > > >> > 2013/8/11 thomas bonfort > >> >> > >> >> try defining the points of your vector symbol such that > min(x)=min(y)=0 > >> >> > >> >> On 11 August 2013 10:30, Andrea Peri wrote: > >> >> > Hi, > >> >> > > >> >> > I'm having trouble try.ing use the anchorpoint with a vector > symbol. > >> >> > > >> >> > Is this working with vectors ? > >> >> > > >> >> > This is what I'm try to do: > >> >> > > >> >> > SYMBOL > >> >> > NAME "test" > >> >> > TYPE vector > >> >> > FILLED TRUE > >> >> > POINTS > >> >> >0.5 1.0 > >> >> >0.5 0.75 > >> >> >0.0 0.75 > >> >> >1.0 0.75 > >> >> > END > >> >> > ANCHORPOINT 0.0 0.0 > >> >> > END > >> >> > > >> >> > The anchorpoint seem always set to the 0.5 0.5 position. > >> >> > > >> >> > I'm use the trunk version of mapserver. > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > - > >> >> > Andrea Peri > >> >> > . . . . . . . . . > >> >> > qwerty àèìòù > >> >> > - > >> >> > > >> >> > ___ > >> >> > mapserver-users mailing list > >> >> > mapserver-users@lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > > >> > > >> > > >> > -- > >> > - > >> > Andrea Peri > >> > . . . . . . . . . > >> > qwerty àèìòù > >> > - > > > > > > > > > > -- > > - > > Andrea Peri > > . . . . . . . . . > > qwerty àèìòù > > - > -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How retrieving the used Reference System Detecting in a template
Hi, I'm writing a template for html getfeatureinfo response, and I need to write the coordinate clicked and their reference system. For the clicked coordinate there is no problemto get them. But I'm having some trouble to retrieve the reference system. Infact if the user call the wms using version 1.3.0 the sintax to retrieve the used reference system is [crs] instead if the user call the wms using a 1.1.1 version sintax the reference system is retrievable using the [srs] There is a common variable to get the reference system of request ? Thx -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users