Re: Help about finding a python script on geographic masking

Discussion in 'Python' started by Michael Torrie, Feb 6, 2013.

  1. Let's keep this on the mailing list. Replying to back to the list.

    On 02/06/2013 10:47 AM, tkhan10 wrote:
    > Yes I have some shapefiles where some locations are geocoded. You can
    > think it as a layer containing some points. I need to hide the actual
    > point locations and create a new locations in a way that further
    > analysis on that point layer would not affect the result but i can
    > hide the actual point locations.


    It definitely helps when asking questions on the list to include all
    these important, relevant details, such as the fact you are trying to
    process shapefile data.

    But more questions remain. What are you trying to do with the
    shapefile? Are you trying to parse a shapefile, remove certain things,
    add other things, and generate a new shapefile? Who or what are you
    trying to hid things from? From your comment below I gather you want to
    do some sort of transform to the shapefile? And the output is a
    shapefile?

    Do have any python code you've been working on? Check out:

    https://github.com/sgillies/shapely

    It appears to be an actively developed GIS library for python. I think
    you could use it to read the shape file and then you could program any
    transformation you want using math libraries like numpy. There are
    other GIS libraries for python; you only have to google to find them.
    Though I know nothing of their state or communities.

    > There are some methods available on masking including:: aggregation
    > of area or point / affine transportation/ random sample perturbation
    > [random points are created within a buffer and then actual locations
    > are assigned to random points] / attribute perturbation/ location
    > swapping / transformation [[ translation (shift locations at a
    > fixed distance and direction); scale (expand or contract points by a
    > scaling factor), rotation (rotate points by a fixed angle about a
    > pivot point) ]]


    Not being a GIS person or a linear algebra person, I'll take your word
    for it.

    Your question seems more to be about finding and using a ready-made
    tool, more than about python programming.

    > there are many articles are out there where these methods have been
    > utilized and I think for some of these the authors made their own
    > script. I am trying to search for any of these types of script. if I
    > can find one, I will have idea how to do these maskings.


    You might contact these authors.
     
    Michael Torrie, Feb 6, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam-I-Am
    Replies:
    2
    Views:
    295
    Steven Cheng[MSFT]
    May 11, 2004
  2. tkhan10
    Replies:
    0
    Views:
    147
    tkhan10
    Feb 6, 2013
  3. Michael Torrie
    Replies:
    0
    Views:
    153
    Michael Torrie
    Feb 6, 2013
  4. tkhan10
    Replies:
    0
    Views:
    132
    tkhan10
    Feb 7, 2013
  5. Chris Angelico

    Re: finding masking boundary indices

    Chris Angelico, Nov 23, 2013, in forum: Python
    Replies:
    0
    Views:
    77
    Chris Angelico
    Nov 23, 2013
Loading...

Share This Page