Re: [mapserver-users] drawing a circle

2008-09-08 Thread Sucharita Samuel
cle). oShp.add(oLine); 12. Once you get the shape, create a temporary layer and assign the properties/attributes like opacity, outline color, color of circle etc. 13. Finally, draw this layer and call the layer.close() method . Thanks and Regards, Sucharita Samuel iWorkTechnologies Pvt. Ltd., Pune On

[mapserver-users] How to draw a circle with a centroid and radius

2008-05-12 Thread Sucharita Samuel
Hi Friends, I am really stuck up with this for a long time now. As far as I have googled, I have found that to draw a circle, either using a mapfile or dynamically using a mapscript, the circle has to be defined by two set of points of its bounding rectangle. The image that I get on

Re: [mapserver-users] Intersection of rectangle and circle

2008-05-10 Thread Sucharita Samuel
lie inside the circle(and not the bounding rectangle) Can You help me with this? Thanks, Sucharita On Fri, May 9, 2008 at 6:41 PM, P Kishor <[EMAIL PROTECTED]> wrote: > Let's clarify a few things first -- > > On 5/9/08, Sucharita Samuel <[EMAIL PROTECTED]> wrote: >

[mapserver-users] Intersection of rectangle and circle

2008-05-09 Thread Sucharita Samuel
Hi friends, I need to find the intersection of a rectangle and circle. As you must be aware that a circle in mapserver terminology is a shapeobject drawn using the upper left and bottom right co-ordinates of a rectangle. In the above case I get the intersection of two rectangles, but as the ci

[mapserver-users] Re: How TO change color of a layer using mapscript(without editing mapfile)

2008-05-08 Thread Sucharita Samuel
bie to asp.net mapserver. > Thanks Regards > Yatendra Jaiswal > > Sucharita Samuel wrote: > > > > Hi Yatendra, > > To change the colour of a layer, you can create a > > temporary layer, assign the attributes (like color,outline color etc) and > &

Re: [mapserver-users] Coverting lat/long to pixel

2008-05-08 Thread Sucharita Samuel
t; > pObj.Dispose(); > > projectionFrom.Dispose(); > > projectionTo.Dispose(); > > > > Brian > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Sucharita Samuel > *Sent:* Wednesday, May 07, 2008

Re: [mapserver-users] Coverting lat/long to pixel

2008-05-07 Thread Sucharita Samuel
int iy = (int) (iy1+iy2)/2; > > p = new Point(ix,iy); > return p; > } > > > > > On 5/7/08, Sucharita Samuel <[EMAIL PROTECTED]> wrote: > > > > Hi Sandeep, > >A code fragment will be really helpful. > > > >

Re: [mapserver-users] Coverting lat/long to pixel

2008-05-07 Thread Sucharita Samuel
Hi Sandeep, A code fragment will be really helpful. Thanks, Sucharita On Wed, May 7, 2008 at 3:20 PM, Sandeep Kumar Jakkaraju < [EMAIL PROTECTED]> wrote: > > This can be done using simple interpolation also > > > &

[mapserver-users] Coverting lat/long to pixel

2008-05-07 Thread Sucharita Samuel
Hi friends, Can somebody please help me with a code to convert the latitude and longitude of a point to pixel co-ordinates? I am using ASP.NET. I have heard that GDAL has a method for this conversion. MS4W comes with GDAL as its tools, but I don't know how to implement it in C#.NET.

Re: [MAPSERVER-USERS] How TO change color of a layer using mapscript(without editing mapfile)

2008-05-07 Thread Sucharita Samuel
Hi Yatendra, To change the colour of a layer, you can create a temporary layer, assign the attributes (like color,outline color etc) and then add the shape to your existing layer and redraw the map image.. The following code might help, //*Code for creating a tempor

[mapserver-users] How to change the feature points of a circle

2008-04-22 Thread Sucharita Samuel
Hi, Can anybody please help me with a mapscript code to change the feature points of a circle defined in the mapfile. My mapfile looks as below, LAYER NAME "Circle" STATUS off TRANSPARENCY 50 TYPE circle FEATURE POINTS 73.802230 18.484904 73.9

Re: [mapserver-users] Drawing a circle on a map

2008-04-14 Thread Sucharita Samuel
e < [EMAIL PROTECTED]> wrote: > Atul Dravid wrote: > > > Try asking for Sample Code to Stephen Woodbridge... > > > > > > On 4/12/08, *Stephen Woodbridge* <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> wrote: > > > >Sucharita Samuel wrote: &g

Re: [mapserver-users] Drawing a circle on a map

2008-04-12 Thread Sucharita Samuel
circle is created, it is not getting rendered onto the web page over the map. Can you please help me with this. Thanks, Sucharita On Sat, Apr 12, 2008 at 5:53 PM, P Kishor <[EMAIL PROTECTED]> wrote: > On 4/12/08, Sucharita Samuel <[EMAIL PROTECTED]> wrote: > > Hi all, >

[mapserver-users] Drawing a circle on a map

2008-04-12 Thread Sucharita Samuel
Hi all, I want to draw a circle of 5 km radius around the point I click on the map. I am using C# mapscript. Even if you can help me with the php code, it will be of great help. Thanks in advance. Regards, Sucharita ___ mapserver-users mailing