[Qgis-user] Qgis2threejs: Error using Polygon Layer Extrusion
Luigi Pirelli
luipir at gmail.com
Thu Nov 27 12:45:16 PST 2014
reading the code, I suppose you have a record with null geometry...
check your data
for f in layer.getFeatures(request):
feat.clearGeometry()
feat.setQgsFeature(f)
geom = f.geometry()
geom_type == geom.type()
wkb_type = geom.wkbType()
if geom_type == QGis.Point:
regards, Luigi Pirelli
On 27 November 2014 at 17:11, beroubt <beroubt at gmail.com> wrote:
> Hallo,
>
>
>
> I got an error when using a polygon layer in the Qgis2threejs-plugin (Qgis
> 2.6.0, Plugin 0.7.2).
>
>
>
> Traceback (most recent call last):
> File
> "C:/Users/berounba/.qgis2/python/plugins\Qgis2threejs\qgis2threejsdialog.py",
> line 369, in run
> htmlfilename = exportToThreeJS(htmlfilename, context, self.progress)
> File "C:/Users/
> berounba/.qgis2/python/plugins\Qgis2threejs\qgis2threejsmain.py", line 366,
> in exportToThreeJS
> writeVectors(writer)
> File "C:/Users/
> berounba/.qgis2/python/plugins\Qgis2threejs\qgis2threejsmain.py", line 984,
> in writeVectors
> geom_type == geom.type()
> AttributeError: 'NoneType' object has no attribute 'type'
>
>
>
>
>
> What is the reason, are there experiences?
> Is there a necessity to define a type-attribute anywhere or something
> special?
>
>
>
> P.S.: Anything is working well using a Point Layer.
>
>
>
> Thanks a lot.
>
>
>
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list