1

It seems that torque isn't working with a "big" polygon. By "big" I mean the size of a french department. Could you confirm that? I would like to show the evolution of jobless rate during the last 30 years.

1
  • 2
    Welcome to GIS.se. In order to improve your chances of getting a useful answer, I would suggest that you add as much detail as you can to your question. For this question, it would be helpful to include information such as a workflow that you tried, the data you used, and possibly any error messages you received. Dec 19, 2013 at 22:27

1 Answer 1

4

The torque library doesn't currently support polygons. We had an older experimental version of the library that had limited support of polygons, but for production we have limited it to points for now. If you want to show polygons overtime, you can recast them as points,

SELECT ST_Centroid(the_geom) the_geom, some_date_column FROM table_name

And then click options => Table from query to store this as a point table. To run the query on the fly and have a torque visualization, you also need to include the point version of the_geom_webmercator, so,

SELECT ST_Centroid(the_geom) the_geom, ST_Centroid(the_geom_webmercator) the_geom_webmercator, some_date_column FROM table_name

And then the Torque option should appear in the visualization wizard. Hope that helps

1
  • Thanks a lot for your quick feedback, I'm going to try !
    – Cedric
    Dec 19, 2013 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.