Working with maps – Creating boundaries.

Tags:
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #770
    Jonathan Sandoe
    Keymaster

    Hello Dany and Filipo,

    I have converted boundary data for Italian regions and put it on the server. It can be referenced as IT_region_boundaries. Here is a small document for demonstration: https://codap.concord.org/app/#shared=74838

    You will note that a couple of the thumbnail icons did not get generated properly. This is likely a bug in our converter, and I will fix it when I can.

    Jonathan

    #771
    Sonny Mohammadzadeh
    Participant

    Hello. I understand that for making state boundaries we need a ‘state’ attribute where we use the state name or abbreviation. What about for the congressional boundaries? That is using lookupBoundary(US_congressional_boundaries,district) what should the entries for the ‘district’ attribute look like? I tried the common abbreviations – e.g. AK-AL, CA-10, NY-19, etc. – but it doesn’t work. It just gives me back “a boundary”. Also, have the districts been updated in the database since PA had there maps redrawn this summer?

    #772
    Bill Finzer
    Keymaster

    Hello Sonny,

    We haven’t provided congressional district boundaries. But we could if you or someone else had a need for them. What are you wanting to do?

    Bill

    #773
    Filippo Spirito
    Participant

    Dear Jonathan,

    I am very satisfied with the work you have done.

    Thank You so much! 😀👍

    Best Regards

    Filippo Spirito

    #777
    Jonathan Sandoe
    Keymaster

    I am glad to help.

    Jonathan

    #778
    Sonny Mohammadzadeh
    Participant

    Bill, I wanted to make some activities for my stats students using the recent election data. I’m confused though. I assumed since US_congressional_boundaries was one of the options for lookupboundary, that that meant the districts were provided. I think I’m misunderstanding something here.

    #779
    Bill Finzer
    Keymaster

    Hi Sonny,

    My bad. I was thinking of census tracts, which we haven’t provided. Thanks for getting back to me!

    So here is a link to an example using congressional districts. And the enclosed screenshot shows the 4 ways that congressional districts can be keyed.

    We haven’t updated the congressional districts for the remapping in Pennsylvania. But we should. I’ll add it to our list!

    Bill

    #781
    Sonny Mohammadzadeh
    Participant

    Thanks so much Bill! That’s awesome! There’s a handful of districts that still don’t show up though. None of the at-large states (ak01, mt01, etc), but then a handful of other districts don’t work either (ut04, tx33-36, sc07, nv04, fl26-27, az09), plus a handful that don’t show up on the graph. I think for the at-large states the syntax might be different, but on the other ones I’m not sure.

    #782
    Sonny Mohammadzadeh
    Participant

    Looks like I fixed the problem with the at-large states. I used 00 instead of 01 and it worked. The other districts I mentioned still don’t show up.

    #6794
    #6795
    Bill Finzer
    Keymaster

    Hello and thanks for your question. The GeoJSON importer plugin is old and buggy. We’ll remove it from the page.

    Importing geojson files is now a native CODAP capability. Simply download the file and drag it into a CODAP document. The result will be a dataset and a map as shown in this shared document.

    I hope this helps,

    Bill

    #6796
    Jonathan Sandoe
    Keymaster

    The basic problem was the GitHub link is a page about the GeoJSON file, not the URL of the file itself. It’s a confusing aspect of GitHub. If you go to that page, then click on “raw”, this is the URL for the GeoJSON file. It is this page that you can download, then drag into CODAP.

    Indeed, you don’t actually have to download it, now that you have the actual GeoJSON url: “https://raw.githubusercontent.com/deldersveld/topojson/master/countries/italy/italy-regions.json”. You can drag the URL over CODAP. Or, in most modern browsers, you can copy the URL to your clipboard, then open the CODAP “import” menu, select “URL”, then paste the URL and click “Import”.

    Jonathan

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.