1

Why is it that this shapefile of Washington state, when loaded into QGIS or via D3, appears large and zoomed in, like below: enter image description here

Meanwhile, others, such as this Zillow neighborhoods shapefile ( also for Washington state), when loaded, looks thus: enter image description here

While the first shapefile was loaded at the correct, state scale, the second, neighbourhoods file was loaded at an incorrect scale — a national one. For reference, here's what it looks like at the appropriate scale:

enter image description here

Is there any way to control this behaviour? Can I ensure that the Zillow shapefile of Washington state's neighborhoods loads at a larger, more zoomed in scale?

edit: this happens with geojson and topojson too.

  • 1
    It's because of the Feature Extent that's stored in the shapefile..you could try exporting the shapefile again from the layer and it should rebuild the spatial extent and index, another suggestion is to start editing and make a very minor and reversible change, save, fix and save edits again. the save action should recalculate the feature extent. Of course there could be a very small flyaway polygon on the lower right, try selecting the visible polygons, switch selection and see if there's one selected. – Michael Stimson Mar 9 '18 at 12:22
  • 2
    Or some small polygon far away from the others which you cant see in small scale. – BERA Mar 9 '18 at 12:23
  • 1
    Why is this tagged geojson? – jpmc26 Mar 9 '18 at 13:10
5

Because in that dataset there is one feature that is very far from the other ones.

enter image description here

  • Oddly, even when you remove all other polygons from that shapefile and save as a new layer, this problem persists. I've tried to isolate Seattle in this way but I continue to get the same zoomed out view. – scrollex Mar 9 '18 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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