ObjectVision / GeoDMS

Source code for the GeoDMS software
https://www.geodms.nl/
Other
7 stars 1 forks source link

Poly2Grid operator using polygon geometry as first argument and result of gridset in second argument results in hard to interpret error message #743

Closed jipclaassens closed 3 months ago

jipclaassens commented 4 months ago

Code snippet:

    unit<wpoint> ProtoDomain :=
        gridset(
            LatLong_base
            , point_yx(-SourceRasterFactor, SourceRasterFactor, LatLong_base) 
            , point_yx(90d, -180d, LatLong_base) //top left
            , wpoint
        );

        unit<dpoint> LatLong_Europe                   := range(LatLong_Base, Lower_Bound(SourceData/RegionalUnits/Continents/GetPerContinentGeometry/Europe/geometry), Upper_Bound(SourceData/RegionalUnits/Continents/GetPerContinentGeometry/Europe/geometry))  {parameter<LatLong_base> geometry (polygon):= SourceData/RegionalUnits/Continents/GetPerContinentGeometry/Europe/geometry;}
attribute<bool> LatLong_per_ProtoDomain (ProtoDomain) := poly2grid(LatLong/geometry, ProtoDomain);

image

MaartenHilferink commented 3 months ago

image