<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Oliver (and others),<br>
    <br>
    &nbsp;Just to narrow down the question<br>
    <br>
    "Does TinyOWS support re-projection in transactions to a PostGIS
    database?"<br>
    <br>
    &nbsp; and a little more background:<br>
    <br>
    My typical use-case is to store my data in PostGIS in a geographic
    SRS such as EPSG:4326, but display (and edit) in EPSG:3857 (aka
    900913).<br>
    <br>
    &nbsp; We're (the Geomoose PSC)&nbsp; in the process of releasing GeoMoose
    v2.6 with a new JavaScript Feature Editor built on OpenLayers and
    using WFS-T, and I'd like to document an example using TinyOWS as
    the WFS-T server.<br>
    <br>
    If the answer is "No, TinyOWS does not support re-projection", then
    I'll just document storing and editing the data in EPSG:3857.<br>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <br>
    On 2/15/2012 9:08 AM, Brent Fraser wrote:
    <blockquote cite="mid:4F3BD883.2010000@geoanalytic.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Oliver,<br>
      <br>
      &nbsp; Geomoose's Feature Editor is JavaScript built on top of
      OpenLayers' WFS-T support.&nbsp; Here's the line from the TinyOWS log<br>
      <br>
      [Wed Feb 15 08:39:17 2012] [QUERY] &lt;wfs:Transaction xmlns:wfs=<a
        moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a>
      service="WFS" version="1.1.0" xsi:schemaLocation=<a
        moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.1.0/wfs.xsdhttp://thinkcentre1/cgi-bin/tinyows.exehttp://thinkcentre1/cgi-bin/tinyows.exe?service=WFS&amp;amp;version=1.1.0&amp;amp;request=DescribeFeatureType&amp;amp;TypeName=censuscities">"http://www.opengis.net/wfs

        http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
        http://thinkcentre1/cgi-bin/tinyows.exe
http://thinkcentre1/cgi-bin/tinyows.exe?service=WFS&amp;amp;version=1.1.0&amp;amp;request=DescribeFeatureType&amp;amp;TypeName=censuscities"</a>
      xmlns:xsi=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>&gt;&lt;wfs:Update

      typeName="feature:censuscities" xmlns:feature=<a
        moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://thinkcentre1/cgi-bin/tinyows.exe">"http://thinkcentre1/cgi-bin/tinyows.exe"</a>&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;the_geom&lt;/wfs:Name&gt;&lt;wfs:Value&gt;&lt;gml:MultiSurface

      xmlns:gml=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
      srsName="EPSG:3857"&gt;&lt;gml:surfaceMember&gt;&lt;gml:Polygon&gt;&lt;gml:exterior&gt;&lt;gml:LinearRing&gt;&lt;gml:posList&gt;-10356035

      5547218 -10356358.189312972 5548684.080055897 -10354924 5548340
      -10354228 5548341 -10353753 5548338 -10353752 5548272 -10353744
      5547729 -10353740 5547434 -10353737 5547256 -10353738 5547232
      -10353738 5547220 -10353785 5546732 -10353784 5546689 -10353783
      5546674 -10353763 5546063 -10353766 5546000 -10353799 5545999
      -10353909 5545996 -10354159 5546030 -10354246 5546041 -10354315
      5546049 -10354339 5546049 -10354887 5546037 -10354900 5546039
      -10354971 5546046 -10355981 5546070 -10356034 5546069 -10356034
      5546119 -10356035 5546523 -10356035 5546587 -10356036 5546723
      -10356035 5546769 -10356035 5546789 -10356031 5546972 -10356032
      5547043 -10356035
      5547218&lt;/gml:posList&gt;&lt;/gml:LinearRing&gt;&lt;/gml:exterior&gt;&lt;/gml:Polygon&gt;&lt;/gml:surfaceMember&gt;&lt;/gml:MultiSurface&gt;&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;statefp10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;27&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;placefp10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;53098&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;placens10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;02396316&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;geoid10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;2753098&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;name10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;Randolph&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;namelsad10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;Randolph

      city&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;lsad10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;25&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;classfp10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;C5&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;pcicbsa10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;N&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;pcinecta10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;N&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;mtfcc10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;G4110&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;funcstat10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;A&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;aland10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;2477617&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;awater10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;182190&lt;/wfs:Value&gt;&amp;


      lt;/wfs
      :Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;intptlat10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;+44.5251562&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;wfs:Property&gt;&lt;wfs:Name&gt;intptlon10&lt;/wfs:Name&gt;&lt;wfs:Value&gt;-093.0193333&lt;/wfs:Value&gt;&lt;/wfs:Property&gt;&lt;ogc:Filter

      xmlns:ogc=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>&gt;&lt;ogc:FeatureId
fid="censuscities.806"/&gt;&lt;/ogc:Filter&gt;&lt;/wfs:Update&gt;&lt;/wfs:Transaction&gt;<br>
      <br>
      &nbsp;&nbsp;&nbsp; The coordinates in the GML polygon are indeed EPSG:3857.&nbsp; That
      is my display/edit projection in OpenLayers so nothing unexpected
      there.&nbsp; My expectation is that TinyOWS would create an UPDATE
      query containing the PostGIS ST_Transform() function to transform
      the geometry from EPSG:3857 to EPSG:4269 (my storage SRS).&nbsp; But it
      doesn't, and it doesn't even specify any SRS for the geometry, so
      the UPDATE fails with:<br>
      <br>
      [Wed Feb 15 08:39:17 2012] [ERROR] ERROR:&nbsp; new row for relation
      "censuscities" violates check constraint "enforce_srid_the_geom"<br>
      <br>
      But I could be wrong; I'm new to WFS-T and TinyOWS, and my
      knowledge of PostGIS is shallow...<br>
      <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
      <br>
      On 2/15/2012 3:05 AM, Olivier Courtin wrote:
      <blockquote
cite="mid:CAD+A4Nz=c-w0sDOmuPLxv4G_r7a9=52LdmqBFQTjqp8ioFo_dg@mail.gmail.com"
        type="cite">On Tue, Feb 14, 2012 at 1:10 AM, Brent Fraser <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>&gt;</span>
        wrote:<br>
        <div class="gmail_quote"><br>
          Brent,<br>
          <br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> I'm alpha testing the
              new Feature Editor within GeoMoose v2.6.&nbsp; It is a
              JavaScript application using OpenLayers 2.11, MS4W 3, and
              PostGIS 1.5 at the backend.<br>
            </div>
          </blockquote>
          <div><br>
            Humm i don't know anything about Feature Editor,<br>
            and anyway, hat is the exact WFS request query sended to
            TinyOWS ?<br>
            (you could use TinyOWS log to grab it) <br>
          </div>
        </div>
        <br>
        --<br>
        Olivier<br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
TinyOWS-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:TinyOWS-users@lists.maptools.org">TinyOWS-users@lists.maptools.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/tinyows-users">http://lists.maptools.org/mailman/listinfo/tinyows-users</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
TinyOWS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TinyOWS-users@lists.maptools.org">TinyOWS-users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/tinyows-users">http://lists.maptools.org/mailman/listinfo/tinyows-users</a>
</pre>
    </blockquote>
  </body>
</html>