RBH's Maps (Now, Atlas Election Entry Script & County Map Generation)
       |           

Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 06:18:26 PM
News: Election Simulator 2.0 Released. Senate/Gubernatorial maps, proportional electoral votes, and more - Read more

  Talk Elections
  About this Site
  The Atlas
  RBH's Maps (Now, Atlas Election Entry Script & County Map Generation)
« previous next »
Pages: 1 [2] 3 4 5 6 7 8
Author Topic: RBH's Maps (Now, Atlas Election Entry Script & County Map Generation)  (Read 145093 times)
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #25 on: January 02, 2007, 07:09:35 PM »


Error: Geographic type Type for Name is not in database. Please check spelling or email Dave

Check to be sure that the header row has been removed from the data file (data file should only include county, city, and state-level data rows and no column titles)
Errors Encountered. Data not entered. Please correct and resubmit.



I get that error now. I was using OpenOffice before and there was no .txt option, so now I am using Excel and saving it as tab-delimited .txt file and still having trouble.

This error means you have extra "stuff" in your data file.  In the case of WA 1972, you have two issues: the column headers are still in the file (first row) and second, all U.S. Counties are in the file when all you want to enter is Washington.  The data file needs to be just the data you are entering, no more, no less.  In your case, the first piece of data in the file needs to be 53001.

What I do is highlight the data from the state I want and copy it to a new blank spreadsheet then simply choose save as tab-delimited text.

I'll think a bit so see if we can make this more versatile.  I'm also now going to try open office and get back to you on its potential.

Thanks.  and thanks for the patience and help here to make this better.
Dave
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #26 on: January 02, 2007, 07:17:44 PM »

