Multipart geofences

Leif Neland6 years ago

Can traccar handle geofences with "islands", with proper translation?

For instance, here is Netherland, in 3 parts:

<?xml version="1.0"?>
<MultiGeometry>
    <Polygon>
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>4.23890019286,51.3504270229,0 3.89541801404,51.2056910007,0 3.43986325156,51.2447821855,0 3.37086325679,51.373854107,0 4.23890019286,51.3504270229,0</coordinates>
            </LinearRing>
        </outerBoundaryIs>
    </Polygon>
    <Polygon>
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>5.61194512028,52.369718252,0 5.42221822681,52.2641641069,0 5.13666321335,52.3815270125,0 5.64360910072,52.6011090717,0 5.80350010685,52.5494001051,0 5.86070022593,52.5309091237,0 5.85042719774,52.5242450077,0 5.61194512028,52.369718252,0</coordinates>
            </LinearRing>
        </outerBoundaryIs>
    </Polygon>
    <Polygon>
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>7.20836307409,53.2428091404,0 7.05347321433,52.6495821208,0 6.68958227468,52.5505541255,0 7.06298214823,52.3909641973,0 7.05309116718,52.2377641293,0 6.73639118073,52.0766641174,0 6.82895421414,51.9757540495,0 5.9636092101,51.8066642399,0 6.22208212668,51.4673542372,0 6.09750005541,51.1311001088,0 5.86500014228,51.0453451925,0 6.0808361613,50.9147180926,0 6.01180012435,50.7572730935,0 5.63881817249,50.8488820987,0 5.84713612726,51.1531911176,0 5.23897322671,51.2622820907,0 5.03847307305,51.4869450919,0 4.25236303814,51.3751450878,0 3.4442362581,51.5293731125,0 3.83500008231,51.6066641506,0 4.28360926452,51.4480540669,0 3.9978452064,51.590136211,0 4.20943612674,51.6740911974,0 3.86798203321,51.8121451664,0 4.5743731279,52.4544730397,0 5.42250019403,52.2490181754,0 5.87805411832,52.5094360288,0 5.85357309364,52.6059452622,0 5.60055411384,52.6581911736,0 5.71835421958,52.8380182012,0 5.37080011219,52.8802001291,0 5.36986301541,53.0704091496,0 5.10027318061,52.94805415,0 5.30319117807,52.7048542346,0 5.04959116473,52.6415732123,0 5.02971817516,52.6240910768,0 5.07805409634,52.4161090687,0 4.58200904172,52.4770822177,0 4.73881802204,52.9566642086,0 5.09444507568,52.9591641951,0 5.98166315904,53.3988912421,0 6.74194519743,53.4658272771,0 7.20836307409,53.2428091404,0</coordinates>
            </LinearRing>
        </outerBoundaryIs>
    </Polygon>
</MultiGeometry>

Anton Tananaev6 years ago

I don't think it's supported.