<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Vector layer returns entire data set</title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.start-tag
        {mso-style-name:start-tag;}
span.attribute-name
        {mso-style-name:attribute-name;}
span.end-tag
        {mso-style-name:end-tag;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-AU link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>My original response is still in moderation, so I should just
report that I have discovered that I have to add the maxExtent property in the
vector layer. It works properly now.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Still, it’s surprising that none of the examples I saw needed to
do that. I thought the maxExtent value would bubble up to the overlay from the base
layer. Also puzzled by the nonsensical values that were being passed by the
layer to the server.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif";
color:gray'>Rohan Parkes</span></b><span style='color:#1F497D'> <br>
<br>
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] <b>On Behalf
Of </b>Bartlomiej Burkot<br>
<b>Sent:</b> Saturday, 31 July 2010 01:20<br>
<b>To:</b> users@openlayers.org<br>
<b>Subject:</b> Re: [OpenLayers-Users] Vector layer returns entire data set<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi Rohan<br>
<br>
1) include the <span style='font-family:"Calibri","sans-serif"'>Singapore’s
projection</span> proj4js definition :<br>
<br>
<o:p></o:p></p>
<pre> <<span class=start-tag>script</span><span class=attribute-name> src</span>="<a
href="view-source:http://mapakrakow.pl/%7Ebbarni/mk4/proj4js/lib/proj4js.js">proj4js/lib/proj4js.js</a>"></<span
class=end-tag>script</span>><o:p></o:p></pre><pre> <<span
class=start-tag>script</span><span class=attribute-name> src</span>="<a
href="view-source:http://mapakrakow.pl/%7Ebbarni/mk4/proj4js/lib/defs/EPSG2180.js">proj4js/lib/defs/EPSG3414.js</a>"></<span
class=end-tag>script</span>><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>2) Configure proxy server: <o:p></o:p></pre><pre> OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";<o:p></o:p></pre><pre> <o:p></o:p></pre><pre>(geoserver work on port 8080)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>3) featureNS - it should be the same URL you provided to GeoServer when you created the namespace.<o:p></o:p></pre><pre>4) check your stylemap object<o:p></o:p></pre><pre>5) don't use the namespace prefix in the featuretype. <o:p></o:p></pre><pre>(<a
href="http://comments.gmane.org/gmane.comp.gis.openlayers.user/12319">http://comments.gmane.org/gmane.comp.gis.openlayers.user/12319</a>)<o:p></o:p></pre><pre> {<o:p></o:p></pre><pre> url: "/MyApp/Proxy.ashx",<o:p></o:p></pre><pre> featureType: "boundary",<o:p></o:p></pre><pre> featurePrefix: "mystore",<o:p></o:p></pre><pre> version: "1.1.0"<o:p></o:p></pre><pre> })<o:p></o:p></pre><pre> <o:p></o:p></pre>
<p class=MsoNormal>6) use:<br>
<br>
<o:p></o:p></p>
<pre>srsName: "EPSG:3414",<o:p></o:p></pre>
<p class=MsoNormal>in Your protocol: new OpenLayers.Protocol.WFS<br>
<br>
<o:p></o:p></p>
<pre>7) try to add: featurePrefix: and schema: parameters to OpenLayers.Protocol.WFS<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>BR<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Bartek <o:p></o:p></pre><pre> <o:p></o:p></pre></div>
</body>
</html>