[geos-devel] Union of XYZ or XYM polygons
    seboricor 
    seboricor at gmail.com
       
    Mon Feb 13 01:36:57 PST 2017
    
    
  
Hello,
I would like to know if it is planned that GEOS implements union of XYM 
or XYZ polygons ?
I think it would be very interesting that the union of XYZ (or XYM) 
polygons returns an XYZ polygon and not only an XY (something as shown 
in the joined drawing)
It is for a personnal project (isochron implementation of a sailing 
route predictor with R).
Regards
Sébastien SAILLET (France)
PS : the small test I did with R
require(sf)
outer = matrix(c(0,0,111,10,0, 222,10,10,333,0,10,444,0,0,111),ncol=3, 
byrow=TRUE)
pol1 = st_polygon(list(outer), dim="XYZ")
outer2 = matrix(c(5,5,1111,15,5, 
2222,15,15,3333,5,15,4444,5,5,1111),ncol=3, byrow=TRUE)
pol2 = st_polygon(list(outer2), dim="XYZ")
(pol3 = st_union(pol1, pol2))
note that if I use "XYM", the last line returns an error
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
    
    
More information about the geos-devel
mailing list