Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'output': 0.04; 'attribute': 0.05; 'transform': 0.05; 'important,': 0.07; 'linear': 0.07; 'scaling': 0.07; 'tool,': 0.07; 'python': 0.09; 'available)': 0.09; 'skip:[ 40': 0.09; 'subject:script': 0.09; 'url:github': 0.09; 'subject:Help': 0.10; 'subject:python': 0.11; 'library': 0.15; '(where': 0.15; 'adviser': 0.16; 'angle': 0.16; 'authors.': 0.16; 'locations.': 0.16; 'pivot': 0.16; 'python;': 0.16; 'received:169.254.2': 0.16; 'received:exchangelabs.com': 0.16; 'received:prod.exchangelabs.com': 0.16; 'rotation': 0.16; 'translation': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'shape': 0.17; 'appears': 0.18; 'math': 0.20; 'sort': 0.21; 'trying': 0.21; 'libraries': 0.22; 'parse': 0.22; 'wednesday,': 0.22; 'seems': 0.23; 'random': 0.24; 'received:169.254': 0.24; 'idea': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'creating': 0.26; 'am,': 0.27; 'scale': 0.27; 'question': 0.27; 'authors': 0.27; 'fixed': 0.28; 'went': 0.28; 'actual': 0.28; 'reply.': 0.28; 'represent': 0.28; 'post': 0.28; 'gather': 0.29; 'gis': 0.29; 'methods.': 0.29; 'things,': 0.29; 'url:mailman': 0.29; 'points': 0.29; 'received:169': 0.29; 'that.': 0.30; 'actively': 0.30; 'header:Received:8': 0.30; 'code': 0.31; 'point': 0.31; 'asking': 0.32; 'url:python': 0.32; 'file': 0.32; 'addresses': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'certain': 0.33; 'to:addr :python-list': 0.33; 'list': 0.35; 'locations': 0.35; 'programming.': 0.35; 'received:bigfish.com': 0.35; 'there': 0.35; 'list.': 0.35; 'skip:_ 40': 0.35; 'add': 0.36; 'subject:': 0.36; 'created': 0.36; 'michael': 0.36; 'but': 0.36; 'wanted': 0.36; 'url:org': 0.36; 'data.': 0.36; "didn't": 0.36; "i'll": 0.36; 'should': 0.36; 'thank': 0.36; 'charset:us-ascii': 0.36; 'one,': 0.37; 'being': 0.37; 'detail': 0.37; 'sent:': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'comment': 0.38; 'fact': 0.38; 'some': 0.38; 'things': 0.38; 'nothing': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'notice': 0.39; 'google': 0.39; 'where': 0.40; 'help': 0.40; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'address': 0.60; 'remove': 0.61; "you've": 0.61; 'further': 0.61; 'containing': 0.61; 'developed': 0.62; 'back': 0.62; 'distance': 0.62; 'helps': 0.63; 'more': 0.63; 'within': 0.64; 'replying': 0.64; 'making': 0.64; 'details,': 0.65; 'person,': 0.65; 'contact': 0.68; 'articles': 0.69; 'analysis': 0.70; '2013': 0.84; 'protected.': 0.84; 'ready-made': 0.84; 'to:name:python': 0.84; 'utilized': 0.84; 'on?': 0.91 X-Forefront-Antispam-Report: CIP:207.46.4.203; KIP:(null); UIP:(null); IPV:NLI; H:SN2PRD0102HT026.prod.exchangelabs.com; RD:none; EFVD:NLI X-SpamScore: -3 X-BigFish: PS-3(zzbb2dI98dI9371Izz1f42h1d77h1ee6h1202h1e76h1d1ah1d2ahzz17326ah8275bh8275dhz2dh2a8h668h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1155h) From: tkhan10 To: python Subject: RE: Help about finding a python script on geographic masking Thread-Topic: Help about finding a python script on geographic masking Thread-Index: Ac4EhxdBH9odK6p3QbOFddUpPZokewACE0OAAAAgjOoADTgkAAAfAHEl Date: Thu, 7 Feb 2013 14:56:34 +0000 References: <511292C3.30600@gmail.com> , <5112EC54.4030902@gmail.com> In-Reply-To: <5112EC54.4030902@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.27.51.228] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: masonlive.gmu.edu X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360249009 news.xs4all.nl 6948 [2001:888:2000:d::a6]:56320 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38351 Thank you for your reply.=0A= =0A= Actually I wanted to post it on the list but didn't notice that it went onl= y to your email. =0A= =0A= For the shape file part: yes I have a sample patients' data in a shape file= with the patients' address locations (where the lat/long for the addresses= are available) and these actual locations need to be masked. Some arbitrar= y points have to be made to represent these locations so that actual addres= ses (privacy of the patients) can be protected.=0A= =0A= I am very much interested in creating my own script but the fact is that my= adviser wants me to find if there any script available from the people who= did work with these methods. Actually for making my script I just need to = understand detail of these methods so that I will have ideas how I should p= roceed. But I am trying to make my own script and I hope to get help from y= ou and others on that.=0A= =0A= Thank you so much=0A= =0A= ________________________________________=0A= From: Python-list [python-list-bounces+tkhan10=3Dgmu.edu@python.org] on beh= alf of Michael Torrie [torriem@gmail.com]=0A= Sent: Wednesday, February 06, 2013 6:50 PM=0A= To: python=0A= Subject: Re: Help about finding a python script on geographic masking=0A= =0A= Let's keep this on the mailing list. Replying to back to the list.=0A= =0A= On 02/06/2013 10:47 AM, tkhan10 wrote:=0A= > Yes I have some shapefiles where some locations are geocoded. You can=0A= > think it as a layer containing some points. I need to hide the actual=0A= > point locations and create a new locations in a way that further=0A= > analysis on that point layer would not affect the result but i can=0A= > hide the actual point locations.=0A= =0A= It definitely helps when asking questions on the list to include all=0A= these important, relevant details, such as the fact you are trying to=0A= process shapefile data.=0A= =0A= But more questions remain. What are you trying to do with the=0A= shapefile? Are you trying to parse a shapefile, remove certain things,=0A= add other things, and generate a new shapefile? Who or what are you=0A= trying to hid things from? From your comment below I gather you want to=0A= do some sort of transform to the shapefile? And the output is a=0A= shapefile?=0A= =0A= Do have any python code you've been working on? Check out:=0A= =0A= https://github.com/sgillies/shapely=0A= =0A= It appears to be an actively developed GIS library for python. I think=0A= you could use it to read the shape file and then you could program any=0A= transformation you want using math libraries like numpy. There are=0A= other GIS libraries for python; you only have to google to find them.=0A= Though I know nothing of their state or communities.=0A= =0A= > There are some methods available on masking including:: aggregation=0A= > of area or point / affine transportation/ random sample perturbation=0A= > [random points are created within a buffer and then actual locations=0A= > are assigned to random points] / attribute perturbation/ location=0A= > swapping / transformation [[ translation (shift locations at a=0A= > fixed distance and direction); scale (expand or contract points by a=0A= > scaling factor), rotation (rotate points by a fixed angle about a=0A= > pivot point) ]]=0A= =0A= Not being a GIS person or a linear algebra person, I'll take your word=0A= for it.=0A= =0A= Your question seems more to be about finding and using a ready-made=0A= tool, more than about python programming.=0A= =0A= > there are many articles are out there where these methods have been=0A= > utilized and I think for some of these the authors made their own=0A= > script. I am trying to search for any of these types of script. if I=0A= > can find one, I will have idea how to do these maskings.=0A= =0A= You might contact these authors.=0A= --=0A= http://mail.python.org/mailman/listinfo/python-list=0A= =0A=