Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenLayers incorrectly interpreting WFS request when polygon contains repeating vertex #1503

Open
LewisCorker opened this issue Sep 12, 2016 · 0 comments

Comments

@LewisCorker
Copy link

Using OpenLayers 2.12-rc4.

When there is a vertex which appears three times in a polygon (start, middle and end), it is not correctly interpreted. The images attached demonstrate the error.

polygon as displayed on website
polygon as drawn

The GeoJSON response for these polygons is below and the coordinates 112995.56511964,902719.41912787 (highlighted in Bold) appear 3 times:

{"type":"MultiPolygon","coordinates":[[[[112995.56511964,902719.41912787],[112990.6097,902709.6342],[113001.1737,902704.1776],[113006.20810001,902713.9242],[112995.56511964,902719.41912787],[112996.72243237,902721.24872458],[113006.21452666,902736.25478471],[113010.8244713,902743.5426502],[113016.97232828,902753.26180265],[113017.90000001,902754.9],[113018.077271,902755.11203003],[113018.49156502,902755.60755816],[113026.09859907,902746.92355823],[113029.59002225,902747.67743884],[113030.26226825,902747.8225926],[113032.9539471,902738.82166377],[113017.76025242,902703.34903783],[113015.06205657,902692.93274686],[113014.93634842,902691.58138427],[113014.56006664,902687.53635515],[113015.34186343,902684.90141043],[113017.40605549,902677.94431866],[113017.94849864,902676.11608432],[113007.38708243,902647.91089043],[113001.23,902649.27],[113000,902649.51],[112995.24,902650.51],[112964.6748177,902662.12311512],[112966.06997281,902665.35987499],[112969.38097326,902673.04139601],[112974.90286245,902685.02640552],[112978.16579697,902691.67777204],[112979.50903411,902693.8323774],[112984.97926351,902702.60684123],[112989.193,902709.034],[112995.56511964,902719.41912787]]],[[[112973.67,902920.55],[112980.5,902917.4],[112982.71,902917.67],[113000,902906.12],[113030.12,902886.47],[113052.02,902873.16000002],[113063.75,902865.68000001],[113067.53,902863.58],[113067.08,902859.98000001],[113054.03,902842.31],[113039.71,902823.95000001],[113037.13,902821.45000001],[113033.16,902817.61000001],[113032.38,902816.89],[113030.57,902815.22],[113027.92303866,902812.77330219],[113026.13092266,902814.52963044],[113010.9802,902829.3778],[113010.68089492,902829.32813947],[112971.32236834,902822.79779649],[112970.8,902827.5],[112969.2,902840.10000002],[112965.7,902862.30000001],[112964.48,902871.69],[112963.7,902872],[112961.8,902872.9],[112961.3,902873.50000001],[112961,902874.2],[112960.8,902874.9],[112960.7,902875.60000001],[112960.8,902877.1],[112961,902878.3],[112960.7,902879.4],[112959.9,902880.00000001],[112959.1,902880.50000001],[112957.7,902881.60000001],[112956.5,902882.8],[112955,902883.70000001],[112954.1,902883.8],[112953.1,902883.9],[112951.3,902884.60000002],[112950.3,902885.4],[112949.5,902886.30000001],[112948.9,902887.40000001],[112948.5,902888.70000001],[112948.2,902889.9],[112948.2,902891.1],[112948.3,902892.4],[112948.6,902894.10000001],[112949.1,902895.9],[112949.6,902898.8],[112949.5,902900.2],[112949.2,902901.60000002],[112948.28,902906.54],[112947.6,902911.7],[112947.9,902913.50000001],[112949.6,902919.1],[112949.1,902921.8],[112947.7,902924.6],[112947.6,902927.2],[112946.30000001,902932.3],[112943.7,902937.8],[112941.6,902941.20000001],[112940.9,902944.59000001],[112945,902944.5],[112954.6,902934.9],[112955.29000001,902934.3],[112960.55,902930.37],[112964.14,902927.96000001],[112969.21,902924.74],[112971.97,902922.27000001],[112972.85,902921.43000001],[112973.67,902920.55]]]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant