<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
thanks for the suggestion, I think I am a step further! <br>
But here is the next problem: I found something that could make a
problem:<br>
<br>
<span style="box-sizing: border-box; color: rgb(255, 0, 0);
font-family: Consolas, 'Lucida Console', monospace; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 12px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: pre-wrap; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); "> <a
href="http://127.0.0.1:8000/WNT/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8000%2Fredir%2Fcgi-bin%2Ftinyows.exe"
class="webkit-html-resource-link"
title="http://127.0.0.1:8000/WNT/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8000%2Fredir%2Fcgi-bin%2Ftinyows.exe"
style="box-sizing: border-box; color: rgb(84, 84, 84); cursor:
pointer; max-width: 100%; ">http://127.0.0.1:8000/WNT/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8000%2Fredir%2Fcgi-bin%2Ftinyows.exe</a>
500 (Internal Server Error)</span><span style="color: rgb(255,
0, 0); font-family: Consolas, 'Lucida Console', monospace;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 12px;
orphans: 2; text-align: left; text-indent: 0px; text-transform:
none; white-space: pre-wrap; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline
!important; float: none; "> </span><br>
<br>
what do I need to set in the prox.cgi and for what is the
OpenLayers.ProxyHost = "proxy.cgi?url=" good?<br>
<br>
Could that be the problem? <br>
<br>
Am 11/2/2012 3:29 PM, schrieb Serge Dikiy:<br>
</div>
<blockquote
cite="mid:CAP54cjpL=5d6oWfEV=tADaKAV9t14gHe8s2bTaBHNU+1nLHSgA@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
<a class="moz-txt-link-freetext" href="http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329">http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgis-lab.info%2Fforum%2Fviewtopic.php%3Ff%3D41%26t%3D10329</a>
BR
On Fri, Nov 2, 2012 at 4:15 PM, aho <a class="moz-txt-link-rfc2396E" href="mailto:forum.email.a@googlemail.com"><forum.email.a@googlemail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Jukka,
ok, I solved the problem with the requests. The following returns from
tinyOWS:
<?xml version='1.0' encoding='UTF-8'?>
<ows:ExceptionReport
xmlns='<a class="moz-txt-link-freetext" href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>'
xmlns:ows='<a class="moz-txt-link-freetext" href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>'
xmlns:xsi='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'
xsi:schemaLocation='<a class="moz-txt-link-freetext" href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>
<a class="moz-txt-link-freetext" href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd</a>'
version='1.1.0' language='en'>
<ows:Exception exceptionCode='InvalidParameterValue' locator='request'>
<ows:ExceptionText>XML request isn't valid</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Here is the errorlog:
Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START ==
[Fri Nov 02 15:11:46 2012] [QUERY] <wfs:GetFeature
xmlns:wfs=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a> service="WFS" version="1.0.0"
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsdwaterhttp://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature">"http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd water
http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.0.0&typename=water:armature"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>><wfs:Query
typeName="feature:armature" xmlns:feature="water"><ogc:Filter
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><ogc:BBOX><ogc:PropertyName>geometry</ogc:PropertyName><gml:Box
xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a> srsName="EPSG:32740"><gml:coordinates
decimal="." cs="," ts=" ">-2866.3885602952,-1910.9257068634
2866.3885602952,1910.9257068634</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>
[Fri Nov 02 15:11:46 2012] [ERROR] Element
'{<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>}import': Failed to locate a schema at
location
'localhost/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'.
Skipping the import.
[Fri Nov 02 15:11:46 2012] [ERROR] Element
'{<a class="moz-txt-link-freetext" href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>}GetFeature': No matching global declaration
available for the validation root.
[Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid
[Fri Nov 02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN ==
[Fri Nov 02 15:11:46 2012] [EVENT] == TINYOWS SHUTDOWN ==
Has it something to do with the schema? I found a post with something
similar
(<a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html">http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-OpenLayers-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html</a>)
and replaced all my old tinyows files and copied the ones from the ms4w
homepage.
Do you have some more ideas?
Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka:
Hi,
Yes, it seems to be OpenLayers question then. However, do still capture the
requests because without them you cannot understand what happens really. My
guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used
and OpenLayers is requesting data from a place where there are no data.
-Jukka-
aho wrote:
Hi Jukka,
thanks a lot for your answer and the good tips! I tried all of the links
and they are working. Also I checked it in QGIS and there I can load it
too.
So I guess it will be better to write again to the openlayers mailinglist?!
Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka:
Hi,
You must capture the traffic between OpenLayers and TinyOWS. I am using
myself Fiddler2 proxy but I suppose that Firebug can show you what
OpenLayers is sending and high enough TinyOWS logging level will also gather
requests into tinyows log. The software is not important but you just have
to get the requests so you can resend them with a browser or some other tool
that yuo can control and see what happens. You can also include the requests
in your further mails. Then the question will be "OpenLayers is sending this
and TinyOWS is sending back that, what's wrong?" and it will be much easier
to answer.
As always with WFS, start with these requests with a browser before doing
anything with OpenLayers:
<a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0">http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetCapabilities&version=1.1.0</a>
<a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment">http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment</a>
<a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10">http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=GetFeature&version=1.1.0&typename=water:pipeline_segment&maxFeatures=10</a>
If all those requests work you know that TinyOWS works with those basic
requests and if OpenLayers application does not get data the reason in
probably in the application code.
-Jukka Rahkonen-
aho wrote:
hello!
I have a problem with the configuration of tinyows. I have the following
settings in my xml file:
<tinyows online_resource="localhost/cgi-bin/tinyows.exe"
schema_dir="C:\ms4w\apps\tinyows\schema\">
<pg host="localhost" user="postgres" password="postgres"
dbname="watergis" port="5432"/>
<metadata name="TinyOWS Server"
title="TinyOWS Server - WFS-T Frida Service" />
<contact name="TinyOWS Server"
site=<a class="moz-txt-link-rfc2396E" href="http://www.tinyows.org/">"http://www.tinyows.org/"</a>
email=<a class="moz-txt-link-rfc2396E" href="mailto:tinyows-users@lists.maptools.org">"tinyows-users@lists.maptools.org"</a> />
<layer retrievable="1"
writable="1"
ns_prefix="water"
ns_uri=<a class="moz-txt-link-rfc2396E" href="http://localhost/">"http://localhost/"</a>
name="pipeline_segment"
title="pipeline_segment"
table= "pipeline_segment"
srid="32740"
schema="water"/>
</tinyows>
>if I enter tinyows --check I get the following back:
C:\ms4w\Apache\cgi-bin>tinyows --check
TinyOWS version: 1.0.0rc3
FCGI support: Yes
Config File Path: C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML)
PostGIS Version: 2.0.0
PostGIS dsn: host=localhost user=postgres password=postgres
dbname=watergi
s port=5432
Output Encoding: UTF-8
Database Encoding: UTF8
Schema dir: C:\ms4w\apps\tinyows\schema\
Display bbox: Yes
Estimated extent: No
Check schema: Yes
Check valid geoms: Yes
Available layers:
- water.pipeline_segment (32740) -> water.pipeline_segment [RW]
which looks acutally quite good. But when i am trying to include that
into my openlayer map - I always get 0 features back! Here the code for
openlayers:
wfs = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:31467"),
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:32740",
url: <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe">"http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe"</a>,
featureNS : "tows",
featureType: "pipeline_segment",
geometryName: "geometry",
schema:
<a class="moz-txt-link-rfc2396E" href="http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment">"http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=water:pipeline_segment"</a>
})
});
Someone an idea?
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>