Identify Sex Offender Violation

By Wayne Zhang, Program Analyst II, Marietta, GA

Download the script.

Code Summary
This is the part of script I worked for county sheriff department to search a residence location whether it is within a sex offender’s violation area. When a sheriff official enter a physical address, the tool will give you a list of geocoded addresses. Double click selected address will zoom to the address and identify whether the point within 1000 feet of a school, or a church, or a day care center, or a swimming pool, or a park. A label will display if the point is within the violation area.


2 Responses to Identify Sex Offender Violation

  1. abfras says:


    Can you please post some documentation for this code? The simple text file containing the code that you have provided for download has no comments and no insight into how to use what you have developed. I understand that this was developed for a police application and that the content may be of a sensitive nature; however, perhaps you can create a generic aspx/aspx.vb page in addition to the documentation to better present the component that you have developed.

    Much appreciated.

  2. Michael Todd says:

    Since the original poster hasn’t commented yet, I’ll take a stab at parsing through what their code is doing.

    It appears that they have already defined several layers that contain data about which they’re interested, i.e. pool locations, church locations, child care centers, etc.

    There are three methods, Button1_Click, findLyr, and findviolation. The real meat of the work is done in Button1_Click; findLyr is used to find a requested layer in the default map on the server, and findviolation is used to determine whether the point (the violator’s address) is contained within one of the (I assume) polygons associated with the requested layer (e.g. if the violator’s address is within the 1000 foot polygon surrounding a church, findviolation will return true).

    In the abstract, they take a point, which is defined as the address of the violator, then search each of the layers (church, child care, etc.) to see if that point is contained within one of the polygons on the layer. If the point is located therein (i.e. if findviolation returns true), a string referencing this fact is created and displayed in a label on the web page.

    Hope that helps.

%d bloggers like this: