<reponame>XIThing/esdl-mapeditor
from src.shape import Shape

wkt_geom_coll = "GEOMETRYCOLLECTION(MULTIPOLYGON(((181500 608151.670900693,181500 608440.329099307,181750 608584.670900693,182000 608440.329099307,182000 608151.670900693,181750 608007.329099307,181500 608151.670900693))),MULTIPOLYGON(((182000 608151.670900693,182000 608440.329099307,182250 608584.670900693,182500 608440.329099307,182500 608151.670900693,182250 608007.329099307,182000 608151.670900693))),MULTIPOLYGON(((181000 608151.670900693,181000 608440.329099307,181250 608584.670900693,181500 608440.329099307,181500 608151.670900693,181250 608007.329099307,181000 608151.670900693))))"
crs = "EPSG:28992"

if __name__ == '__main__':

    shp = Shape.parse_wkt(wkt_geom_coll, crs)

    print(shp.get_geojson_feature())
from src.shape import Shape

wkt_geom_coll = "GEOMETRYCOLLECTION(MULTIPOLYGON(((181500 608151.670900693,181500 608440.329099307,181750 608584.670900693,182000 608440.329099307,182000 608151.670900693,181750 608007.329099307,181500 608151.670900693))),MULTIPOLYGON(((182000 608151.670900693,182000 608440.329099307,182250 608584.670900693,182500 608440.329099307,182500 608151.670900693,182250 608007.329099307,182000 608151.670900693))),MULTIPOLYGON(((181000 608151.670900693,181000 608440.329099307,181250 608584.670900693,181500 608440.329099307,181500 608151.670900693,181250 608007.329099307,181000 608151.670900693))))"
crs = "EPSG:28992"

if __name__ == '__main__':

    shp = Shape.parse_wkt(wkt_geom_coll, crs)

    print(shp.get_geojson_feature())