Open Office can save as tab-delimited - you  have to choose csv (.txt) and then in the next step, it gives you a choice for delimit character (choose {tab}).  However, it also requires you to choose a text character (" or ').  These would need to be stripped out of the file (I think).
Logged
bgwah
Atlas Icon
*****
Posts: 13,833
United States


Political Matrix
E: -1.03, S: -6.96

Show only this user's posts in this thread
« Reply #27 on: January 02, 2007, 07:19:40 PM »

Thanks, I finally got it to work using Excel. I deleted the top row with the party names and all of the other states. The tables don't work, but I think RBH already mentioned that.

https://uselectionatlas.org/RESULTS/state.php?year=1972&off=5&elect=0&fips=53&f=0

The third party button doesn't work either.

For idiots like me using Excel:
-Select all of the data, right-click format cells, and click "number," there is a check-box to turn off automatic commas. You could also try the "general" thing Dave mentioned earlier.
-There is a plus sign to the left of the states that you click to show the counties of that state (Rob Tongue)
-Delete all states other than the one you entered data for
-Delete the top row where the party names are.
-Save as, save as type tab-delimited .txt
Logged
Rob
Bob
Junior Chimp
*****
Posts: 6,277
United States
Political Matrix
E: -6.32, S: -9.39

Show only this user's posts in this thread
« Reply #28 on: January 02, 2007, 07:31:32 PM »

I made one: Oklahoma Lt. Governor [2006]

Great feature, Dave!
Logged
Shilly
Jr. Member
***
Posts: 590
United States


Show only this user's posts in this thread
« Reply #29 on: January 02, 2007, 07:50:23 PM »

Created one too.

Here it is: https://uselectionatlas.org/RESULTS/state.php?year=2002&off=8&elect=0&fips=17&f=0

Logged
bgwah
Atlas Icon
*****
Posts: 13,833
United States


Political Matrix
E: -1.03, S: -6.96

Show only this user's posts in this thread
« Reply #30 on: January 02, 2007, 08:06:34 PM »

Tried doing the 2004 Washington Democratic Primary for Governor. The page I got after I hit upload showed the map ( https://uselectionatlas.org/SCRIPTS/gen_county_map.php?year=2004&off=5&elect=1&fips=53 ) but the first link to the summary page took me to the 2004 General Election page, and the rest of the links did not work.
Logged
Alcon
Atlas Superstar
*****
Posts: 30,867
United States


Show only this user's posts in this thread
« Reply #31 on: January 02, 2007, 08:38:27 PM »

Excellent.  I got it to work, with the tables working too...but the "county data by graphs" function seems to error out.
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #32 on: January 02, 2007, 08:48:17 PM »
« Edited: January 02, 2007, 08:50:33 PM by Dave Leip »

Most of the linked pages are still a work in progress to get them to look for the data in the new upload table.  I've also disabled the "Primary" election choice for now until I can get a better handle on presenting the data.  It'll be back.

Another suggestion:
Please limit the "Independent" row for true "independent" candidates (typically a strong showing).  Libertarian, Green, US Taxpayers/Constitution, etc. are better in slots 4, 5, etc.

You can also see the most recent list of contributed election content here  These contests will also show up in the state election page, such as: here
Thanks,
Dave  
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #33 on: January 02, 2007, 08:57:51 PM »

Wow, I'll probably be addicted all night making Minnesota maps.
Logged
Rob
Bob
Junior Chimp
*****
Posts: 6,277
United States
Political Matrix
E: -6.32, S: -9.39

Show only this user's posts in this thread
« Reply #34 on: January 02, 2007, 10:22:37 PM »

Dave, the green on this initiative map doesn't appear. I don't know if it was my error or a site glitch.
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #35 on: January 02, 2007, 10:29:29 PM »

Here's my first shot at it: https://uselectionatlas.org/RESULTS/state.php?fips=27&year=2006&f=0&off=9&elect=0

That's the Minnesota AG race this year.

Map works pretty good, so does the tables, but not graphs or individual county data, although appears to be the case with other maps.
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #36 on: January 02, 2007, 10:44:35 PM »

Another minor bug:

Third-party maps are broken (Libertarian broke 10% in Skamania County)

This has been fixed.  If a minor party receives > 5%, they get their own map.
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #37 on: January 02, 2007, 10:45:05 PM »

Dave, the green on this initiative map doesn't appear. I don't know if it was my error or a site glitch.

This glitch happend while I was fixing Alcon's bug.  Corrected.
Logged
Rob
Bob
Junior Chimp
*****
Posts: 6,277
United States
Political Matrix
E: -6.32, S: -9.39

Show only this user's posts in this thread
« Reply #38 on: January 02, 2007, 10:46:32 PM »

Thanks. Smiley
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #39 on: January 02, 2007, 10:50:18 PM »

As practice, I decided to do an easy race in a state with not many counties. So here's AZ Attorney General this year:

https://uselectionatlas.org/RESULTS/state.php?year=2006&off=9&elect=0&fips=4&f=0
Logged
Alcon
Atlas Superstar
*****
Posts: 30,867
United States


Show only this user's posts in this thread
« Reply #40 on: January 02, 2007, 10:59:45 PM »
« Edited: January 02, 2007, 11:03:14 PM by Alcon »

God bless SoS Sam Reed for putting county results for Washington up back to 1970.

I'll be up all night too.  Tongue

Thanks again, Dave!
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #41 on: January 02, 2007, 11:03:26 PM »

Here's my first shot at it: https://uselectionatlas.org/RESULTS/state.php?fips=27&year=2006&f=0&off=9&elect=0

That's the Minnesota AG race this year.

Map works pretty good, so does the tables, but not graphs or individual county data, although appears to be the case with other maps.

Hi,
One error here - the "Write-ins" are listed as being column 10, but the datafile includes them under column 5 - so they don't show up.  I'm going to add a check to the script to catch this.  Also, what is the source of the 633 vote switch?  any idea? a single county data transposed?
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #42 on: January 02, 2007, 11:04:27 PM »

Don't forget to take your time with the data.  Quality counts!
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #43 on: January 02, 2007, 11:23:53 PM »

Here's my first shot at it: https://uselectionatlas.org/RESULTS/state.php?fips=27&year=2006&f=0&off=9&elect=0

That's the Minnesota AG race this year.

Map works pretty good, so does the tables, but not graphs or individual county data, although appears to be the case with other maps.

Hi,
One error here - the "Write-ins" are listed as being column 10, but the datafile includes them under column 5 - so they don't show up.  I'm going to add a check to the script to catch this.  Also, what is the source of the 633 vote switch?  any idea? a single county data transposed?

I'm not sure, the map is the same was one I made earlier so all the counties got the winner's right unless I made an error in the first one. I'll look through it later and try to find the error. And yes, I made that error with the Write-Ins but it appears they just appeared under a blank table. I'll make sure not to do that on any future ones, on the one I'm doing now I have Write-Ins under column 5 with 4 candidates.
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #44 on: January 02, 2007, 11:25:27 PM »

As practice, I decided to do an easy race in a state with not many counties. So here's AZ Attorney General this year:

https://uselectionatlas.org/RESULTS/state.php?year=2006&off=9&elect=0&fips=4&f=0

Great!
Feedback:
Arizona is very good with regard to source information: in this case, the title should be "State of Arizona Official Canvass 2006 General Election - November 7, 2006".  I've made this change.
Dave
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #45 on: January 02, 2007, 11:28:59 PM »

OK, I found the error, the totals in Becker county are transposed.
Logged
ElectionAtlas
Atlas Proginator
YaBB God
*****
Posts: 3,628
United States


P P P
WWW Show only this user's posts in this thread
« Reply #46 on: January 02, 2007, 11:43:36 PM »

OK, I found the error, the totals in Becker county are transposed.

Great.  You should be able to over-write the data with the corrected data.  Thanks for checking!  Quality is important in elections Smiley
Logged
RBH
Sr. Member
****
Posts: 2,210


Show only this user's posts in this thread
« Reply #47 on: January 02, 2007, 11:54:40 PM »

God bless SoS Sam Reed for putting county results for Washington up back to 1970.

I'll be up all night too.  Tongue

Thanks again, Dave!

Washington has an odd format, at least for the 1980 primary results.
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #48 on: January 02, 2007, 11:59:55 PM »

OK, new data is up, looks good but a minor error: The default format for the table is not in alphabetical order
Logged
they don't love you like i love you
BRTD
Atlas Prophet
*****
Posts: 112,706
Ukraine


Political Matrix
E: -6.50, S: -6.67

P P
Show only this user's posts in this thread
« Reply #49 on: January 03, 2007, 01:00:55 AM »

Tried it again and it still didn't work. Oh well.
Logged
Pages: 1 [2] 3 4 5 6 7 8  
« previous next »
Jump to:  


Login with username, password and session length

Terms of Service - DMCA Agent and Policy - Privacy Policy and Cookies

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Page created in 3.269 seconds with 15 queries.