[OpenLayers-Users] Layer from raster images...

2010-05-24 Thread paweluz
Hi! It has been a while since I got any problems with OL but this time has unfortunately come... Actually I am just looking for some solution for my task... I got some images that shows the city of New York with the streets hotels and some other objects. All this data are stored as jpg files. I h

Re: [OpenLayers-Users] LayerSwitcher in OpenLayers2.9.RC2 in wrong place on the map

2010-04-15 Thread paweluz
Thanks a lot for your help Bart! That was it. I copied only the OpenLayers.js file without the theme folder. Now everything is working fine. Regards, Poul -- View this message in context: http://n2.nabble.com/LayerSwitcher-in-OpenLayers2-9-RC2-in-wrong-place-on-the-map-tp4906606p4906776.html Se

[OpenLayers-Users] LayerSwitcher in OpenLayers2.9.RC2 in wrong place on the map

2010-04-15 Thread paweluz
Hi! I have been wondering how come my layer switcher appears in left top corner of the map. It does not look good. Here is screen: http://img171.imageshack.us/img171/303/errir1.png When I open it it looks like this: http://img512.imageshack.us/img512/994/error2l.png In version 2.8 of Openlaye

Re: [OpenLayers-Users] Error in Openlaywers 2.9RC2

2010-04-14 Thread paweluz
Hi Bart Ok, thanks for the info. I was just curies how come it is not working in the latest release. Now I know... I will have to include patch by myself :) Regards, Poul -- View this message in context: http://n2.nabble.com/Error-in-Openlaywers-2-9RC2-tp4901353p4901531.html Sent from the Ope

[OpenLayers-Users] Error in Openlaywers 2.9RC2

2010-04-14 Thread paweluz
Hi Before 2.9RC2 I was using 2.8 with this path: http://n2.nabble.com/attachment/3508031/1/xmlhttprequest.patch The path was fixing the error NS_ERROR_NOT_INITIALIZED - [nsIXMLHttpRequest.send]. I even created a topic about this. Here is the link: http://n2.nabble.com/nsIXMLHttpRequest-NS-ERR

Re: [OpenLayers-Users] JSON format does not work in Protocol.WFS

2010-04-14 Thread paweluz
I worked! The right way to do this is this way: protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://localhost/geoserver2_0_1/wfs";, featureNS : "http://www.openplans.org/topp";, featureType: "bazadanych", geom

Re: [OpenLayers-Users] JSON format does not work in Protocol.WFS

2010-04-14 Thread paweluz
Hi My POST XML GetFeature looks like this: http://www.opengis.net/wfs"; service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://www.openplans.org/topp";> http://www

Re: [OpenLayers-Users] JSON format does not work in Protocol.WFS

2010-04-13 Thread paweluz
Hi Bart! As you can see my code was this same as yours at the beginning. But this did not work for me. I understand in firebug you can see JSON code instead of GML ... am I wright?? Do you know what else may be wrong in my case? I would really appreciate any help... Regards, Poul -- View this m

Re: [OpenLayers-Users] JSON format does not work in Protocol.WFS

2010-04-13 Thread paweluz
Hi Andreas Unfortunately it still does not work. My code for protocol looks now like this: protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:4326", url: "http://localhost/geoserver2_0_1/wfs";, featureNS : "http://www

[OpenLayers-Users] JSON format does not work in Protocol.WFS

