hi ALL ,
hop u all fin and in good health. i want to write text on my map ( may b some information about a place) and then save it so that next time i use my map the text is visible there . i know u can use wfs to add new features but how will i add text as a new wfs layer in geoserver
thanks
Regards
ALauddin
Try inserting data into a point-shape file, and some work in SLD that should do the trick
regards,
imran
On Fri, Dec 18, 2009 at 12:33 PM, Alauddin Khan <khan.alauddin@anonymised.com…> wrote:
hi ALL ,
hop u all fin and in good health. i want to write text on my map ( may b some information about a place) and then save it so that next time i use my map the text is visible there . i know u can use wfs to add new features but how will i add text as a new wfs layer in geoserver
thanks
Regards
ALauddin
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
I.R
Hi,
well it depends what are you using on your client end first of all? are you using AJAX based client or something else, if you are using AJAX based client end and you should be aware of transforming screen coordinates into map coordinates and vice versa…then the following should do that job for you.
1-create a shape file with point geometry and upload it on geoserver,make sure you keep a field in the attributes for your label.
2-write a function that takes X,Y of click and the text you wish to display
3-insert that point where you clicked on map along with the text into the shape file
http://geoserver.org/display/GEOSDOC/5-+WFS
http://old.nabble.com/insert-wfs-url-example-required-td26369389.html
4-create an SLD for this shape file in which you add text symbolizer and set it to display the field containing you label.
http://docs.geoserver.org/1.7.x/en/user/styling/index.html
hope that helps
regards,
Imran
On Mon, Dec 21, 2009 at 10:43 AM, Alauddin Khan <khan.alauddin@anonymised.com> wrote:
sorry sir i didnt get ya i am a newbie when it comes to geoserver and postgis wht exactly do u mean by
“Try inserting data into a point-shape file, and some work in SLD that should do the trick”
wht is point shape file and wht i hav to do in SLD ??
thanks
Regards
Alauddin
2009/12/18 Imran Rajjad <rajjad@anonymised.com>
Try inserting data into a point-shape file, and some work in SLD that should do the trick
regards,
imran
On Fri, Dec 18, 2009 at 12:33 PM, Alauddin Khan <khan.alauddin@anonymised.com> wrote:
hi ALL ,
hop u all fin and in good health. i want to write text on my map ( may b some information about a place) and then save it so that next time i use my map the text is visible there . i know u can use wfs to add new features but how will i add text as a new wfs layer in geoserver
thanks
Regards
ALauddin
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
I.R
–
I.R
1)create your xml string using javascript against user actions on the webpage
2)Create new shape file in Arcview or ArcGis or any GIS tool you are using for data viewing then upload it using geoserver tutorial
http://docs.geoserver.org/1.7.x/en/user/data/shapefile.html
3)I didnt ask you to insert a function, i said that you should create a function in your javascript that takes the xml string and uses POST method to carry out the transaction
regards,
Imran
On Tue, Dec 22, 2009 at 12:01 PM, Alauddin Khan <khan.alauddin@anonymised.com> wrote:
hi
thx for ur support but i still have some querries plz help as i am totally new to these things
1)the example are xml based whereas i m using javascript
2)how to create new shapefiles using geoserver i dont think i can create one using geoserver?
3)how can i insert a function into wfs ?
thanks
Regards
Alauddin
2009/12/21 Imran Rajjad <rajjad@anonymised.com…>
Hi,
well it depends what are you using on your client end first of all? are you using AJAX based client or something else, if you are using AJAX based client end and you should be aware of transforming screen coordinates into map coordinates and vice versa…then the following should do that job for you.
1-create a shape file with point geometry and upload it on geoserver,make sure you keep a field in the attributes for your label.
2-write a function that takes X,Y of click and the text you wish to display
3-insert that point where you clicked on map along with the text into the shape file
http://geoserver.org/display/GEOSDOC/5-+WFS
http://old.nabble.com/insert-wfs-url-example-required-td26369389.html
4-create an SLD for this shape file in which you add text symbolizer and set it to display the field containing you label.
http://docs.geoserver.org/1.7.x/en/user/styling/index.html
hope that helps
regards,
Imran
On Mon, Dec 21, 2009 at 10:43 AM, Alauddin Khan <khan.alauddin@…84…> wrote:
sorry sir i didnt get ya i am a newbie when it comes to geoserver and postgis wht exactly do u mean by
“Try inserting data into a point-shape file, and some work in SLD that should do the trick”
wht is point shape file and wht i hav to do in SLD ??
thanks
Regards
Alauddin
2009/12/18 Imran Rajjad <rajjad@anonymised.com>
Try inserting data into a point-shape file, and some work in SLD that should do the trick
regards,
imran
On Fri, Dec 18, 2009 at 12:33 PM, Alauddin Khan <khan.alauddin@anonymised.com> wrote:
hi ALL ,
hop u all fin and in good health. i want to write text on my map ( may b some information about a place) and then save it so that next time i use my map the text is visible there . i know u can use wfs to add new features but how will i add text as a new wfs layer in geoserver
thanks
Regards
ALauddin
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
I.R
–
I.R
–
I.R