Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async rendering patch broke some datasources #2048

Closed
artemp opened this issue Oct 22, 2013 · 10 comments
Closed

async rendering patch broke some datasources #2048

artemp opened this issue Oct 22, 2013 · 10 comments
Assignees
Milestone

Comments

@artemp
Copy link
Member

artemp commented Oct 22, 2013

topojson, geojson and probably some more datasources are broken via async rendering patch.

I'm looking into it.

@ghost ghost assigned artemp Oct 22, 2013
@springmeyer
Copy link
Member

interesting. not seen this, but can imagine. perhaps something to due with datasources that cache features?

@artemp
Copy link
Member Author

artemp commented Oct 23, 2013

To reproduce

use multiple styles with geojson or topojson plugin e.g

<Layer name="topojson"
       srs="+proj=latlon +datum=WGS84" cache-features="false" >
  <StyleName>countries</StyleName>
  <StyleName>countries2</StyleName>
  <StyleName>labels</StyleName>
  <Datasource>
    <Parameter name="type"><![CDATA[topojson]]></Parameter>
    <Parameter name="file"><![CDATA[/Users/artem/Projects/topojson-parser/data/uk.json]]></Parameter>
  </Datasource>
</Layer>

Symptoms

intermittently missing features in output
enabling feature caching shadows this bug

Fix

Ensure featureset implementations never mutate state of the enclosing data source
topojson and geojson both need to be fixed to work correctly with async rendering

@artemp artemp closed this as completed in 116706f Oct 23, 2013
@artemp
Copy link
Member Author

artemp commented Oct 23, 2013

needs fixing in geojson and probably others plugins

@artemp artemp reopened this Oct 23, 2013
artemp added a commit that referenced this issue Oct 23, 2013
@artemp
Copy link
Member Author

artemp commented Oct 23, 2013

fixed for topojson and geojson, closing

@artemp artemp closed this as completed Oct 23, 2013
@lexman
Copy link
Contributor

lexman commented Oct 23, 2013

nice :)

artemp added a commit that referenced this issue Oct 23, 2013
artemp added a commit that referenced this issue Oct 23, 2013
@springmeyer
Copy link
Member

re-opening and assigning to 2.3.x milestone since I need to backport a similar fix.

@springmeyer springmeyer reopened this Oct 24, 2013
@springmeyer
Copy link
Member

unable to reproduce any apparent problem with Mapnik 2.3.x + geojson plugin + multiple styles on a single layer.

@artemp
Copy link
Member Author

artemp commented Oct 29, 2013

@springmeyer - ^^ is this with 116706f or without ?

@springmeyer
Copy link
Member

Without that backported to 2.3.x.

@springmeyer
Copy link
Member

Nothing needing fixed anymore that I am aware of so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants