[OpenLayers-Dev] Draw a polygon on the map

Bijoy bijoya at rediff.co.in
Fri Sep 12 02:19:09 EDT 2008


Hi Darko,

I trying to create the same feature... and want to know what would be the
best format to save the polygon coodinates informationonto the my server
database and read it back...
Please if you could share the code with me... it would be of great help... 

Thanks
<BIJOY>
 

Darko Radiceski wrote:
> 
> Hello all,
> 
> Just a note back in regards to what i was trying to do.
> 
> I managed to achieve the drawing of polygons and points using the WKT
> aproach.
> 
> I know what feature i need to draw so i can create the WKT phrase, pass it
> to the parser and then draw that.
> 
> Works like a charm:)
> 
> If anyone needs any help on it or would like to see the code just email
> us.
> 
> Sincerely
> Darko
> 
> 
> 
> On Mon, Apr 28, 2008 at 12:04 AM, Pedro Simonetti Garcia <
> pedrosimonetti at gmail.com> wrote:
> 
>> Hi Darko,
>>
>> Sorry, whe you said "bouds" I thought that you was talking about a
>> rectangle.
>>
>> I don't know how to do it. I've looked at the documentation, but I didn't
>> find info on
>> that. But I suggest you take a look at the source code of the
>> OpenLayers.Control.DrawFeatute.
>>
>> I hope this helps,
>>
>>
>> regards,
>>
>> Pedro Simonetti.
>>
>> 2008/4/27 Darko Radiceski <radiceski at gmail.com>:
>>
>> > Hello all,
>> >
>> > I had a look at the example but that doesnt help,
>> >
>> > I have the 4 corners of the polygon. Its not a rectangle but irregular
>> > polygon.
>> >
>> > Any advice?
>> >
>> >
>> >
>> > On Sun, Apr 27, 2008 at 11:12 PM, Pedro Simonetti Garcia <
>> > pedrosimonetti at gmail.com> wrote:
>> >
>> > > Hi Darko,
>> > >
>> > > Yes, it is possible. Take a look on this:
>> > >
>> > > http://openlayers.org/dev/examples/setextent.html
>> > >
>> > > You just need 2 pairs of lat/long, the (minx, miny) and (maxx, maxy).
>> > >
>> > > regards,
>> > >
>> > > Pedro Simonetti.
>> > >
>> > > 2008/4/27 Darko Radiceski <radiceski at gmail.com>:
>> > >
>> > > >   Dear all,
>> > > >
>> > > > I have been playing for the last few hours with no success to draw
>> a
>> > > > polygon through code.
>> > > >
>> > > > What i would like to do is:
>> > > >
>> > > > I have a button that when i press it returns me the bouds of a
>> > > > particular aerial image. That is 4 pairs of Lat,Lon for the image
>> polygon.
>> > > >
>> > > > I would like to get those coordinates and from that generate a
>> > > > polygon that i can show on the map to represent the extent of that
>> image.
>> > > >
>> > > > Is that possible?
>> > > >
>> > > > Any help for doing that please?
>> > > >
>> > > > I really apreciate your help.
>> > > >
>> > > > Cheers
>> > > > Dan
>> > > >
>> > > > --
>> > > > Radiceski Darko
>> > > > University of Wollongong
>> > > > Australia
>> > > > SIFE - UOW Chapter - Alumni
>> > > > CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
>> > > > (School of Information Technology and Computer Science,University
>> of
>> > > > Wollongong)
>> > > > Univeristy of Wollongong - Alumni
>> > > >
>> > > > _______________________________________________
>> > > > Dev mailing list
>> > > > Dev at openlayers.org
>> > > > http://openlayers.org/mailman/listinfo/dev
>> > > >
>> > > >
>> > >
>> >
>> >
>> > --
>> > Radiceski Darko
>> > University of Wollongong
>> > Australia
>> > SIFE - UOW Chapter - Alumni
>> > CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
>> > (School of Information Technology and Computer Science,University of
>> > Wollongong)
>> > Univeristy of Wollongong - Alumni
>> >
>>
>>
> 
> 
> -- 
> Radiceski Darko
> University of Wollongong
> Australia
> SIFE - UOW Chapter - Alumni
> CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
> (School of Information Technology and Computer Science,University of
> Wollongong)
> Univeristy of Wollongong - Alumni
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> 
> 

-- 
View this message in context: http://www.nabble.com/Draw-a-polygon-on-the-map-tp16923144p19450126.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.




More information about the Dev mailing list