No subject
Tue Dec 20 00:28:44 EST 2011
call another WFS layer that I am pretty sure it works and it gives me no fe=
atures when debugging with Internet Explorer.
Now I need to find out what's the matter with the configuration of OpenLaye=
rs (I guess)=2C but I don't know what to check/change now....
Thanks for any further help
Ermond
From: erndal02 at hotmail.com
To: tinyows-dev at lists.maptools.org
Date: Wed=2C 11 Apr 2012 19:26:22 +0200
Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with OpenLay=
ers
Hello=2C
I removed the prefix tows and I still have the same issue. The proxy I thin=
k is configured correctly
OpenLayers.ProxyHost =3D "/cgi-bin/proxy.cgi?url=3D"=3B
because the URL: http://localhost:81/cgi-bin/proxy.cgi open in browser gets=
me to the OpenLayers home page (I think this is the way how I can test it =
in Windows)=2C
and I use python 2.72.
I tried almost everything in that small code of JS which configures the WFS=
layer. The table in PostGIS has the SRS 32634 (checked even from QGIS) and=
made the code almost the same like in the example at http://mapserver.org/=
trunk/tinyows/openlayershowtotransactional.html
I just don't know what might be still wrong in my case. Can you please sugg=
est me any other configuration or something else that might cause my proble=
m?
I repeat that I am almost completely new in Apache and I have had some prev=
ious experience in OL and MS4W. The GetFeature query from the browser retur=
ns all the data of the table in GML format=2C so I don't think it might be =
an issue with the database. I have a layer (WMS) that returns the right dat=
a but the WFS just doesn't return any features at all. The code that I have=
at the moment to configure the WFS layer is like this:
wfs =3D new OpenLayers.Layer.Vector("GLP_Zone"=2C {
//styleMap: styles=2C
strategies: [new OpenLayers.Strategy.BBOX()=2C saveStrategy]=2C
projection: new OpenLayers.Projection("EPSG:32634")=2C
//maxExtent: new OpenLayers.Bounds(372272=2C 4512142=2C 381165=2C 4=
505108)=2C =20
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0"=2C
srsName: "EPSG:32634"=2C
url: "http://127.0.0.1:81/cgi-bin/tinyows"=2C
featureNS: "http://www.tinyows.org/"=2C
featureType: "GLP_Zone"=2C
//featurePrefix: "tows"=2C
geometryName: "the_geom"=2C
schema: "http://127.0.0.1:81/cgi-bin/tinyows?service=3Dwfs&requ=
est=3DDescribeFeatureType&version=3D1.1.0&typename=3Dtows:GLP_Zone"
})
})=3B
and the xml file to configure the TinyOWS (config.xml) is like this
<tinyows online_resource=3D"http://127.0.0.1:81/cgi-bin/tinyows.exe"
schema_dir=3D"http://127.0.0.1:81/tinyows/schema/"
log=3D"/tmp/tinyows.log"
log_level=3D"1">
<pg host=3D"localhost" user=3D"postgres" password=3D"postgres" dbname=3D"=
db1" port=3D"5432"/>
<metadata name=3D"TinyOWS Server"
title=3D"Testing Olives" />
<layer retrievable=3D"1"
writable=3D"1"
ns_prefix=3D"tows"
ns_uri=3D"http://www.tinyows.org/"
srid=3D"32634"
schema=3D"public"
name=3D"GLP_Zone"
title=3D"GLP_Zone" />
</tinyows>
I have tried to change the ns_uri (and the featureNS) to http://127.0.0.1/ =
but with no results
Thanks a lot for further help!
From: erndal02 at hotmail.com
To: tinyows-dev at lists.maptools.org
Date: Wed=2C 11 Apr 2012 08:38:56 +0200
Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with OpenLay=
ers
Olivier=2C
First of all I would like to thank you for the fast answer.=20
I have tried it even without the prefix and I based my code mainly in the s=
ample that you provided too. I am not sure about the featureNS what should =
I put there=2C and why is it needed. Maybe the mistake is there. Anyway I t=
ried to comment out the featureNS but still no results. At the moment I can=
not make any further trials since unfortunately I cannot connect to the pc =
that I am configuring the map.
Don't know where else might be the problem.
Thanks
From: olivier.courtin at oslandia.com
Date: Wed=2C 11 Apr 2012 08:25:26 +0200
To: tinyows-dev at lists.maptools.org
Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with OpenLay=
ers
On Apr 11=2C 2012=2C at 8:17 AM=2C Ermond Parllaku wrote:
Ermond=2C
So I guess the service is configured correctly.
Related to your description it is.
It only should be a matter of JS code I have added or maybe any issues wit=
h the versions I am using=85
JS indeed is the problem.
geometryName: "tows:the_geom"=2C
Did you try without tows prefix there ?
Did you consider using this tutorial as an example ?http://mapserver.org/tr=
unk/tinyows/openlayershowtotransactional.html =20
--Olivier CourtinOslandia+33 977 217 501
_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev =20
_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev =20
_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev
=
--_a9583504-49e4-455b-bbf0-69d18932ee00_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
</head>
<body class=3D'hmmessage'><div dir=3D'ltr'>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
<div dir=3D"ltr">Hello=2C<br><br>From what I am seeing is that no WFS layer=
is working. At least I tried to call another WFS layer that I am pretty su=
re it works and it gives me no features when debugging with Internet Explor=
er.<br><br>Now I need to find out what's the matter with the configuration =
of OpenLayers (I guess)=2C but I don't know what to check/change now....<br=
><br>Thanks for any further help<br><br>Ermond<br><br><div><div id=3D"SkyDr=
ivePlaceholder"></div><hr id=3D"stopSpelling">From: erndal02 at hotmail.com<br=
>To: tinyows-dev at lists.maptools.org<br>Date: Wed=2C 11 Apr 2012 19:26:22 +0=
200<br>Subject: Re: [TinyOWS-dev] Problems with showing a WFS feature with =
OpenLayers<br><br>
<meta http-equiv=3D"Content-Type" content=3D"text/html=3B charset=3Dunicode=
">
<meta name=3D"Generator" content=3D"Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px=3B}
.ExternalClass body.ecxhmmessage
{font-size:10pt=3Bfont-family:Tahoma=3B}
</style>
<div dir=3D"ltr">
Hello=2C<br><br>I removed the prefix tows and I still have the same issue. =
The proxy I think is configured correctly<br>OpenLayers.ProxyHost =3D "/cgi=
-bin/proxy.cgi?url=3D"=3B<br>because the URL: http://localhost:81/cgi-bin/p=
roxy.cgi open in browser gets me to the OpenLayers home page (I think this =
is the way how I can test it in Windows)=2C<br>and I use python 2.72.<br><b=
r>I tried almost everything in that small code of JS which configures the W=
FS layer. The table in PostGIS has the SRS 32634 (checked even from QGIS) a=
nd made the code almost the same like in the example at http://mapserver.or=
g/trunk/tinyows/openlayershowtotransactional.html<br>I just don't know what=
might be still wrong in my case. Can you please suggest me any other confi=
guration or something else that might cause my problem?<br><br>I repeat tha=
t I am almost completely new in Apache and I have had some previous experie=
nce in OL and MS4W. The GetFeature query from the browser returns all the d=
ata of the table in GML format=2C so I don't think it might be an issue wit=
h the database. I have a layer (WMS) that returns the right data but the WF=
S just doesn't return any features at all. The code that I have at the mome=
nt to configure the WFS layer is like this:<br><br><font style=3D"" face=3D=
"Courier New"> =3B =3B =3B wfs =3D new OpenLayers.Layer.Vector(=
"GLP_Zone"=2C {</font><font style=3D"" face=3D"Courier New"><br></font><fon=
t style=3D"" face=3D"Courier New"> =3B =3B =3B =3B =3B&=
nbsp=3B =3B //styleMap: styles=2C</font><font style=3D"" face=3D"Courie=
r New"><br></font><font style=3D"" face=3D"Courier New"> =3B =3B&nb=
sp=3B =3B =3B =3B =3B strategies: [new OpenLayers.Strategy.=
BBOX()=2C saveStrategy]=2C</font><font style=3D"" face=3D"Courier New"><br>=
</font><font style=3D"" face=3D"Courier New"> =3B =3B =3B =
=3B =3B =3B =3B projection: new OpenLayers.Projection("EPSG:326=
34")=2C</font><font style=3D"" face=3D"Courier New"><br></font><font style=
=3D"" face=3D"Courier New"> =3B =3B =3B =3B =3B =3B=
 =3B //maxExtent: new OpenLayers.Bounds(372272=2C 4512142=2C 381165=2C =
4505108)=2C =3B =3B =3B =3B =3B =3B =3B </font>=
<font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"C=
ourier New"> =3B =3B =3B =3B =3B =3B =3B protoc=
ol: new OpenLayers.Protocol.WFS({</font><font style=3D"" face=3D"Courier Ne=
w"><br></font><font style=3D"" face=3D"Courier New"> =3B =3B =
=3B =3B =3B =3B =3B =3B =3B =3B =3B version=
: "1.1.0"=2C</font><font style=3D"" face=3D"Courier New"><br></font><font s=
tyle=3D"" face=3D"Courier New"> =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B =3B =3B =3B srsName: "EPSG:32634"=2C</font=
><font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"=
Courier New"> =3B =3B =3B =3B =3B =3B =3B =
=3B =3B =3B =3B url: "http://127.0.0.1:81/cgi-bin/tinyows"=2C</=
font><font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=
=3D"Courier New"> =3B =3B =3B =3B =3B =3B =3B&n=
bsp=3B =3B =3B =3B featureNS: "http://www.tinyows.org/"=2C</fon=
t><font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D=
"Courier New"> =3B =3B =3B =3B =3B =3B =3B =
=3B =3B =3B =3B featureType: "GLP_Zone"=2C</font><font style=3D=
"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New">&n=
bsp=3B =3B =3B =3B =3B =3B =3B =3B =3B =
=3B =3B //featurePrefix: "tows"=2C</font><font style=3D"" face=3D"Couri=
er New"><br></font><font style=3D"" face=3D"Courier New"> =3B =3B&n=
bsp=3B =3B =3B =3B =3B =3B =3B =3B =3B geom=
etryName: "the_geom"=2C</font><font style=3D"" face=3D"Courier New"><br></f=
ont><font style=3D"" face=3D"Courier New"> =3B =3B =3B =3B&=
nbsp=3B =3B =3B =3B =3B =3B =3B schema: "http://127=
.0.0.1:81/cgi-bin/tinyows?service=3Dwfs&=3Brequest=3DDescribeFeatureType=
&=3Bversion=3D1.1.0&=3Btypename=3Dtows:GLP_Zone"</font><font style=3D=
"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New">&n=
bsp=3B =3B =3B =3B =3B =3B =3B })</font><font style=
=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New"=
> =3B =3B =3B })=3B</font><font style=3D"" face=3D"Courier New"=
><br></font><br>and the xml file to configure the TinyOWS (config.xml) is l=
ike this<br><br><font style=3D"" face=3D"Courier New"><=3Btinyows online_=
resource=3D"http://127.0.0.1:81/cgi-bin/tinyows.exe"</font><font style=3D""=
face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New">&nbs=
p=3B schema_dir=3D"http://127.0.0.1:81/tinyows/schema/"</font><font style=
=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New"=
> =3B =3B =3B =3B =3B =3B =3B =3B log=3D"/t=
mp/tinyows.log"</font><font style=3D"" face=3D"Courier New"><br></font><fon=
t style=3D"" face=3D"Courier New"> =3B =3B =3B =3B =3B&=
nbsp=3B =3B =3B log_level=3D"1">=3B</font><font style=3D"" face=
=3D"Courier New"><br></font><font style=3D"" face=3D"Courier New"> =3B =
<=3Bpg host=3D"localhost" user=3D"postgres" password=3D"postgres" dbname=
=3D"db1" port=3D"5432"/>=3B</font><font style=3D"" face=3D"Courier New"><=
br></font><font style=3D"" face=3D"Courier New"> =3B <=3Bmetadata nam=
e=3D"TinyOWS Server"</font><font style=3D"" face=3D"Courier New"><br></font=
><font style=3D"" face=3D"Courier New"> =3B =3B =3B =3B&nbs=
p=3B =3B =3B =3B title=3D"Testing Olives" />=3B</font><font s=
tyle=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier =
New"><br></font><font style=3D"" face=3D"Courier New"> =3B <=3Blayer =
retrievable=3D"1"</font><font style=3D"" face=3D"Courier New"><br></font><f=
ont style=3D"" face=3D"Courier New"> =3B =3B =3B =3B =
=3B =3B =3B =3B writable=3D"1"</font><font style=3D"" face=3D"C=
ourier New"><br></font><font style=3D"" face=3D"Courier New"> =3B =
=3B =3B =3B =3B =3B =3B =3B ns_prefix=3D"tows"</fon=
t><font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D=
"Courier New"> =3B =3B =3B =3B =3B =3B =3B =
=3B ns_uri=3D"http://www.tinyows.org/"</font><font style=3D"" face=3D"Couri=
er New"><br></font><font style=3D"" face=3D"Courier New"> =3B =3B&n=
bsp=3B =3B =3B =3B =3B =3B srid=3D"32634"</font><font s=
tyle=3D"" face=3D"Courier New"><br></font><font style=3D"" face=3D"Courier =
New"> =3B =3B =3B =3B =3B =3B =3B =3B schem=
a=3D"public"</font><font style=3D"" face=3D"Courier New"><br></font><font s=
tyle=3D"" face=3D"Courier New"> =3B =3B =3B =3B =3B&nbs=
p=3B =3B =3B name=3D"GLP_Zone"</font><font style=3D"" face=3D"Couri=
er New"><br></font><font style=3D"" face=3D"Courier New"> =3B =3B&n=
bsp=3B =3B =3B =3B =3B =3B title=3D"GLP_Zone" />=3B</=
font><font style=3D"" face=3D"Courier New"><br></font><font style=3D"" face=
=3D"Courier New"><=3B/tinyows>=3B</font><br><br>I have tried to change =
the ns_uri (and the featureNS) to <font style=3D"" face=3D"Courier New">htt=
p://127.0.0.1/</font> but with no results<br><br>Thanks a lot for further h=
elp!<br><br><div><div id=3D"ecxSkyDrivePlaceholder"></div><hr id=3D"ecxstop=
Spelling">From: erndal02 at hotmail.com<br>To: tinyows-dev at lists.maptools.org<=
br>Date: Wed=2C 11 Apr 2012 08:38:56 +0200<br>Subject: Re: [TinyOWS-dev] Pr=
oblems with showing a WFS feature with OpenLayers<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px=3B}
.ExternalClass body.ecxhmmessage
{font-size:10pt=3Bfont-family:Tahoma=3B}
</style>
<div dir=3D"ltr">
Olivier=2C<br><br>First of all I would like to thank you for the fast answe=
r. <br>I have tried it even without the prefix and I based my code mainly i=
n the sample that you provided too. I am not sure about the featureNS what =
should I put there=2C and why is it needed. Maybe the mistake is there. Any=
way I tried to comment out the featureNS but still no results. At the momen=
t I cannot make any further trials since unfortunately I cannot connect to =
the pc that I am configuring the map.<br>Don't know where else might be the=
problem.<br><br>Thanks<br><br><div><div id=3D"ecxSkyDrivePlaceholder"></di=
v><hr id=3D"ecxstopSpelling">From: olivier.courtin at oslandia.com<br>Date: We=
d=2C 11 Apr 2012 08:25:26 +0200<br>To: tinyows-dev at lists.maptools.org<br>Su=
bject: Re: [TinyOWS-dev] Problems with showing a WFS feature with OpenLayer=
s<br><br>
<div><div>On Apr 11=2C 2012=2C at 8:17 AM=2C Ermond Parllaku wrote:</div><d=
iv><br></div><div>Ermond=2C</div><div><br></div><blockquote><span class=3D"=
ecxApple-style-span" style=3D"border-collapse:separate=3Bfont-style:normal=
=3Bfont-variant:normal=3Bfont-weight:normal=3Bletter-spacing:normal=3Bline-=
height:normal=3Borphans:2=3Btext-align:-webkit-auto=3Btext-indent:0px=3Btex=
t-transform:none=3Bwhite-space:normal=3Bwidows:2=3Bword-spacing:0px=3Bfont-=
size:medium"><div class=3D"ecxhmmessage" style=3D"font-size:10pt"><div dir=
=3D"ltr"><font class=3D"ecxApple-style-span" face=3D"Tahoma"> =3BSo I g=
uess the service is configured correctly.</font></div></div></span></blockq=
uote><div><br></div><div>Related to your description it is.</div><br><block=
quote><span class=3D"ecxApple-style-span" style=3D"border-collapse:separate=
=3Bfont-style:normal=3Bfont-variant:normal=3Bfont-weight:normal=3Bletter-sp=
acing:normal=3Bline-height:normal=3Borphans:2=3Btext-align:-webkit-auto=3Bt=
ext-indent:0px=3Btext-transform:none=3Bwhite-space:normal=3Bwidows:2=3Bword=
-spacing:0px=3Bfont-size:medium"><div class=3D"ecxhmmessage" style=3D"font-=
size:10pt"><div dir=3D"ltr"><font class=3D"ecxApple-style-span" face=3D"Tah=
oma"> It only should be a matter of JS code I have added or maybe any issue=
s with the versions I am using=85</font><br></div></div></span></blockquote=
><div><br></div><div>JS indeed is the problem.</div><br><blockquote><span c=
lass=3D"ecxApple-style-span" style=3D"font-family:'Courier New'=3Bfont-size=
:13px"> =3B  =3B  =3B geometryName: "tows:the_geom"=2C</span></=
blockquote><div><br></div><div>Did you try without tows prefix there ?</div=
><div><br></div><div><br></div><div><br></div><div><br></div><div>Did you c=
onsider using this tutorial as an example ?</div><div><a href=3D"http://map=
server.org/trunk/tinyows/openlayershowtotransactional.html" target=3D"_blan=
k">http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html</a>=
</div><div><span class=3D"ecxApple-style-span" style=3D"font-family:Tahoma=
=3Bfont-size:13px"> =3B  =3B  =3B  =3B  =3B  =3B&nb=
sp=3B</span></div></div><div>
<span class=3D"ecxApple-style-span" style=3D"border-collapse:separate=3Bcol=
or:rgb(0=2C 0=2C 0)=3Bfont-family:Helvetica=3Bfont-style:normal=3Bfont-vari=
ant:normal=3Bfont-weight:normal=3Bletter-spacing:normal=3Bline-height:norma=
l=3Borphans:2=3Btext-align:-webkit-auto=3Btext-indent:0px=3Btext-transform:=
none=3Bwhite-space:normal=3Bwidows:2=3Bword-spacing:0px=3Bfont-size:medium"=
><span class=3D"ecxApple-style-span" style=3D"border-collapse:separate=3Bco=
lor:rgb(0=2C 0=2C 0)=3Bfont-family:Helvetica=3Bfont-style:normal=3Bfont-var=
iant:normal=3Bfont-weight:normal=3Bletter-spacing:normal=3Bline-height:norm=
al=3Borphans:2=3Btext-align:-webkit-auto=3Btext-indent:0px=3Btext-transform=
:none=3Bwhite-space:normal=3Bwidows:2=3Bword-spacing:0px=3Bfont-size:medium=
"><div style=3D"word-wrap:break-word"><div>--</div><div>Olivier Courtin</di=
v><div>Oslandia</div><div>+33 977 217 501</div><div><br></div><div><br></di=
v></div></span><br class=3D"ecxApple-interchange-newline"></span><br class=
=3D"ecxApple-interchange-newline">
</div>
<br><br>_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev</div> </d=
iv>
<br>_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev</div> </d=
iv>
<br>_______________________________________________
TinyOWS-dev mailing list
TinyOWS-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tinyows-dev</div></div>
</div></body>
</html>=
--_a9583504-49e4-455b-bbf0-69d18932ee00_--
More information about the TinyOWS-dev
mailing list