CHL Unfriendly business Map?

CHL discussions that do not fit into more specific topics

Moderators: carlson1, Charles L. Cotton

User avatar

Topic author
that1otherdude
Member
Posts in topic: 8
Posts: 121
Joined: Sat Oct 18, 2008 9:01 am
Location: League City,TX

CHL Unfriendly business Map?

#1

Post by that1otherdude »

Is anyone here tech savvy enough to figure out how to put together a map of businesses/restaurants/etc.. that post 30.06 or are otherwise CHL unfriendly?

I have two reasons to want something like this:

1. I want to keep fresh on business around me that I frequent now (I haven't received plastic yet) but haven't yet seen the 30.06 posted (I AM looking for them).


More Importantly

2. I am not interested in patronizing businesses that are not gun friendly.


Thanks, and please don't beat me up too bad if this is dumb idea..
"Anyone who thinks that a gun has a personality that makes it apt for evil should admit the fact that he is not making sense, and therefore should stay out of adult discussions."
-Col. Jeff Cooper

:txflag:

kd5zex
Senior Member
Posts in topic: 6
Posts: 396
Joined: Thu Mar 06, 2008 11:06 pm
Location: Marion

Re: CHL Unfriendly business Map?

#2

Post by kd5zex »

It probably would not be a monumental task to take the data from texas3006.com and dump it into a google earth .kmz file. I don't know the format of the .kmz but if I had to guess it is some sort of xml.

ETA:

It is Keyhole Markup Language. Here is an example;

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
  <name>New York City</name>
  <description>New York City</description>
  <Point>
    <coordinates>-74.006393,40.714172,0</coordinates>
  </Point>
</Placemark>
</kml>
If the coordinates of the 30.06 postings were known it would be a trivial matter to write a query to output the aforementioned file.
Last edited by kd5zex on Tue Feb 03, 2009 11:13 pm, edited 1 time in total.
NRA Endowment Member
TSRA Member
User avatar

Topic author
that1otherdude
Member
Posts in topic: 8
Posts: 121
Joined: Sat Oct 18, 2008 9:01 am
Location: League City,TX

Re: CHL Unfriendly business Map?

#3

Post by that1otherdude »

kd5zex wrote:It probably would not be a monumental task to take the data from texas3006.com and dump it into a google earth .kmz file. I don't know the format of the .kmz but if I had to guess it is some sort of xml.

Does anyone know a Moderator over there that might be willing to help get the data necessary to do this?
"Anyone who thinks that a gun has a personality that makes it apt for evil should admit the fact that he is not making sense, and therefore should stay out of adult discussions."
-Col. Jeff Cooper

:txflag:
User avatar

Topic author
that1otherdude
Member
Posts in topic: 8
Posts: 121
Joined: Sat Oct 18, 2008 9:01 am
Location: League City,TX

Re: CHL Unfriendly business Map?

#4

Post by that1otherdude »

Russell wrote:I would be happy to write a quick php script to output the whole entries database into a file with that markup language if wanted, however I do not know how to get coordinates from addresses easily.

Any thoughts?

I sent a link to the Moderators over at Texas3006.com and maybe they can help with this...


(thanks for being willing to help out I am really impressed at the members of this forum..good people)
"Anyone who thinks that a gun has a personality that makes it apt for evil should admit the fact that he is not making sense, and therefore should stay out of adult discussions."
-Col. Jeff Cooper

:txflag:

kd5zex
Senior Member
Posts in topic: 6
Posts: 396
Joined: Thu Mar 06, 2008 11:06 pm
Location: Marion

Re: CHL Unfriendly business Map?

#5

Post by kd5zex »

Russell wrote:I would be happy to write a quick php script to output the whole entries database into a file with that markup language if wanted, however I do not know how to get coordinates from addresses easily.

Any thoughts?

http://www.batchgeocode.com/ I tried this service on a few addresses and it came out dead on. I did not try the batch method so I don't know what kind of output it produces.

You could create the tab delimeted file, use that tool and push the coordinate data into the DB.

This is manual and is not optimal but you could get a .kmz in pretty short order and then work out a way to automate it.
NRA Endowment Member
TSRA Member
User avatar

Topic author
that1otherdude
Member
Posts in topic: 8
Posts: 121
Joined: Sat Oct 18, 2008 9:01 am
Location: League City,TX

Re: CHL Unfriendly business Map?

#6

Post by that1otherdude »

kd5zex wrote:
Russell wrote:I would be happy to write a quick php script to output the whole entries database into a file with that markup language if wanted, however I do not know how to get coordinates from addresses easily.

Any thoughts?

http://www.batchgeocode.com/ I tried this service on a few addresses and it came out dead on. I did not try the batch method so I don't know what kind of output it produces.

You could create the tab delimeted file, use that tool and push the coordinate data into the DB.

This is manual and is not optimal but you could get a .kmz in pretty short order and then work out a way to automate it.

Is there any legwork that a tech-dumb guy (me) :headscratch could do?
"Anyone who thinks that a gun has a personality that makes it apt for evil should admit the fact that he is not making sense, and therefore should stay out of adult discussions."
-Col. Jeff Cooper

:txflag:

kd5zex
Senior Member
Posts in topic: 6
Posts: 396
Joined: Thu Mar 06, 2008 11:06 pm
Location: Marion

Re: CHL Unfriendly business Map?

#7

Post by kd5zex »

that1otherdude wrote:
kd5zex wrote:
Russell wrote:I would be happy to write a quick php script to output the whole entries database into a file with that markup language if wanted, however I do not know how to get coordinates from addresses easily.

Any thoughts?

http://www.batchgeocode.com/ I tried this service on a few addresses and it came out dead on. I did not try the batch method so I don't know what kind of output it produces.

You could create the tab delimeted file, use that tool and push the coordinate data into the DB.

This is manual and is not optimal but you could get a .kmz in pretty short order and then work out a way to automate it.

Is there any legwork that a tech-dumb guy (me) :headscratch could do?
Hang tight, Russell runs texas3006.com and I am sure he is already banging out a script to get this done.

Do you have google earth installed? You can also browse texas3006.com in the meantime and get the list for you area.
NRA Endowment Member
TSRA Member

kd5zex
Senior Member
Posts in topic: 6
Posts: 396
Joined: Thu Mar 06, 2008 11:06 pm
Location: Marion

Re: CHL Unfriendly business Map?

#8

Post by kd5zex »

Russell wrote:It'll be a little bit =) Maybe this weekend. I can do everything but the address-to-coordinate conversions. I will need to look into how to do a batch conversion with batchgeocode.
I used the sample data they provided and it just spits back out another tab delimited file with the coordinates added. I added a "key" field into the input data and the output data did contain the correct info after processing.
NRA Endowment Member
TSRA Member
User avatar

Keith B
Moderator
Posts in topic: 4
Posts: 18503
Joined: Sat Aug 18, 2007 3:29 pm

Re: CHL Unfriendly business Map?

#9

Post by Keith B »

Russell wrote:
kd5zex wrote:
Russell wrote:It'll be a little bit =) Maybe this weekend. I can do everything but the address-to-coordinate conversions. I will need to look into how to do a batch conversion with batchgeocode.
I used the sample data they provided and it just spits back out another tab delimited file with the coordinates added. I added a "key" field into the input data and the output data did contain the correct info after processing.
If you've already done it, I would be happy to send you the output in the keyhole format above, and then you can throw that into geocode if you have the time.

The reason why it would take me a few days to get this done is work + school = no time for Russell
I have also done this type of map before, so if kd5zex is tied up, I would be happy to assist. :smile:
Keith
Texas LTC Instructor, Missouri CCW Instructor, NRA Certified Pistol, Rifle, Shotgun Instructor and RSO, NRA Life Member

Psalm 82:3-4

SkinnyB78
Member
Posts in topic: 2
Posts: 98
Joined: Mon Sep 08, 2008 10:15 am
Location: Houston

Re: CHL Unfriendly business Map?

#10

Post by SkinnyB78 »

:hurry: I am (not so successfully) patiently awaiting this :rolll

It's killing me :drool: I love new ideas like this and love seeing cooperation like you guys are doing.
NRA Life Member, TSRA Member, IDPA member, Motorcyclist, Cyclist, Photographer

kd5zex
Senior Member
Posts in topic: 6
Posts: 396
Joined: Thu Mar 06, 2008 11:06 pm
Location: Marion

Re: CHL Unfriendly business Map?

#11

Post by kd5zex »

I had to zip it to comply with the attachment rules.

Enjoy!

:txflag:
Attachments
texas3006.zip
This is a zipped .kml file. Download, unzip and open in google earth to view.
(16.32 KiB) Downloaded 71 times
NRA Endowment Member
TSRA Member
Post Reply

Return to “General Texas CHL Discussion”