<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=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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 lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi!<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'>I am trying to access the tilestructure generated by the ArcGIS
Server 9.3.<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'>I found the AGS.js on the website, it is to manage the AGS
layers but the fact is that it works only for the first 4 levels of tiling. Deeper
than the fourth level, if more than one AGS layer is added to the map, those
layers do not overlap anymore. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also, they do not coincide with the basemap (in my case a TileCache
layer) that surely works. You can check this behavior at http://dma.jrc.it/testmap/<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'>The layers definition is the following:<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 style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>var</span><span style='font-size:10.0pt;
font-family:"Courier New"'> AGSlayer = <span style='color:blue'>new</span>
OpenLayers.Layer.AGS(<span style='color:#A31515'>"AGS"</span>,<span
style='color:#A31515'>"http://139.191.1.149/arcgiscache/DMAEurope_merc/Layers"</span>,{layername:<span
style='color:#A31515'>'_alllayers'</span>, type: <span style='color:#A31515'>'png'</span>,
format: <span style='color:#A31515'>'image/png'</span>,isBaseLayer: <span
style='color:blue'>false</span>,<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> transitionEffect:
<span style='color:#A31515'>'resize'</span>, wrapDateLine: <span
style='color:blue'>true</span>, tileOrigin: <span style='color:blue'>new</span>
OpenLayers.LonLat(-22041259.177067, 22041259.177067)});<span style='color:green'>//-60112524.6784,
30056262.848000005)});<o:p></o:p></span></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> <span
style='color:blue'>var</span> AGSlayer2 = <span style='color:blue'>new</span>
OpenLayers.Layer.AGS(<span style='color:#A31515'>"AGS2"</span>,<span
style='color:#A31515'>"http://139.191.1.149/arcgiscache/global_test_1/Layers"</span>,{layername:<span
style='color:#A31515'>'_alllayers'</span>, type: <span style='color:#A31515'>'png'</span>,
format: <span style='color:#A31515'>'image/png'</span>,isBaseLayer: <span
style='color:blue'>false</span>,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
transitionEffect: <span
style='color:#A31515'>'resize'</span>, wrapDateLine: <span style='color:blue'>true</span>,
tileOrigin: <span style='color:blue'>new</span> OpenLayers.LonLat(
-22041257.773878, 20855374.584800)});</span><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'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have checked the two tile image folder and the images with the
same row and column indexes are exactly the same. I think it is the OL that
somehow positions the images badly.<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'>Anybody with a similar experience?<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'>Many thanks <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'>S.<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'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] <b>On Behalf
Of </b>Raphael Saldanha<br>
<b>Sent:</b> Tuesday, February 17, 2009 2:10 AM<br>
<b>To:</b> users@openlayers.org<br>
<b>Subject:</b> [OpenLayers-Users] WFS ProxyHost<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi!<br>
<br>
I'm having some troubles on trying to use WFS...<br>
<br>
As suggested in the FAQ, and put the proxy.cgi on cgi-bin Apache folder, and
add the line "AddHandler python-cgi-script .cgi" on httpd.conf, as
suggested in <a href="http://gist.fas.harvard.edu/chgis/?p=14">http://gist.fas.harvard.edu/chgis/?p=14</a>.<br>
<br>
But loading the following page, I receive the error 1012, on Firebug.<br>
<br>
Help please!!!<br>
<br>
<span style='font-family:"Courier New"'><html><br>
<head><br>
<title>IPTU</title><br>
<link rel="stylesheet"
type="text/css" href="<a
href="http://localhost:8080/geoserver/openlayers/theme/default/style.css">http://localhost:8080/geoserver/openlayers/theme/default/style.css</a>"/><br>
<br>
<br>
<br>
<br>
<!-- Import OpenLayers, reduced,
wms read only version --><br>
<script src="<a
href="http://localhost:8080/geoserver/openlayers/OpenLayers.js">http://localhost:8080/geoserver/openlayers/OpenLayers.js</a>"
type="text/javascript"></script><br>
<script defer="defer"
type="text/javascript"><br>
var map;<br>
var quadra;<br>
var imagem;<br>
var wfs;<br>
<br>
OpenLayers.ProxyHost="<a
href="http://localhost:8080/cgi-bin/proxy.cgi/?url=">http://localhost:8080/cgi-bin/proxy.cgi/?url=</a>";<br>
<br>
// pink tile
avoidance<br>
OpenLayers.IMAGE_RELOAD_ATTEMPTS
= 5;<br>
// make OL
compute scale according to WMS spec<br>
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;<br>
<br>
function
init(){<br>
format = 'image/png';<br>
<br>
var bounds = new OpenLayers.Bounds(<br>
497839.91636617144, 7649918.889418672,<br>
499243.91636617144, 7650565.389418672<br>
);<br>
<br>
var options = {<br>
controls: [],<br>
maxExtent: bounds,<br>
maxResolution: 5.484375,<br>
projection: "EPSG:32723",<br>
units: 'm'<br>
<br>
};<br>
<br>
map = new OpenLayers.Map('map', options);<br>
<br>
// Layer QUADRA<br>
quadra = new OpenLayers.Layer.WMS(<br>
"Quadras", "<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>",<br>
{<br>
layers: 'topp:quadra',<br>
transparent: "true",<br>
format: "image/png",<br>
srs: 'EPSG:32723',<br>
height: '345',<br>
width: '800',<br>
styles: '',<br>
tiled: 'true',<br>
tilesOrigin : "497839.91636617144,7649918.889418672"<br>
}<br>
);<br>
<br>
// Layer WFS<br>
wfs = new OpenLayers.Layer.WFS(<br>
"Quadras WFS",<br>
"<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",<br>
{typename: 'topp:quadra'},<br>
{<br>
typename: 'quadra',<br>
featureNS: '<a href="http://www.openplans.org/topp">http://www.openplans.org/topp</a>',<br>
extractAttributes: false<br>
}<br>
);<br>
<br>
//Layer IMAGEM<br>
imagem = new OpenLayers.Layer.WMS(<br>
"WorldView-1", "<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>",<br>
{<br>
layers: 'topp:lavras',<br>
srs: 'EPSG:32723',<br>
height: '345',<br>
width: '800',<br>
styles: '',<br>
format: format,<br>
tiled: 'true',<br>
tilesOrigin : "497839.91636617144,7649918.889418672"<br>
}<br>
);<br>
<br>
<br>
map.addLayers([quadra,wfs,imagem]);<br>
<br>
// build up all controls<br>
map.addControl(new OpenLayers.Control.PanZoomBar({<br>
position: new OpenLayers.Pixel(2, 15)<br>
}));<br>
map.addControl(new OpenLayers.Control.Navigation());<br>
map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
map.zoomToExtent(bounds);<br>
<br>
<br>
<br>
<br>
}<br>
<br>
<br>
</script><br>
</head><br>
<body onload="init()"><br>
<br>
<div id="map"><br>
</div><br>
<br>
</body><br>
</html></span><br>
<br clear=all>
<br>
-- <br>
Regards,<br>
<br>
Raphael Saldanha<br>
<a href="mailto:saldanha.plangeo@gmail.com">saldanha.plangeo@gmail.com</a><o:p></o:p></p>
</div>
</body>
</html>