2010-04-12 Thread paweluz
Hi! I have been reading for a while that using JSON format is better in some cases that using just GML (XML). I have been trying to use it, but in firebug all the time I can see just XML not the json file... My code looks like this: var wfsproba = new OpenLayers.Layer.Vector("Editable F

[OpenLayers-Users] Login into Geoserver via java

2010-03-31 Thread paweluz
Hi! I am trying to write an login into Geoserver functionality via Java. I use GWT, Geoserver 2.0.1 and Openlayers 2.8. I have configured geoserver (by layer.properties and users.properties) that only admin can do anything. If you are not logged you can not read or write anything. I used 'mode=CH

[OpenLayers-Users] Security and user authentication using OpenLayers and Geoserver

2010-03-26 Thread paweluz
Hi! I wrote an application using GWT, OL2.8, Geoserver2.0.1 and PostGIS. The user is able to view, save, delete and modify data using web browser. Now I have been thinking about a way to limit the functionality to the user. For example: - only the admin user can modify data. - only some users c

Re: [OpenLayers-Users] WFSDescribeFeatureType - how to use it???

2010-03-25 Thread paweluz
Hi Gabriel! I works!! But I had to made some changes... It did not work in a separate variables. I have to do like this: var describeFeatureTypeRequest = OpenLayers.Request.GET({ url: 'http://localhost:8080/geoserver2_0_1/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=top

Re: [OpenLayers-Users] WFSDescribeFeatureType - how to use it???

2010-03-24 Thread paweluz
Hi Gabriel! Thanks a lot for your help! I am going to try it tomorrow at work and write whether it works or not. Poul -- View this message in context: http://n2.nabble.com/WFSDescribeFeatureType-how-to-use-it-tp4791176p4793088.html Sent from the OpenLayers Users mailing list archive at Nabble

Re: [OpenLayers-Users] GWT openlayers and bing

2010-03-24 Thread paweluz
You may use a google layer as a base map. I use GWT Openlayers and in my case it works just fine... Poul -- View this message in context: http://n2.nabble.com/GWT-openlayers-and-bing-tp4791277p4791289.html Sent from the OpenLayers Users mailing list archive at Nabble.com. __

[OpenLayers-Users] WFSDescribeFeatureType - how to use it???

2010-03-24 Thread paweluz
Hi! I was jus wandering if anyone please tell me how to use WFSDescribeFeatureType class. I am thinking about getting the name of the attributes from my database. I found a lot of examples like this: var text = ' . ' ' + '' +

Re: [OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi Tim! Thanks a lot for your help! I am going to try it tomorrow at work, and see if it works... As far as I undestand the handlerOptions: {multi: true} tells if the data are saved as multi or not multi... am I right?? Al this time I was thinking that WFS Web Servis version 1.1.0 is able to tran

Re: [OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi Ramon Thanks for your help but unfortunately it still does not work for me. My layer definition looks like this right now... var wfsproba = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(),saveStrategy], projection: new O

Re: [OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi! I have looke into the request in the two cases: First when I use WFS layer and commit method. The request looks like this: http://www.opengis.net/wfs"; version="1.0.0" service="WFS">http://www.openplans.org/topp";> http://www.opengis.net/gml";> 1725436.9258124,6788640.0106605 1725967.207

[OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi! I have a really strange problem. At the beginning I was thinking that it was Geoserver fault, or maybe Postgis but now I think this is Openlayers fault. At first I was using WFS layer, I had implemented insert, update, delete and modify functions and everything was was working just great. But

Re: [OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi! I have looke into the request in the two cases: First when I use WFS layer and commit method. The request looks like this: http://www.opengis.net/wfs"; version="1.0.0" service="WFS">http://www.openplans.org/topp";> http://www.opengis.net/gml";> 1725436.9258124,6788640.0106605 1725967.207

Re: [OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
The request looks like this: http://www.opengis.net/wfs"; service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:pro

Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-22 Thread paweluz
HI! I am almost sure this is openlayers fault. I started new topic here : http://n2.nabble.com/WFS-layer-commit-works-save-strategy-from-WFSProtocol-does-not-work-POST-vs-GET-td4776941.html#a4776941 Poul -- View this message in context: http://n2.nabble.com/SaveStrategy-does-not-work-WFSProto

[OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

2010-03-22 Thread paweluz
Hi! I have a really strange problem. At the beginning I was thinking that it was Geoserver fault, or maybe Postgis but now I think this is Openlayers fault. At first I was using WFS layer, I had implemented insert, update, delete and modify functions and everything was was working just great. But

Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-21 Thread paweluz
Hi! I probably know where is the problem. For sure this is no problem of Openlayers. This is problem of Geoserver and Postgis I have create my table from shp file. All the geometry are Multilinestring... When I try to add new data I got error. I have made an experiment. I have created new table

Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-20 Thread paweluz
Hi! I have tried many approaches and for now there is nothing better. I have checked everythink on Win2000 and XP. I used the latest geoserver (version 2.0.1) and tomcat 6.0. Still this same. I got the error. I have changed the debug mode in Geoserver, and now I got some more information, but sti

Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-19 Thread paweluz
Hi! Thanks a lot for your interest. I have changed the configuration just to check if it was depending on the proxy issue. Now I have Tomcat running my application and geoserver running from the exe file (on windows 2000). I am using OpenLayers proxy file. Now I got in firebug an error... The Sou

Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-19 Thread paweluz
Hi! I am familiar with the proxy issue, but in my case it should not be the problem. If it was I wouldn't see the vector layer at all (I suppose). I have both geoserver and my application running on this same server application - Glassfish, in this case the proxy should not be the issue... don't

[OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-19 Thread paweluz
Hi! I am using Postgis, Geoserver and Openlayers 2.8. I create my simple application based on this example http://dev.openlayers.org/releases/OpenLayers-2.8/examples/wfs-protocol-transactions.html. I can see the vector on map, I can get the object attributes from the feature I clicked on, but I

Re: [OpenLayers-Users] GWT + Openlayers - WFSProtocol - WFS version 1.1.0 does not work

2010-03-19 Thread paweluz
Sorry, my mistake...everything is working correctly. I had some mistakes in my code... Just remember to use version 1.1.0 WFSprotocolOption and everything should be working wright... Poul -- View this message in context: http://n2.nabble.com/GWT-Openlayers-WFSProtocol-WFS-version-1-1-0-does-not

[OpenLayers-Users] GWT + Openlayers - WFSProtocol - WFS version 1.1.0 does not work

2010-03-19 Thread paweluz
Hi! I am using GWT with Openlayetrs 2.8. My goal is to save, delete and modify object from Web Browser. I am using for that Vector layer with WFSProtocol. I wrote 'save strategy' class for vector layer, because it has not been included into GWT-OL library yet. When I try to save some features to

Re: [OpenLayers-Users] nsIXMLHttpRequest, NS_ERROR_NOT_INITIALIZED with Vector and WFS layer

2010-03-16 Thread paweluz
Hi Kris! It worked! The error is now gone. Both in my GWT application and in JS application :) Thanks a lot for your help. I had some problems with building Openlayers, but with some help I did it. One more time thanks!! Cheers, Poul -- View this message in context: http://n2.nabble.com/nsIXML

Re: [OpenLayers-Users] Building Openlayers on Windows - build.py

2010-03-16 Thread paweluz
Hi! Thanks a lot for your help. I worked!!! :) I have no idea why my approach did not work, but now it is no important... Thanks one more time ! Poul -- View this message in context: http://n2.nabble.com/Building-Openlayers-on-Windows-build-py-tp4743084p4743474.html Sent from the OpenLayers Us

[OpenLayers-Users] Building Openlayers on Windows - build.py

2010-03-16 Thread paweluz
Hi! I have done some changes to the fiole XMLHttpRequest.js file, and now I want to build Openlayers (deploy to one OpenLayers.js file) but I having some problem... I am using OpenLayers 2.8 on Windows2000 and Python2.6. I opened the cmd and tried this approaches: - D:\GWT\OpenLayers-2.8\OpenLay

Re: [OpenLayers-Users] nsIXMLHttpRequest, NS_ERROR_NOT_INITIALIZED with Vector and WFS layer

2010-03-15 Thread paweluz
I just want to say that I have tried with and without a proxy (geoserver an my application both on the same server), and the problem still appears... Maybe someone had this problem ... Poul -- View this message in context: http://n2.nabble.com/nsIXMLHttpRequest-NS-ERROR-NOT-INITIALIZED-with-Ve

[OpenLayers-Users] NS_ERROR_NOT_INITIALIZED with Vector and WFS layer

2010-03-14 Thread paweluz
Hi! I am using OpenLayers 2.8 ang Geoserver. I have tried two approach - WFS layer - Vector layer with WFSProtocol and all the times I have this error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult:

Re: [OpenLayers-Users] Layer.Vector with Protocol.WFS will not show

2010-03-11 Thread paweluz
Hi! I have very similar problem. I can see my data via WMS and WFS layer but not with Vector layer with WFSProtocol. BTW I use GWT and Openlayers - so it may be a little different but I do not really think so... I use the nightly version of Openlayers... I am trying to display sample data from g

[OpenLayers-Users] GWT WFS Feature name

2010-03-08 Thread paweluz
Hi! I am working with GWT-OL from page http://sourceforge.net/projects/gwt-openlayers/. I was thinking if someone may know the way to get the name of attribute (name of column in the database) dynamically? My idea is not to hardcode the name of attributions in the code. Is there a way to do this?

Re: [OpenLayers-Users] Problem with WFS proxy.cgi

2010-03-02 Thread paweluz
Hi What system do you use?? Win or Linux ?? If Windows I may help you... I was dealing with this problem for about 3 days, and today I have finally done it. I am working with: - system Win 2000 - Geoserver standalone edition 1.6.4 - Python 2.6 - Yo have to install this !! I have tins in folder

Re: [OpenLayers-Users] popup with additional button?

2010-03-02 Thread paweluz
Hi As far I know what you write in popup is simple HTML. So you can write anything you want. I when I was using popup I added an image (in html code), I created divs and anything I wanted... there was no problem...so you just think this is a web page and write html code :) Good luck, Poul -- Vi

Re: [OpenLayers-Users] GWt + Openlayers - problem:GOOGLE layer appears in left corner

2010-03-02 Thread paweluz
If anyone is interest with this problem there is a discussion on the GWT-OL mail list page: http://sourceforge.net/mailarchive/forum.php?forum_name=gwt-openlayers-users Maybe someone has any ideas?? Regards, Poul -- View this message in context: http://n2.nabble.com/GWt-Openlayers-problem-GO

[OpenLayers-Users] Proxy problem

2010-03-01 Thread paweluz
Hi! I know that there is a lot of Proxy issues on the forum but I could not find anything that suits my problem. I am working with Python2.6, Tomcat5.5 on Windows 2000. I have finally configured the tomcat (after several hours) to work with Python CGi scrips. The simple scripts works just great,

Re: [OpenLayers-Users] GWt + Openlayers - problem:GOOGLE layer appears in left corner

2010-02-28 Thread paweluz
Hi Ant! Thanks a lot for your help... I have been looking on the Internet, and lot of people have this same problem but no one gave any solution... I did as you have told me, but this google layer is still in the left corner of the map!! I add the updateMap function just before the center method.

Re: [OpenLayers-Users] WFS + GWT, WFSParams problem

2010-02-25 Thread paweluz
Problem solved thanks to Edvin! There is missing constructor for WFSParam. This code deals with the problem. public class WFSParamsExt extends WFSParams { protected WFSParamsExt(JSObject jsObject) { super(jsObject); } public WFSParamsExt(){

[OpenLayers-Users] WFS + GWT

2010-02-25 Thread paweluz
Hi! I have no idea what is going on but I can not create the simplest WFS layer !! My code: WFSOptions wfsOptions = new WFSOptions(); WFSParams wfsParams =new WFSParams();// ERROR !!! wfsParams.getJSObject().setProperty( "typename", "topp:zielona_openstreets");

Re: [OpenLayers-Users] GWt + Openlayers - problem:GOOGLE layer appears in left corner

2010-02-24 Thread paweluz
Hi And! Thanks for your help. I do not have any method updateSize() on my map... Below is my code...I hope you could help me... I removed the WMS layer from the code, because with or without it I still got the same problem... private void initializeGooglLayer(){ GoogleOptions goo

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-23 Thread paweluz
Hi! I move the topic here: http://n2.nabble.com/GWt-Openlayers-problem-GOOGLE-layer-appears-in-left-corner-td4619582.html#a4619582 cheers, Poul -- View this message in context: http://n2.nabble.com/SelectFeature-control-and-click-event-on-marker-tp2186747p4619594.html Sent from the OpenLayer

[OpenLayers-Users] GWt + Openlayers - problem:GOOGLE layer appears in left corner

2010-02-23 Thread paweluz
Hi! I am using GTW_OpenLayers from http://sourceforge.net/projects/gwt-openlayers/ page. I have google and wms layer. The problem is: When I load the page my map looks like this: http://i45.tinypic.com/e9aqvn.jpg I try to zoom in, zoom out, move on the map, the google layer does not appear on t

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-23 Thread paweluz
Hi... Sorry for writing so late but I wasn't at work. I used as you said OL from this page http://dev.openlayers.org/nightly/OpenLayers.js and still this same. Still when I want to use google layer I have you max and min webbrowser or start and close firebug e.g. What is wrong?? Are you sure that

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread paweluz
Hi Andreas! I have tried using Openlayers2.7 and 2.8, and I still have this same problem? What version should I use -> http://openlayers.org/download/ ?? Regards, Poul -- View this message in context: http://n2.nabble.com/SelectFeature-control-and-click-event-on-marker-tp2186747p4591932.html

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread paweluz
I have this same problem. Did anyone solve it?? Please write agul wrote: > > Hi David I faced the sama problem but I couldnt solve if you find a way > please write... > > David Potts wrote: >> >> >> Hi >> >> Am trying to load a google map via the gwt plug in and its not working. >> >

Re: [OpenLayers-Users] GWT and Openlayers

2010-02-18 Thread paweluz
Hi! I know that the post is actually pretty old, but maybe you still remember what library did you choose, and why? I am looking for a java library too, I was actually thinking about using gwt-openlayers. I made an application using just js Openlayers and now I am tyring to rewrite it with GWT +

Re: [OpenLayers-Users] rewrite 00-map-with-wms.html in GWT and org.gwtopenmaps.openlayers library

2010-02-18 Thread paweluz
Hi Jim! I have this same problem Did you manage to deal with it?? I tried everything, on different server (glassfish, Jetty) and the problem still occurs. Please write to me whether you found the solution... Cheers, Poul www.gwtorm.com wrote: > > Anybody uses GWT and org.gwtopenmaps libra

Re: [OpenLayers-Users] Can't update a feature for which there is no FID (WFS-T)

2010-02-12 Thread paweluz
Hi! Oh, I see now what you meant. Thanks for your help, I am going to look into it... Cheers, Poul -- View this message in context: http://n2.nabble.com/Can-t-update-a-feature-for-which-there-is-no-FID-WFS-T-tp4547884p4560973.html Sent from the OpenLayers Users mailing list archive at Nabble.c

Re: [OpenLayers-Users] Can't update a feature for which there is no FID (WFS-T)

2010-02-10 Thread paweluz
Hi! Thanks for your help. I try to use my_wfs_layer.refresh({force:true }) but it works this same. I am using the Openlayer.state.INSERT for adding new data into database. I am also using Layer.WFS, not vector. When I try to use Openlayers.State.SAVE like you told me to I got an error: Błąd: u

[OpenLayers-Users] Can't update a feature for which there is no FID (WFS-T)

2010-02-10 Thread paweluz
Hi! I have problem with WFS-T ADD state. I my application the user is able to add, update and delete a feature from map. The problem appears if: 1. User draw new geometry on map, fill out the attributes of new object and click SAVE to database. 2. Then user click on the new object on map. The att

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-10 Thread paweluz
Solved! The Modify control uses unselectFeature and selectFeature method. Only the onselect control uses unselect and select method. Now everything works fine. Thanks for your help Alex!! cheers, Poul -- View this message in context: http://n2.nabble.com/Modify-object-other-then-from-muse-clic

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-09 Thread paweluz
Hi Alexandre! Thanks for your help. The first part works just great. But there is an error in the second part, when I change the status of checkbox from true to false. My code is below: else { drawControls["modify_w

[OpenLayers-Users] Selection disappears after zooming

2010-02-08 Thread paweluz
Hi! I am using WFS layer on may map with modify and select control. After I zoom in or out the selected geometry in no longer selected. This same goes with modify. Is there a way, maybe some option on map that allows to remember selection. Or maybe there is a way to select this feature from code?

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-08 Thread paweluz
Hi! Thanks for your help but unfortunately it does not work. Here is my code: My controlls drawControls = { chooseobject: new OpenLayers.Control.SelectFeature( zielona_wfs, {

Re: [OpenLayers-Users] WFS-T Update problem, wrong SRID for changed geometry

2010-02-08 Thread paweluz
Solved! In my map definition I add two lines: projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:900913"), I also have hanged my data in database from 4326 to 900913. Now eve

Re: [OpenLayers-Users] Saving vector features in various formats

2010-02-06 Thread paweluz
Hi Max! I am using Openlayers, Geoserver, Postgis on Windows XP. I was thinking that adding new object into database would be difficult but is was not. I am using only JS. I do not use any PHP or something like that. I add a new object into database with: road geometry, id of road and name of roa

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-06 Thread paweluz
Did anyone have this kind of problem? Anyone?? Is there a way to manage with it? Please... -- View this message in context: http://n2.nabble.com/Modify-object-other-then-from-muse-click-tp4504224p4524858.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

Re: [OpenLayers-Users] WFS-T Update problem, wrong SRID for changed geometry

2010-02-06 Thread paweluz
Hi Max! All my data is in 4326 projection (e.g 15.3445345 15.4242432 ). On my map in the right-lower cornet coordinates are presented in google projection (e.g 678984.455666 654544.34443). Maybe there is a problem, I do not know. Just to remind when I add new geometry everything is all right. Pro

Re: [OpenLayers-Users] Saving vector features in various formats

2010-02-04 Thread paweluz
Hi Yes it is possible. I am actually writing an application that has that functionality. You draw f.g. line on map, then you click save button and geometry is save in the Postgis database. I am using WFS to display data on map and to imput a new data to database. Hope it helps you... I ddd not ge

[OpenLayers-Users] WFS-T Update problem, wrong SRID for changed geometry

2010-02-04 Thread paweluz
Hi I have problem with WFS-T when I update geometry on map. I am using OL 2.8, Geoserver 1.6.4 and PostgreSQL8.3 with Postgis 1.3.6. I am using google layer as a base layer. When I update the geometry on map and do commit() the geometry disappears! I did not know what was happening until I check

Re: [OpenLayers-Users] Style of line which geometry is being changed

2010-02-03 Thread paweluz
Hi Max I made changes in openlayers.js file. Exactly this line: this.virtualStyle.fillOpacity=1;this.virtualStyle.strokeOpacity=1 And everything is ok. The opacity of points is alright. I know it is not maybe the best way to do it, because now I have to move my html file with hole openlayers l

Re: [OpenLayers-Users] Style of line which geometry is being changed

2010-02-03 Thread paweluz
Hi Max You got me... That was my mistake. I changed it to the way it should be, but unfortunately the points have all the time this same opacity. If I change the value form 1 to 0.1 I can not see any response on the map. The opacity of points is this same... So am I guessing this code is not even

[OpenLayers-Users] Modify object other then from muse click

2010-02-02 Thread paweluz
Hi! I hope some of more experiences OpenLayers users could help me with my next problem. I have a line goemetry on map that I can select and modify. When I click on road on map the info about road is presented on the right of the page in 'Information' fieldset. http://img3.imageshack.us/img3/535

Re: [OpenLayers-Users] Style of line which geometry is being changed

2010-02-02 Thread paweluz
Hi Max Sorry I did not writ sooner but unfortunately I was sick... Today I was trying your solution but I got error "Invalid label " like this: Error: invalid label Source code: drawControls["modify_wfs_layer"].initialize: function(zielona_wfs) {

[OpenLayers-Users] Style of line which geometry is being changed

2010-01-27 Thread paweluz
Hi I have problem to set the opacity of a point in a line geometry that is being changed? Points that are on the edges of links have correct opacity = 1. But points between have some opacity that I have no idea how to change? The screen below shows it all. http://img11.imageshack.us/img11/8026/e

Re: [OpenLayers-Users] Way to get name of the feature attribute?

2010-01-22 Thread paweluz
Thanks for your suggestion. I am going to check it as soon as I can. Maybe someone has another idea? Regards, Poul -- View this message in context: http://n2.nabble.com/Way-to-get-name-of-the-feature-attribute-tp4439540p4442973.html Sent from the OpenLayers Users mailing list archive at Nab

Re: [OpenLayers-Users] Removing message after WFS-T transaction

2010-01-22 Thread paweluz
Does anyone know how to do it? Please... any help... Thanks, Poul -- View this message in context: http://n2.nabble.com/Removing-message-after-WFS-T-transaction-tp4439742p4442964.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

[OpenLayers-Users] Removing message after WFS-T transaction

2010-01-22 Thread paweluz
Hi is there a way to remove the alert (message) after adding new object to database with WFS-T. I am using code from demo example from Geoserver. The code is shown below drawControls = { add_object:new OpenLayers.Control.DrawFeature( zielona_wfs, OpenLayer

[OpenLayers-Users] Way to get name of the feature attribute?

2010-01-22 Thread paweluz
Hi I am using WFS-T to add object to the database. Is there a way to get a name of columns in that database. I mean how to get the name of the attribute. I am using these code below to add new object to the database. drawControls = { add_object:new OpenLayers.Control.DrawFea

Re: [OpenLayers-Users] Map style for WFS layer does not work

2010-01-21 Thread paweluz
It's working :jumping: Thanks a lot for your help. So little change and it works. You saved my day :clap: Regards, Poul -- View this message in context: http://n2.nabble.com/Map-style-for-WFS-layer-does-not-work-tp4426355p4432549.html Sent from the OpenLayers Users mailing list archive at Nab

Re: [OpenLayers-Users] Map style for WFS layer does not work

2010-01-20 Thread paweluz
Ok. Now i understand =) I will try it tomorrow at work. Thanks a lot for your help. I hope it would be it. Thanks, Regards Poul -- View this message in context: http://n2.nabble.com/Map-style-for-WFS-layer-does-not-work-tp4426355p4429011.html Sent from the OpenLayers Users mailing list archive

Re: [OpenLayers-Users] Map style for WFS layer does not work

2010-01-20 Thread paweluz
What do you mean? Can you please explain a little bit. I would really appreciate. Regards, Poul -- View this message in context: http://n2.nabble.com/Map-style-for-WFS-layer-does-not-work-tp4426355p4428961.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

Re: [OpenLayers-Users] Map style for WFS layer does not work

2010-01-20 Thread paweluz
Can anyone please help me??? does anyone know how to use style correctly? I would be very grateful... any clue ? Regards, Poul -- View this message in context: http://n2.nabble.com/Map-style-for-WFS-layer-does-not-work-tp4426355p4428845.html Sent from the OpenLayers Users mailing list archive

[OpenLayers-Users] Map style for WFS layer does not work

2010-01-20 Thread paweluz
Hi The WFS layer does not appear on map when I try to use one of these three style definition. First of all definition of my WFS layer: zielona_wfs = new OpenLayers.Layer.WFS( "Zielona Gora WFS - drogi, postgis", "http://localhost:8080/g

Re: [OpenLayers-Users] WFS attributes at init()

2010-01-19 Thread paweluz
Hi! Yes, Yes, Yes This is it :clap: Thanks a lot for your help Regards, Poul -- View this message in context: http://n2.nabble.com/WFS-attributes-at-init-tp4413521p4419769.html Sent from the OpenLayers Users mailing list archive at Nabble.com. __

[OpenLayers-Users] WFS attributes at init()

2010-01-18 Thread paweluz
Hi! I am able to get name of the attribute and the attribute by clicking on the feature on map. I am trying to get only the name of the feature, and use them in init(function), not only in method onFeatureSelect(feature) but also in init(). Is there a way to get to them by using just the WFS_laye

Re: [OpenLayers-Users] Center fo a line geometry? click event...

2010-01-18 Thread paweluz
Hi Marc Thanks for your reply. But unfortunately it does not work. I was aware of method getLonLatFromViewPortPx(evt.xy) on map. but I could not make it work. I used this code: var lonlat; Map.events.register("click", Map, function(e) { lonlat = Map.getLonLatFromViewPortPx(

[OpenLayers-Users] Center fo a line geometry? click event...

2010-01-18 Thread paweluz
Hi I have a problem with openlayers. I Have a roads on my map that are serve by WFS. I used function onFeatureSelect(feature) to get to the attributes of this geometry. I show them in a popup menu. The problem is shown on the screen below. http://zapodaj.net/1574e8d9d73c.jpg.html The blue arrow

Re: [OpenLayers-Users] WFS layer does not appear - solution and question

2010-01-13 Thread paweluz
No... the d:/my_project was just my folder, not connected to any server or something like this. I was thinking that adding openlayer library to my folder will do all the magic but I guess i will not... Everything works just fine with WMS. Why doesn't with WFS? What do you think? -- View this mess

[OpenLayers-Users] WFS layer does not appear - solution and question

2010-01-13 Thread paweluz
Hi I was dealing with this problem some time ago, but finally I have decided to use WMS layer. Now unfortunately I have to use WFS layer because I have to provide functionality of clicking and editing roads on map. I was trying for some time to cope with it and I finally did it. The problem was e

Re: [OpenLayers-Users] WFS Error: OpenLayers.Layer.WFS is not a constructor

2010-01-13 Thread paweluz
Solved I was using wrong Openlayers version. I downloaded the latest version and nowe everything is working just fine :) -- View this message in context: http://n2.nabble.com/WFS-Error-OpenLayers-Layer-WFS-is-not-a-constructor-tp4343721p4347986.html Sent from the OpenLayers Users mailing list ar

Re: [OpenLayers-Users] WFS Error: OpenLayers.Layer.WFS is not a constructor

2010-01-13 Thread paweluz
I forgot to say, that this error only occurs on my local installation. When I am try to check the WFS layer from the on the Openlayers->example page WFS layers is working fine. But when I copy the WFS layer definition from example file, and I try to use it in my page I got error "OpenLayers.Layer.

[OpenLayers-Users] WFS Error: OpenLayers.Layer.WFS is not a constructor

2010-01-13 Thread paweluz
Hi All the time I am trying to use WFS layer I have error : "OpenLayers.Layer.WFS is not a constructor" for egzample var roads = new OpenLayers.Layer.WFS( "Roads", "/geoserver/wfs", {typename: 'topp:tasmania_roads'},

Re: [OpenLayers-Users] Problem with controls on map (SelectFeature, Drawfeature) - OpenLayers, pgRouting

2009-05-03 Thread paweluz
I managed with this!! It is working now! I changed the layers included in the map in init function. I had: map.addLayers([gmap,layer1,layer2,layer3,start,stop,result,edge_results]) I changed it to map.addLayers([gmap,layer1,layer2,layer3]) I removed my routing layers. Then in function toggleC

Re: [OpenLayers-Users] Problem with controls on map (SelectFeature, Drawfeature) - OpenLayers, pgRouting

2009-05-03 Thread paweluz
Can anyone please help me... I still can't figure it out. Please any idea? Anything I would really appreciate... Regards, Paul paweluz wrote: > > Hi! > > First sorry for my poor english :). I am having some problem with the > OpenLayers I guess. > My appl

Re: [OpenLayers-Users] Problem with controls on map (SelectFeature, Drawfeature) - OpenLayers, pgRouting

2009-05-03 Thread paweluz
I am working with OpenLayers 2.7 and Geoserver on Windows XP -- View this message in context: http://n2.nabble.com/Problem-with-controls-on-map-%28SelectFeature%2C-Drawfeature%29---OpenLayers%2C-pgRouting-tp2777336p2777346.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

[OpenLayers-Users] Problem with controls on map (SelectFeature, Drawfeature) - OpenLayers, pgRouting

2009-05-03 Thread paweluz
Hi! First sorry for my poor english :). I am having some problem with the OpenLayers I guess. My application looks like this: http://img245.imageshack.us/img245/3273/aplikacja.jpg http://img245.imageshack.us/img245/3273/aplikacja.jpg It provides searchinkg bus stops and bus lines in my city. A

Re: [OpenLayers-Users] Get point on line?

2009-05-02 Thread paweluz
well.. - get the length of all geometry - ST_Length(geometry) e.g length = 120.0 m - what distance you want your new point e.g in 45.0 m then you do : 120x=45 /120 x=0.375 - then you do select astext(ST_LINE_SUBSTRING( ST_LineMerge(the_geom), 0, 0.375

Re: [OpenLayers-Users] Get point on line?

2009-05-02 Thread paweluz
Hi! You can use this: select astext(ST_LINE_SUBSTRING( ST_LineMerge(the_geom), 0, 0.5)) from table (the_geom is the line geometry) This returns the line geometry equals half of the the_geom. If you have line geometry it returns half of it. Then you can g