{"action":"closed","issue":{"url":"https://api.github.com/repos/Oslandia/building-server/issues/1","repository_url":"https://api.github.com/repos/Oslandia/building-server","labels_url":"https://api.github.com/repos/Oslandia/building-server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Oslandia/building-server/issues/1/comments","events_url":"https://api.github.com/repos/Oslandia/building-server/issues/1/events","html_url":"https://github.com/Oslandia/building-server/issues/1","id":174568776,"number":1,"title":"\"lwgeom_to_geojson: geometry type not supported\" Error","user":{"login":"kitzilla","id":1108934,"avatar_url":"https://avatars.githubusercontent.com/u/1108934?v=3","gravatar_id":"","url":"https://api.github.com/users/kitzilla","html_url":"https://github.com/kitzilla","followers_url":"https://api.github.com/users/kitzilla/followers","following_url":"https://api.github.com/users/kitzilla/following{/other_user}","gists_url":"https://api.github.com/users/kitzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/kitzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitzilla/subscriptions","organizations_url":"https://api.github.com/users/kitzilla/orgs","repos_url":"https://api.github.com/users/kitzilla/repos","events_url":"https://api.github.com/users/kitzilla/events{/privacy}","received_events_url":"https://api.github.com/users/kitzilla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-01T16:30:20Z","updated_at":"2016-09-08T16:21:01Z","closed_at":"2016-09-08T16:21:01Z","body":"Hi,\r\nI was attending your 3D workshop @FOSS4G Bonn.\r\nBack home, I am trying to setup building-server and follow the course materials again. \r\n\r\nI have followed the instructions here with no errors;\r\nhttps://github.com/Oslandia/workshop-3d-itowns/blob/master/0_Data/1_Buildings.md\r\nwith a CityGML downloaded from here, which I believe identical to one of the workshop materials\r\nhttp://donnees.ville.montreal.qc.ca/dataset/maquette-numerique-plateau-mont-royal-batiments-lod2-avec-textures/resource/c3fd01f1-2d0c-4727-b45e-2a9e62caadcd\r\n\r\nI have installed building-server from your repository, configured settings.py and run processDB.py to build the quadtree. All went nicely till this point. (query=getCities is working for my installation)\r\n\r\nNow I tried to run the sample client downloaded from here\r\nhttps://github.com/Oslandia/workshop-3d-itowns/tree/master/www\r\nbut my building-server has crashed with the following error\r\n```\r\nmod_wsgi (pid=26593): Exception occurred processing WSGI script '/data/projects/citygml_montreal/building-server/server.py'.\r\nTraceback (most recent call last):\r\nFile \"/data/projects/citygml_montreal/building-server/server.py\", line 40, in application\r\ncityTable, tile, -offset[0], -offset[1], -offset[2], attributesStr))\r\nInternalError: lwgeom_to_geojson: 'PolyhedralSurface' geometry type not supported\r\n```\r\nThe message says that PostGIS (2.1 for my case) does not support polyhedralsurface whilst your code is written on that assumption. I have checked the sourcecode of the latest PostGIS 2.2.2 but lwgeom_to_geojson and ST_AsGeoJSON seem not supporting polyhedralsurface as well. But strangely, your demo server is creating GeoJson for Polyhedralsurfaces.\r\nhttp://3d.oslandia.com/building?query=getGeometry&city=montreal&format=GeoJSON&tile=0/1/0\r\n\r\nI wonder why my building-server did not go well like yours. Is it the version of GDAL/OGR on which PostGIS is depending? I have already googled the web but could not sort this out...\r\n\r\nMany thanks,\r\nGo Sato"}}
{"actor":{"display_login":"kitzilla"}}