14 Jul 2010 @ 3:15 PM 

I recently was interested in getting some shapefile information quickly into a MySQL database. It seems like it should be a relatively simple task but you never know until you try, right? Well, thanks to the wonderful GDAL there is a great command that should be shared with the world:

ogr2ogr -f "MySQL" MySQL:"geospatial,user=user,host=localhost,password=password" -lco engine=MYISAM shapes.shp

It’s a thing of beauty! One little command line entry will take the entire contents of the shape file and push it into a MySQL database with the geometry. The only catch that I have run into so far was needing to increase a setting for increasing the MySQL allowed packet size. To change that just edit the /etc/my.inf file to include something like:

max_allowed_packet=100M

Works like a dream.

VN:F [1.9.7_1111]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.7_1111]
Rating: 0 (from 0 votes)
Posted By: Wally Atkins
Last Edit: 14 Jul 2010 @ 03:15 PM

EmailPermalinkComments (0)
Tags
Categories: Uncategorized
 08 Jul 2010 @ 8:56 AM 

From Slashdot,

Companies called “fake recyclers” approach well-meaning organizations — charities, churches, and community organizations — and offer to hold a Recycling Day. The charity provides publicity, legitimacy, and a parking lot for the event. On the designated day, well-meaning residents drop off their old electronics for recycling. The fake recycler picks it up in their trucks, hauls it away for shipping, and makes money by exporting it to Chinese or African “recycling” centers. Nobody’s the wiser

This is horrible … I have a bunch of old computers, monitors and peripherals crammed away into my garage because I have not found a decent way to dispose of them. Now even the thought of using a charitable service is not a viable route! The United States and all of the “green” talk needs to turn into actions and, in my opinion, the ease of recycling electronics show be extremely high on the priority list!

via Inside the Fake PC Recycling Market.

VN:F [1.9.7_1111]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.7_1111]
Rating: 0 (from 0 votes)
Posted By: Wally Atkins
Last Edit: 08 Jul 2010 @ 08:56 AM

EmailPermalinkComments (0)
Tags
Categories: Computers

 Last 50 Posts
 Back
Change Theme...
  • Users » 6
  • Posts/Pages » 31
  • Comments » 16
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.