<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010>Hi beppe,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010>the projection parameter is at the wrong place. That is
the correct place:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010> var isoline = new
OpenLayers.Layer.Vector("isoline",
{<BR>
strategies: [new
OpenLayers.Strategy.Fixed()],<BR>
projection:
epsg2498,<BR>
protocol: new
OpenLayers.Protocol.HTTP({<BR>
url:
"isoipse_2498.gml",<BR>
format: new
OpenLayers.Format.GML()<BR>
})<BR> });</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=181294914-08042010>and
delete the line</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=181294914-08042010><FONT face=Arial color=#0000ff
size=2>isoline = OpenLayers.Projection.transform(isoline, epsg2498,
map.projection);<BR>that have no effect.</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=181294914-08042010>you have </SPAN>write correctly a gml layer<SPAN
class=181294914-08042010>, but overseen as I, that the projection belongs not to
the protocol.</SPAN><BR></FONT></FONT></FONT></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=181294914-08042010>I have created a little example to show the projection
on the fly with proj4js</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A
href="http://gis.ibbeck.de/OLClient/examples/armenia_900913.html">http://gis.ibbeck.de/OLClient/examples/armenia_900913.html</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=181294914-08042010><FONT face=Arial
color=#0000ff size=2>The gml is in projection EPSG:2498 and map.projection is
EPSG:900913.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=181294914-08042010><FONT face=Arial color=#0000ff
size=2>2.</FONT></SPAN></DIV>
<DIV><SPAN class=181294914-08042010><FONT face=Arial color=#0000ff size=2>if you
want to edit vectors with OpenLayers and then save them, you have to use
WFS-T (with GeoServer, FeatureServer). Or as a simple solution you can use a
serverside script to save your vectors as gml (kml, ...) to your local drive.
Only with strategy save it works not.</FONT></SPAN></DIV>
<DIV><SPAN class=181294914-08042010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=181294914-08042010><FONT face=Arial color=#0000ff
size=2>Arnd</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> Giuseppe Naponiello
[mailto:beppenapo@gmail.com] <BR><B>Gesendet:</B> Donnerstag, 8. April 2010
13:43<BR><B>An:</B> Arnd Wippermann<BR><B>Cc:</B>
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] Just another
trasformation problem ;)<BR></FONT><BR></DIV>
<DIV></DIV>Thanks for suggestion but doesn't works yet!!!<BR>I found a solution
using qgis plugin "ogr2layer", maybe the problem was in the parameters used in
transformation code:<BR><BR># isoline = OpenLayers.Projection.transform(isoline,
epsg2498, map.projection);<BR><BR>new code is:<BR><BR># map.addLayer(new
OpenLayers.Layer.GML("isoipse_2498
GML","../aramus_data/vector/reproj/isoipse_2498.gml"));<BR><BR># var extent =
new
OpenLayers.Bounds(4970294.552162,4901870.266154,4971024.689123,4902439.542244).transform(new
#OpenLayers.Projection("EPSG:2498"), new
OpenLayers.Projection("EPSG:900913"));<BR><BR>and now works!!!<BR><BR>Anyway, I
would like understand how to write correctly a gml layer!<BR><BR>Another
question for you:<BR>the second step is to be able to modify the gml, is it
possible with strategy save?<BR><BR>-beppe-<BR></BODY></HTML>