Hi, You found a use case for in-memory H2GIS layer that Michaël was dreaming about a few days ago. Then you could use SQL somehowl like “SELECT DISTINCT geometry_type(the_geom)…”
Meanwhile you could study what Edit – Extract – Extract layers by geometry type does. Now it already sends a message if there is nothing to split, perhaps you could modify it to tell if there IS something to split, but disable the creation of new layers. -Jukka Rahkonen- Lähettäjä: Giuseppe Aruta [mailto:giuseppe.ar...@gmail.com] Lähetetty: 30. joulukuuta 2015 20:57 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] Check if a Geometry collection (or a Feature Schema) is made by a single geometry type Thanks for the answers. I want to develop a way to check if a selected vector layer has different geometries or if it is if one geometry type. I checked on OJ code but I didn' t find what I needed. I will study an alternative way. Best regards Peppe On Dec 29, 2015 6:46 PM, <edgar.sol...@web.de<mailto:edgar.sol...@web.de>> wrote: On 29.12.2015 22:04, Giuseppe Aruta wrote: > Hi, > just a question: > does OJ has a mathod to check if a Geometry Collection of items is made by > a single geometry type (points, linestrings, etc) or not? > best regards and happy new year afaik when OJ loads data and is aware that there is only one geom type in a collection it creates the Multi* variant. apart from that you must probably loop over all contained geoms and detect yourself. a prexisting code would probably do nothing else. ..ede ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net<mailto:Jump-pilot-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel