can i get an example of wfs layer i mean in which they hav used wfs layer instead of wms can i associate geoserver sld to render features in wfs layer all the example i searched on the net uses wms can it b done using wfs ??<br>
<br><div class="gmail_quote">On Fri, Jan 15, 2010 at 6:25 PM, Alexandre Dube <span dir="ltr"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alauddin,<br>
<br>
I'm not sure. Did you take a look at these examples [1] [2]. I guess it could help.<br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
[1] <a href="http://openlayers.org/dev/examples/sld.html" target="_blank">http://openlayers.org/dev/examples/sld.html</a><br>
[2] <a href="http://openlayers.org/dev/examples/WMSPost.html" target="_blank">http://openlayers.org/dev/examples/WMSPost.html</a><br>
<br>
<br>
Alauddin Khan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
thank you so much for ur help alexander i am saving text successfully now but when i try to display it again through a browser it is nt displayed .i can view it through geoserver map preview but not through browser . i think the problem is tht openlayers associate its own style with the layer and not the default sld tht is associated with the feature type in geoserver (i-e capitals.sld).how can i give my layer custom sld ( the sld tht was associated with it in geoserver).?? <br>
</div><div class="im">
On Wed, Jan 13, 2010 at 11:32 AM, Alauddin Khan <<a href="mailto:akhan@pakvistatech.com" target="_blank">akhan@pakvistatech.com</a> <mailto:<a href="mailto:akhan@pakvistatech.com" target="_blank">akhan@pakvistatech.com</a>>> wrote:<br>
<br>
hi<br>
i got some idea about what to do now . but problem is can i pass a<br>
variable as an attirbute to wfs layer ?? i mean i want to pass as<br>
an attribute variable (style_text.label) which contains text tht i<br>
am getting. can it b done ??and how ?<br>
<br>
thanks<br>
<br>
On Mon, Jan 11, 2010 at 7:01 PM, Alexandre Dube<br></div><div><div></div><div class="h5">
<<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>>> wrote:<br>
<br>
Alauddin,<br>
<br>
Please, reply to the list as many other might be able to help<br>
you.<br>
<br>
Please, take a look at the following example [1]. In it, you<br>
have a vector layer configured to a WFS-T server to allow<br>
transactions. OpenLayers is responsible of generating the<br>
transaction by AJAX on commit. Look at the code of the<br>
example for more.<br>
<br>
If it can help, I also made a WFS-T little demo a year ago.<br>
The OpenLayers version is outdated, but it might help too<br>
[2]. It uses TinyOWS as the WFS-T server (instead of<br>
GeoServer) though.<br>
<br>
Hope it helps,<br>
<br>
Alexandre<br>
<br>
<br>
[1]<br>
<a href="http://openlayers.org/dev/examples/wfs-protocol-transactions.html" target="_blank">http://openlayers.org/dev/examples/wfs-protocol-transactions.html</a><br>
[2] <a href="http://dev4.mapgears.com/bdga/bdgaWFS-T.html" target="_blank">http://dev4.mapgears.com/bdga/bdgaWFS-T.html</a><br>
<br>
Alauddin Khan wrote:<br>
<br>
sorry i am new to mapping and this openlayers geoserver<br>
thing so i could not pick up wht u r saying what i really<br>
want is to let user write nething i-e label comment joke<br>
etc etc on the map displayed nd then save it, add it to<br>
database and latter on same text as displayed as a wfs<br>
layer . i mean map is displayed as wms layer then we hav 3<br>
layers for point line and polygon giving user capability<br>
to draw line polygon or point and save it now i want to<br>
add another layer named as text layer which enables to<br>
write on the map ne comments note or label etc which is u<br>
kno then saved can i do this with open layers ? Mr imran<br>
rajjad from geoserver list suggested me below four point<br>
strategy which i could not follow up completly his<br>
suggestion was<br>
<br>
1-create a shape file with point geometry and upload it on<br>
geoserver,make sure you keep a field in the attributes for<br>
your label.<br>
2-write a function that takes X,Y of click and the text<br>
you wish to display<br>
3-insert that point where you clicked on map along with<br>
the text into the shape file 4-create an SLD for<br>
this shape file in which you add text symbolizer and set<br>
it to display the field containing you label.<br>
but i got stuck at point 3 .dont know how to move things<br>
forward. please help thanks<br>
<br>
Regards<br>
Alauddin<br>
<br>
On Fri, Jan 8, 2010 at 6:28 PM, Alexandre Dube<br>
<<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>><br></div></div>
<mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>>>><div><div></div><div class="h5">
<br>
wrote:<br>
<br>
Hi,<br>
<br>
Take a look at this example [1]. Labels are added to<br>
features as<br>
symbolizer properties, so you could set one of the<br>
feature's<br>
attribute as a value for your label by using ${name}<br>
(see the same<br>
example).<br>
<br>
Hope this helps,<br>
<br>
Alexandre<br>
<br>
[1]<br>
<a href="http://openlayers.org/dev/examples/vector-features-with-text.html" target="_blank">http://openlayers.org/dev/examples/vector-features-with-text.html</a><br>
<br>
<br>
Alauddin Khan wrote:<br>
<br>
hi ALL ,<br>
hop u all fin and in good health. i want<br>
to write<br>
text on my map ( may b some information about a<br>
place) and<br>
then save it so that next time i use my map the text is<br>
visible there . i know u can use wfs to add new<br>
features but<br>
how will i add text as a new wfs layer in geoserver<br>
<br>
thanks<br>
Regards<br>
Alauddin<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a> <mailto:<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a>><br></div></div>
<mailto:<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a> <mailto:<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a>>><div class="im"><br>
<br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br>
<br>
-- Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a> <<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>><br>
<<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>><br>
<br>
<br>
<br>
<br>
-- Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a> <<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>><br>
<br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</div></div></blockquote></div><br>