Gis Tricks

About me

I like working with GIS. I really enjoy figuring out new stuff. There is no better motivation than ‘I don’t think we can do this automatically, we’ll have to manually check all these 1000 of points’. I hate manual work and I am always looking for new ways to improve GIS analysis. What I experience is that there is a huge gap between ‘user-friendly GIS’ and ‘GIS that gets stuff actually done’. Usually proprietary GIS is aimed at a good user experience, whereas Open Source GIS is more focussed on the actual analysis. With the result that it is not that user friendly or that it doesn’t look particularly good. (I hope no one gets offended by that 🙂 )

I blog to bridge the gap between users of GIS and developers of GIS. I like to show what is possible with GIS if you are not afraid to get your hands a little bit dirty. My blog should provide some help for those willing to investigate. I focus mainly on GIS and water management, simply because that’s the field I’m working in.

My background

I am a civil engineer, graduated with the specialization on water management. After my studies in Enschede, I studies the Master of Science of GIMA. Unfortunately I never completed my thesis, but I learned really a lot on GIS from this studies. In my work I get to combine knowledge from both fields, which is a real add-on.

3 thoughts on “About me

  1. uma

    Totally new to any codes ,python.
    i have one problem to solve ….can you help me out…

    problem:
    main folder contains 1000 subfolders with different name again each sub folder contains folder in this folders it contain many shape files .
    i want to select particular shape file with particular name from each folder and merge it into single shape file.

    is it possible

  2. admin Post author

    Hi Uma,

    Congrats on the new version! we are still working with 10.3 🙂
    Of course what you want is possible. Please have a look at this example:
    https://stackoverflow.com/questions/954504/how-to-get-files-in-a-directory-including-all-subdirectories
    The example is only using .log file if you change it to the name of the particular shapefile you’re almost there.
    Here’s an untested version:

    import arcpy
    import os
    import os.path
    #create a n empty list to store the filenames
    list_shapefiles = []
    for dirpath, dirnames, filenames in os.walk(“.”):
    #change name.shp below to the name you need
    for filename in [f for f in filenames if f.endswith(“name.shp”)]:
    list_shapefiles.append( os.path.join(dirpath, filename))
    #and then it is a matter of using arcpy.merge
    # create inputs in a format that arcpy can read it:
    inputs = ‘;’.join(list_shapefiles)
    #change directory below to an existing directory on your computer:
    output = ‘c:/tmp/output.shp’
    arcpy.Merge_management (inputs, output)

    this should work. I don’t have arcpy to test it. let me know!
    When I have more time I’ll turn this into a blog post 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 2 =