This isn't currently possible. It's an interesting idea, though, and might be fairly easy to do as an extension to the current code (by generating an initial offset curve which has the desired shape).

Paul Austin wrote:
Is it possible with JTS to take a polygon which has sqaure corners (a
mapsheet square but rotated due to the projection) and create a buffer
from it such that the corners are squared off? I tried the end cap style
square or butt but it made no difference.

Here is the original polygon

POLYGON ((1797894.1999176415 628157.1915035518, 1797824.0932976399
628596.6109235631, 1797753.9863068706 629036.0326674981,
1797683.8789455905 629475.4567337483, 1797613.7712140563
629914.8831207063, 1797543.663112523 630354.3118267683,
1797473.554641249 630793.7428503223, 1797403.4458004911
631233.1761897514, 1797333.3365905043 631672.6118434612,
1797263.227011545 632112.0498098433, 1797193.117063873
632551.4900872735, 1797123.0067477413 632990.9326741584,
1797052.8960634102 633430.3775688717, 1796982.785011134
633869.8247698182, 1796912.6735911716 634309.2742753765,
1796842.561803779 634748.7260839399, 1796772.4496492133
635188.1801938973, 1796702.3371277326 635627.636603632,
1796632.2242395934 636067.0953115365, 1796562.1109850537
636506.556315992, 1796491.9973643706 636946.0196153894,
1796421.8833778012 637385.4852081146, 1796351.7690256038
637824.9530925499, 1796281.6543080346 638264.4232670888,
1796211.5392253534 638703.8957301043, 1796141.423777815
639143.3704799991, 1796423.3824002002 639188.3633832727,
1796705.3384798681 639233.3722181804, 1796987.292015922
639278.3969845781, 1797269.2430074578 639323.4376823222,
1797551.191453578 639368.4943112694, 1797833.137353383
639413.5668712752, 1798115.0807059696 639458.6553621963,
1798397.02151044 639503.7597838882, 1798678.9597658948
639548.8801362077, 1798960.8954714332 639594.0164190093,
1799242.8286261521 639639.1686321506, 1799524.7592291539
639684.3367754864, 1799806.6872795406 639729.5208488721,
1800088.6127764075 639774.7208521646, 1800370.535718859
639819.9367852192, 1800652.4561059908 639865.1686478918,
1800934.373936907 639910.4164400371, 1801216.2892107035
639955.6801615115, 1801498.201926482 640000.9598121699,
1801780.1120833447 640046.2553918678, 1802062.0196803873
640091.566900461, 1802343.9247167122 640136.894337804,
1802625.8271914208 640182.2377037536, 1802907.7271036115
640227.5969981635, 1803189.6244523805 640272.9722208893,
1803471.5192368347 640318.3633717867, 1803753.4114560713
640363.7704507103, 1804035.301109188 640409.193457515,
1804317.1881952866 640454.6323920563, 1804599.0727134692
640500.087254189, 1804880.9546628317 640545.5580437677,
1805162.8340424765 640591.0447606472, 1805444.7108515054
640636.5474046832, 1805726.5850890144 640682.0659757284,
1806008.456754108 640727.6004736396, 1806290.3258458816
640773.1508982703, 1806572.1923634377 640818.7172494745,
1806854.0563058783 640864.2995271087, 1807135.9176722998
640909.8977310257, 1807417.776461806 640955.5118610812,
1807699.632673493 641001.1419171281, 1807981.4863064648
641046.7878990211, 1808263.337359818 641092.4498066148,
1808545.185832656 641138.127639764, 1808827.0317240763
641183.8213983225, 1809108.8750331795 641229.5310821431,
1809390.7157590685 641275.2566910824, 1809672.5539008398
641320.9982249914, 1809954.3894575967 641366.7556837266,
1810236.2224284364 641412.529067141, 1810307.5791920098
640973.2541599683, 1810378.9355842664 640533.9815386357,
1810450.291604947 640094.7112047393, 1810521.6472537876
639655.4431599053, 1810593.002530527 639216.1774057383,
1810664.3574349028 638776.913943857, 1810735.7119666527
638337.6527758734, 1810807.0661255154 637898.393903397,
1810878.4199112286 637459.1373280454, 1810949.7733235303
637019.8830514252, 1811021.1263621591 636580.6310751522,
1811092.4790268526 636141.3814008376, 1811163.8313173503
635702.1340300869, 1811235.1832333892 635262.8889645198,
1811306.5347747095 634823.6462057317, 1811377.885941048
634384.4057553485, 1811449.2367321453 633945.1676149629,
1811520.5871477379 633505.9317861982, 1811591.9371875648
633066.6982706608, 1811663.286851367 632627.4670699462,
1811734.636138882 632188.2381856693, 1811805.985049848
631749.0116194421, 1811877.3335840045 631309.7873728676,
1811948.681741091 630870.5654475512, 1812020.0295208457
630431.3458451033, 1811737.5760696593 630385.4716875153,
1811455.1200268625 630339.613489666, 1811172.6613933602
630293.7712517017, 1810890.200170051 630247.9449737687,
1810607.7363578402 630202.1346560149, 1810325.2699576276
630156.3402985837, 1810042.8009703136 630110.5619016234,
1809760.3293968034 630064.7994652791, 1809477.8552379953
630019.052989698, 1809195.378494795 629973.3224750245,
1808912.8991680997 629927.6079214066, 1808630.4172588163
629881.9093289888, 1808347.932767842 629836.2266979171,
1808065.4456960831 629790.5600283379, 1807782.9560444392
629744.9093203973, 1807500.4638138101 629699.2745742397,
1807217.969005102 629653.6557900123, 1806935.4716192128
629608.0529678604, 1806652.971657048 629562.4661079282,
1806370.4691195083 629516.895210363, 1806087.9640074926 629471.34027531,
1805805.456321908 629425.8013029136, 1805522.9460636533 629380.27829332,
1805240.4332336294 629334.7712466745, 1804957.9178327401
629289.2801631214, 1804675.3998618906 629243.805042808,
1804392.879321976 629198.3458858775, 1804110.3562139017
629152.9026924763, 1803827.8305385713 629107.4754627487,
1803545.3022968858 629062.0641968409, 1803262.7714897445
629016.6688948963, 1802980.2381180534 628971.2895570602,
1802697.702182713 628925.9261834789, 1802415.163684623
628880.5787742948, 1802132.6226246897 628835.2473296551,
1801850.0790038109 628789.9318497032, 1801567.5328228928
628744.6323345844, 1801284.9840828334 628699.3487844421,
1801002.432784539 628654.0811994225, 1800719.8789289095
628608.829579669, 1800437.3225168448 628563.5939253271,
1800154.7635492496 628518.3742365399, 1799872.2020270275
628473.170513453, 1799589.6379510786 628427.9827562096,
1799307.0713223037 628382.810964955, 1799024.502141608
628337.6551398328, 1798741.930409892 628292.5152809871,
1798459.3561280563 628247.3913885625, 1798176.7792970068
628202.2834627023, 1797894.1999176415 628157.1915035518))
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel


--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to