<p>The projection set on the command line with -l|--latlong, -m|--merc, or<br>
-E|--proj is now ignored in the flex output. Instead you can set it<br>
individually on all geometry columns using the <code>projection</code> option which<br>
either takes an EPSG code or a few commonly understood string values<br>
such as "merc", "latlong", or "WGS84".</p>
<p>This also makes the flex output ignore the --reproject-area option.<br>
The area is now calculated in web mercator by default and you can<br>
change this by setting the <code>projection</code> option on the area column.<br>
(This currently only allows setting 4326 and 3857, other projections<br>
will not work. We have to fix this later. This is due to the way<br>
the area is calculated from the WKB geometry.)</p>
<p>The osm2pgsql.srid variable is not set any more in the Lua config.</p>
<p>So there are some breaking changes here for the flex output, which<br>
we can still do as it is marked experimental.</p>
<p>With this change the command line options -l, -m, -E, and<br>
--reproject-area, that can be regarded as belonging to the style are not<br>
used any more in the flex output. This completes the move away from<br>
command line option to config file for the flex output.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/1277'>https://github.com/openstreetmap/osm2pgsql/pull/1277</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Set projection in flex output in column config</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-9b4fb00e47679c514f3485f1f31b07f9">docs/flex.md</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-9ed76ae7ff562aab52582412c6ba82c0">flex-config/compatible.lua</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-d4f2a5a3d83fb1d5f311b353d2824eb8">flex-config/geometries.lua</a>
    (23)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-129698f7ed1d22f252aefb520c2532e2">src/flex-table-column.cpp</a>
    (47)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-40191a211ac24a2e6f0c09ca69e1f0d4">src/flex-table-column.hpp</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-201c88ab08659de3ce943d5c6c0cb5a9">src/flex-table.cpp</a>
    (15)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-ac340cae96d5a4d75b0ab519209a338e">src/flex-table.hpp</a>
    (24)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-aa7e6ebc65d3695c7a485b5c1c53d013">src/osmium-builder.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-1ec007a8e654cf27e1889bdc6518924c">src/output-flex.cpp</a>
    (58)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-950d59556601894012e34f978f1d521f">src/output-flex.hpp</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-3dea97423f83302e647a3bab62bf1157">tests/CMakeLists.txt</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-0359c8dd6893a46a23b9e1401b13960d">tests/data/test_output_flex_area.lua</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-8786eecc3e422e9f98cf3ecd3cf617eb">tests/data/test_output_flex_area_3857.lua</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-89ca2d5760c62c23d610657868a2bbb3">tests/data/test_output_flex_area_4326.lua</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-78ccd1fdcb6f16a619eb2c8c19519094">tests/data/test_output_flex_area_mix.lua</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-1599bafcf3eb81f241a11ca59861563f">tests/data/test_output_flex_bbox.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-ff4f0dcb2488d41a0b278427a616ec0b">tests/data/test_output_flex_invalid_geom.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-2d87b970d00d42087b0e0760ff225bb3">tests/data/test_output_flex_line.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-cb460cabb499fca795312aff252352af">tests/data/test_output_flex_stage2.lua</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-6d45f6caaad6875163b3e361eb95a466">tests/test-output-flex-area.cpp</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-0b43c216880ba2f0443c7fcfa0533d3c">tests/test-output-flex-bbox.cpp</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-cfa6c35318bd4dfc647a1f3bb1f0e4b4">tests/test-output-flex-invalid-geom.cpp</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-f34aa435046f49d1bc5ba452580e826a">tests/test-output-flex-line.cpp</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-153ac0f5c4982f24fe30f4ce28aaf1fb">tests/test-output-flex-nogeom.cpp</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277/files#diff-bc1d1d63c12717ce18c871da9452b919">tests/test-output-flex-stage2.cpp</a>
    (27)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1277.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1277.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1277.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1277.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1277">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353V6F4TH5J65M3I6FE3SIQ3RFANCNFSM4SADFGBQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353XHQSF4N2LHDE4ZXO3SIQ3RFA5CNFSM4SADFGB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KTZTV6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1277",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1277",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>