Hi, If you are using database in backgound perhaps there is no need to convert data. How about creating polygon layer by quering just polygon geometries by adding some SQL into layer DATA definition, and point layer by quering the point geometries with "WHERE polygon_geometry is null"?
-Jukka Rahkonen- -----Alkuperäinen viesti----- Lähettäjä: [EMAIL PROTECTED] puolesta: Tamas Szekeres Lähetetty: la 14.6.2008 17:20 Vastaanottaja: Mark Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Multiple geometry layer Mark, Though a data source may contain multiple geometry types in a single layer you can specify only a single type per layer in mapserver. The various drivers are trying to convert the geometries to the specified target type if possible, however the point to polygon conversions might not be implemented and supported at the moment. Moreover there`s a significant difference how the different type of the layers are rendered and the related parameters are taken into account. For this reason you should probably convert the geometries to a single type at data source level if possible. Best regards, Tamas 2008/6/14 Mark <[EMAIL PROTECTED]>: > Hi all > > I was wondering if it is at all possible to define a layer that uses > multiple geometries specifically point and polygon data? A current project I > am working on requires that where there is no polygon then display a point > instead - from what I have read so far this is not yet an implemented > feature within mapserver. I am trying to avoid having dual layers for points > and polygons for multiple datasets. Worst case would be to use buffered > points but again this is not ideal. I would be grateful for any ideas that > others may have. > > Thanks in advance > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users