/* This file is part of VoltDB. * Copyright (C) 2008-2017 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ package geospatial; import java.util.Random; import org.voltdb.types.GeographyValue; /** * Defines a set of regions as polygons roughly around the South Bay area in California. */ public class Regions { private static final Random RAND = new Random(888); private static final GeographyValue[] POLYGONS = { GeographyValue.fromWKT("POLYGON ((-121.877094307528 37.393549788232, -121.857799131047 37.402928988778, -121.875569345227 37.414949501508, -121.877094307528 37.393549788232))"), GeographyValue.fromWKT("POLYGON ((-121.937723896967 37.406109873323, -121.948270936942 37.406822679761, -121.956232850697 37.399868826539, -121.956945657135 37.389321786564, -121.949991803913 37.381359872809, -121.939444763937 37.380647066371, -121.931482850183 37.387600919593, -121.930770043745 37.398147959569, -121.937723896967 37.406109873323))"), GeographyValue.fromWKT("POLYGON ((-121.836238386245 37.367375816559, -121.830292925514 37.381400226271, -121.836005605124 37.39552105708, -121.850030014836 37.401466517811, -121.864150845646 37.395753838202, -121.870096306377 37.38172942849, -121.864383626767 37.36760859768, -121.850359217055 37.361663136949, -121.836238386245 37.367375816559))"), GeographyValue.fromWKT("POLYGON ((-121.990803320492 37.323566511634, -121.995730632055 37.307370834623, -121.979534955045 37.30244352306, -121.974607643482 37.318639200071, -121.990803320492 37.323566511634))"), GeographyValue.fromWKT("POLYGON ((-121.971357167486 37.260306030788, -121.961361381973 37.262584890995, -121.96364024218 37.272580676509, -121.973636027693 37.270301816302, -121.971357167486 37.260306030788))"), GeographyValue.fromWKT("POLYGON ((-122.160420417102 37.335312891185, -122.165957489605 37.3263905148, -122.162434003087 37.316498446512, -122.152503214761 37.313085615503, -122.143643210789 37.318721953133, -122.142525754873 37.329163182204, -122.149992314108 37.336546844265, -122.160420417102 37.335312891185))"), GeographyValue.fromWKT("POLYGON ((-122.098136225109 37.431336300026, -122.115050794684 37.419060533836, -122.102775028493 37.402145964261, -122.085860458918 37.414421730451, -122.098136225109 37.431336300026))"), GeographyValue.fromWKT("POLYGON ((-121.790114981429 37.383134841282, -121.79636344619 37.365923698256, -121.779152303164 37.359675233495, -121.772903838403 37.376886376521, -121.790114981429 37.383134841282))"), GeographyValue.fromWKT("POLYGON ((-122.059255156907 37.376163585933, -122.050676544009 37.371594337553, -122.043679993389 37.378341107849, -122.0479345002 37.387080089587, -122.057560480634 37.385734307031, -122.059255156907 37.376163585933))"), GeographyValue.fromWKT("POLYGON ((-122.070415124747 37.342078602196, -122.059857857089 37.343887821811, -122.053672052996 37.352632248821, -122.055481272611 37.363189516478, -122.064225699621 37.369375320571, -122.074782967278 37.367566100956, -122.080968771371 37.358821673947, -122.079159551756 37.348264406289, -122.070415124747 37.342078602196))"), GeographyValue.fromWKT("POLYGON ((-121.811676472986 37.345149569966, -121.812993937728 37.354681283653, -121.820130041728 37.361136149944, -121.829745722618 37.361493865165, -121.837341696441 37.355587050387, -121.839363722627 37.346179569893, -121.834865672651 37.337673288357, -121.825952234086 37.334048389449, -121.816794103899 37.337001003652, -121.811676472986 37.345149569966))"), GeographyValue.fromWKT("POLYGON ((-121.7615029261 37.377354840825, -121.75649997807 37.365337375692, -121.743524693582 37.366381861061, -121.740508474785 37.379044853653, -121.751619633539 37.385826528105, -121.7615029261 37.377354840825))"), GeographyValue.fromWKT("POLYGON ((-121.805222306558 37.406771549585, -121.812650629806 37.398019316393, -121.811714484108 37.386577935211, -121.802962250917 37.379149611962, -121.791520869735 37.380085757661, -121.784092546486 37.388837990852, -121.785028692184 37.400279372034, -121.793780925376 37.407707695283, -121.805222306558 37.406771549585))"), GeographyValue.fromWKT("POLYGON ((-122.006116100962 37.289459224174, -122.011760459403 37.267895147512, -121.992996006457 37.25586337748, -121.975754578314 37.269991411317, -121.983863242654 37.290754786455, -122.006116100962 37.289459224174))"), GeographyValue.fromWKT("POLYGON ((-121.997568540152 37.409414603312, -122.016000688743 37.40906028362, -122.015646369052 37.390628135029, -121.997214220461 37.39098245472, -121.997568540152 37.409414603312))"), GeographyValue.fromWKT("POLYGON ((-122.182683956548 37.259689895897, -122.170422679603 37.256123063745, -122.159989236801 37.263485432605, -122.159240223376 37.27623298856, -122.168739661714 37.284766561973, -122.181334280993 37.282660198011, -122.187540076013 37.271500031699, -122.182683956548 37.259689895897))"), GeographyValue.fromWKT("POLYGON ((-122.096482049875 37.278482685217, -122.08730516972 37.281934132174, -122.087751878916 37.291728419611, -122.097204840538 37.294330175184, -122.102600382918 37.286143861123, -122.096482049875 37.278482685217))"), GeographyValue.fromWKT("POLYGON ((-121.807312199097 37.43008269536, -121.811221164734 37.424397313364, -121.809965048681 37.417613085091, -121.804279666685 37.413704119453, -121.797495438412 37.414960235507, -121.793586472774 37.420645617503, -121.794842588828 37.427429845776, -121.800527970824 37.431338811413, -121.807312199097 37.43008269536))"), GeographyValue.fromWKT("POLYGON ((-122.118570249798 37.352928556994, -122.109770432626 37.368813110194, -122.122158247403 37.382090830544, -122.138614155152 37.374412359813, -122.13639665068 37.35638908357, -122.118570249798 37.352928556994))"), GeographyValue.fromWKT("POLYGON ((-121.880073129207 37.433576269856, -121.898690522765 37.436280014902, -121.90701502811 37.41940932461, -121.893542461795 37.40627891955, -121.876891452551 37.415034573229, -121.880073129207 37.433576269856))"), GeographyValue.fromWKT("POLYGON ((-122.038349410981 37.405397592909, -122.037212465856 37.410014753925, -122.039309369255 37.414282518704, -122.043658956772 37.416203952673, -122.048226008068 37.414879995525, -122.050873549084 37.410930141523, -122.050362765954 37.406202571253, -122.046932659783 37.402909367385, -122.042188215368 37.402591456608, -122.038349410981 37.405397592909))"), GeographyValue.fromWKT("POLYGON ((-122.190059774575 37.423284506276, -122.193969268814 37.401203880402, -122.174177445851 37.390662441789, -122.158035932322 37.40622810031, -122.167851751293 37.426389644947, -122.190059774575 37.423284506276))"), GeographyValue.fromWKT("POLYGON ((-121.984000813632 37.429223163029, -121.967459480503 37.424715858575, -121.955285373778 37.43678742105, -121.959652600183 37.453366287979, -121.976193933312 37.457873592433, -121.988368040036 37.445802029958, -121.984000813632 37.429223163029))"), GeographyValue.fromWKT("POLYGON ((-121.839127353673 37.348525345092, -121.837817089039 37.329607487828, -121.82208887638 37.340201138918, -121.839127353673 37.348525345092))"), GeographyValue.fromWKT("POLYGON ((-121.832869785007 37.255831300194, -121.828728434999 37.271162488243, -121.839934958315 37.28241459658, -121.85528283164 37.278335516869, -121.859424181648 37.26300432882, -121.848217658332 37.251752220482, -121.832869785007 37.255831300194))"), GeographyValue.fromWKT("POLYGON ((-121.849385712276 37.373265101684, -121.863534283384 37.380572891766, -121.876937300794 37.371973764801, -121.876191747098 37.356066847754, -121.86204317599 37.348759057671, -121.84864015858 37.357358184636, -121.849385712276 37.373265101684))"), GeographyValue.fromWKT("POLYGON ((-121.864059086889 37.322883303986, -121.859542567026 37.317684918657, -121.852662301643 37.317974935838, -121.848599270906 37.323534966677, -121.850413019829 37.330178194548, -121.856737758481 37.332902133367, -121.862810829655 37.329655601645, -121.864059086889 37.322883303986))"), GeographyValue.fromWKT("POLYGON ((-122.168516044664 37.336154934467, -122.184470726715 37.355158966178, -122.192951359925 37.331839790358, -122.168516044664 37.336154934467))"), GeographyValue.fromWKT("POLYGON ((-122.03546240617 37.422831282902, -122.040740885647 37.416240215666, -122.039812745943 37.407847178695, -122.033221678707 37.402568699217, -122.024828641736 37.403496838922, -122.019550162258 37.410087906158, -122.020478301963 37.418480943128, -122.027069369199 37.423759422606, -122.03546240617 37.422831282902))"), GeographyValue.fromWKT("POLYGON ((-121.786788629691 37.37490928998, -121.815432564024 37.375594868001, -121.816118142046 37.346950933667, -121.787474207712 37.346265355646, -121.786788629691 37.37490928998))"), GeographyValue.fromWKT("POLYGON ((-122.028319670084 37.354143624005, -122.040841152204 37.354182384754, -122.048678472983 37.344416862756, -122.045929970022 37.332200695258, -122.034665322111 37.326732905549, -122.023367038882 37.332130850803, -122.020542958051 37.344329768145, -122.028319670084 37.354143624005))"), GeographyValue.fromWKT("POLYGON ((-122.114000967447 37.427059806787, -122.124141031109 37.434241718781, -122.136525214573 37.433225475271, -122.145358820762 37.424486587891, -122.146508507165 37.412114079167, -122.139436322737 37.401897183437, -122.127451421171 37.39861649976, -122.116161671106 37.403807096491, -122.110849672069 37.41504023573, -122.114000967447 37.427059806787))"), GeographyValue.fromWKT("POLYGON ((-121.846581175915 37.453317815882, -121.84191979489 37.450152970322, -121.836314646346 37.450724835935, -121.832388441581 37.454765830444, -121.83197829544 37.460385127609, -121.83527611986 37.464953395834, -121.840738826144 37.466333091646, -121.84581035331 37.463878640041, -121.848117677434 37.458738506204, -121.846581175915 37.453317815882))"), GeographyValue.fromWKT("POLYGON ((-122.120295017623 37.366571458845, -122.124985344282 37.388146406208, -122.141324633454 37.373296990488, -122.120295017623 37.366571458845))"), GeographyValue.fromWKT("POLYGON ((-121.973356963195 37.414681812112, -121.966395291112 37.414498481895, -121.961911426229 37.41982703178, -121.963281810257 37.42665495502, -121.969474516073 37.429840686152, -121.975826309888 37.426985304656, -121.977554161408 37.420238971038, -121.973356963195 37.414681812112))"), GeographyValue.fromWKT("POLYGON ((-122.083927536924 37.256602168475, -122.071096112779 37.251083968933, -122.05990149972 37.259437208438, -122.061538310806 37.273308647485, -122.074369734951 37.278826847028, -122.08556434801 37.270473607522, -122.083927536924 37.256602168475))"), GeographyValue.fromWKT("POLYGON ((-121.748837497616 37.378174970027, -121.762469718169 37.381124248208, -121.774194608366 37.373570267214, -121.777143886547 37.359938046661, -121.769589905553 37.348213156463, -121.755957685 37.345263878282, -121.744232794803 37.352817859277, -121.741283516622 37.36645007983, -121.748837497616 37.378174970027))"), GeographyValue.fromWKT("POLYGON ((-122.028984357862 37.299496106068, -122.020699673882 37.30862858004, -122.024466286351 37.320369563815, -122.0365175828 37.322978073619, -122.044802266781 37.313845599646, -122.041035654312 37.302104615871, -122.028984357862 37.299496106068))"), GeographyValue.fromWKT("POLYGON ((-122.166580560196 37.393843491324, -122.161306991809 37.376134082471, -122.143597582956 37.381407650858, -122.148871151343 37.399117059711, -122.166580560196 37.393843491324))"), GeographyValue.fromWKT("POLYGON ((-121.811221531006 37.291755882448, -121.79851000009 37.279709932077, -121.783125541418 37.288076913009, -121.786328953975 37.305293941979, -121.803693230488 37.307567670135, -121.811221531006 37.291755882448))"), GeographyValue.fromWKT("POLYGON ((-122.000717973994 37.389215831956, -122.00481661131 37.380315338571, -122.001421186321 37.371123565104, -121.992520692937 37.367024927789, -121.98332891947 37.370420352777, -121.979230282155 37.379320846161, -121.982625707143 37.388512619628, -121.991526200527 37.392611256944, -122.000717973994 37.389215831956))"), GeographyValue.fromWKT("POLYGON ((-122.180903554404 37.334440373392, -122.187370963164 37.324085939595, -122.183307904245 37.31257363194, -122.171773943885 37.3085724529, -122.161454389484 37.3150953719, -122.160120075987 37.32723049789, -122.168775768672 37.335839833489, -122.180903554404 37.334440373392))"), GeographyValue.fromWKT("POLYGON ((-121.78473113096 37.312454731808, -121.800400264589 37.316892929725, -121.804838462507 37.301223796096, -121.789169328878 37.296785598179, -121.78473113096 37.312454731808))"), GeographyValue.fromWKT("POLYGON ((-122.129761859396 37.318073196053, -122.138116556823 37.320962981211, -122.144796532895 37.315172493576, -122.143121811539 37.306492220784, -122.134767114111 37.303602435626, -122.12808713804 37.309392923261, -122.129761859396 37.318073196053))"), GeographyValue.fromWKT("POLYGON ((-122.168027119293 37.348350086926, -122.169217082587 37.359721990027, -122.17966042121 37.364377403136, -122.188913796538 37.357660913142, -122.187723833243 37.346289010041, -122.177280494621 37.341633596933, -122.168027119293 37.348350086926))"), GeographyValue.fromWKT("POLYGON ((-121.992583074066 37.385208599158, -121.98667933669 37.383608075458, -121.981747076827 37.387225892999, -121.981500386753 37.393337761381, -121.986125029126 37.397341319054, -121.992138553913 37.396221805432, -121.995012654296 37.390822237107, -121.992583074066 37.385208599158))"), GeographyValue.fromWKT("POLYGON ((-121.738872368397 37.405654189445, -121.746470229676 37.409610055097, -121.752580349739 37.403606489331, -121.748758750334 37.395940215982, -121.740286751947 37.39720576425, -121.738872368397 37.405654189445))"), GeographyValue.fromWKT("POLYGON ((-122.129558412644 37.451408694491, -122.13178088514 37.460238274061, -122.140610464709 37.458015801566, -122.138387992214 37.449186221996, -122.129558412644 37.451408694491))"), GeographyValue.fromWKT("POLYGON ((-122.15617020982 37.383021933373, -122.164386187044 37.376699142284, -122.164565407924 37.366333436867, -122.156572915482 37.359730404725, -122.146427219545 37.361862263737, -122.141768236087 37.371123680585, -122.146104274678 37.380540619485, -122.15617020982 37.383021933373))"), GeographyValue.fromWKT("POLYGON ((-122.152524605875 37.448866002858, -122.163441761542 37.448521446495, -122.168601944812 37.438894634169, -122.162844972415 37.429612378206, -122.151927816749 37.429956934569, -122.146767633479 37.439583746895, -122.152524605875 37.448866002858))"), GeographyValue.fromWKT("POLYGON ((-122.03290369774 37.268840066725, -122.027893427866 37.259872555615, -122.019749014119 37.253612556858, -122.014488056627 37.262435333404, -122.013138945549 37.272618601986, -122.023410172916 37.27276333655, -122.03290369774 37.268840066725))"), GeographyValue.fromWKT("POLYGON ((-121.875888611149 37.361945245099, -121.872483058801 37.362678925585, -121.869166434332 37.363744794235, -121.871504596445 37.366327248839, -121.874085978007 37.368666595559, -121.875153368242 37.365350460469, -121.875888611149 37.361945245099))"), GeographyValue.fromWKT("POLYGON ((-121.909212761308 37.369076148347, -121.913847991686 37.36753267141, -121.918625847784 37.366512978894, -121.917082370847 37.361877748515, -121.91606267833 37.357099892418, -121.911427447952 37.358643369355, -121.906649591855 37.359663061872, -121.908193068792 37.36429829225, -121.909212761308 37.369076148347))"), GeographyValue.fromWKT("POLYGON ((-121.927631316308 37.376628197745, -121.932090611936 37.379624441796, -121.928289562892 37.383421127465, -121.933631530079 37.382850003593, -121.933160220087 37.388201700781, -121.936885293018 37.384330444194, -121.939964253261 37.388733034309, -121.940329428911 37.383373048988, -121.945517979673 37.384766511186, -121.942352388298 37.380425793832, -121.947222749012 37.378158111664, -121.942007605997 37.376867732169, -121.944280880758 37.371999979323, -121.939456409481 37.374363720594, -121.938068907763 37.369173572727, -121.935892531951 37.374085413953, -121.931493481228 37.371001398932, -121.932983551312 37.376163035015, -121.927631316308 37.376628197745))"), GeographyValue.fromWKT("POLYGON ((-121.760173354465 37.35312275237, -121.756996095628 37.341024391259, -121.755443315509 37.32861253446, -121.743344954399 37.331789793297, -121.7309330976 37.333342573415, -121.734110356436 37.345440934526, -121.735663136555 37.357852791325, -121.747761497666 37.354675532488, -121.760173354465 37.35312275237))"), GeographyValue.fromWKT("POLYGON ((-121.740304951166 37.252511776004, -121.740742605781 37.257698702017, -121.738136821769 37.262204879189, -121.743205124267 37.263391493203, -121.746685521887 37.267262226393, -121.749380250481 37.262808668172, -121.754137038517 37.260694735673, -121.750734169881 37.256755671307, -121.750193628944 37.251578455983, -121.745395811873 37.253597538542, -121.740304951166 37.252511776004))"), GeographyValue.fromWKT("POLYGON ((-121.978536475521 37.40228232499, -121.978722013584 37.404689866647, -121.976669987755 37.405962608253, -121.978847749022 37.407005698406, -121.978923962671 37.409419175706, -121.980916185874 37.408054724202, -121.983044425353 37.409195459896, -121.98285888729 37.40678791824, -121.984910913119 37.405515176633, -121.982733151852 37.404472086481, -121.982656938203 37.40205860918, -121.980664715 37.403423060685, -121.978536475521 37.40228232499))"), GeographyValue.fromWKT("POLYGON ((-121.916733594663 37.371941920919, -121.917772987004 37.374225813401, -121.91648315581 37.376378215966, -121.91891682538 37.376989569983, -121.919795444872 37.379340001666, -121.921790788847 37.377818455173, -121.924176240628 37.378596992977, -121.924230724297 37.376088301517, -121.926326714521 37.374708690597, -121.92439931057 37.373101950008, -121.924627515848 37.370603065524, -121.922169598764 37.371108184241, -121.920358175867 37.369371737179, -121.919220607347 37.371608350505, -121.916733594663 37.371941920919))"), GeographyValue.fromWKT("POLYGON ((-121.83642184556 37.458501238609, -121.84192260987 37.456958950208, -121.845745563628 37.461204192964, -121.847160284847 37.455669247132, -121.852748249799 37.454481093438, -121.848662206709 37.450488436006, -121.850427217903 37.445055039555, -121.844926453593 37.446597327957, -121.841103499835 37.4423520852, -121.839688778615 37.447887031033, -121.834100813663 37.449075184726, -121.838186856754 37.453067842158, -121.83642184556 37.458501238609))"), GeographyValue.fromWKT("POLYGON ((-121.846185963602 37.431831053759, -121.848767985118 37.430927088968, -121.851464006689 37.431391260425, -121.851402173613 37.428656271554, -121.852676743384 37.426235639539, -121.850056506925 37.425449288249, -121.848148212794 37.423489083933, -121.84659065068 37.425738080979, -121.844136690275 37.426947240101, -121.845794300408 37.429123548007, -121.846185963602 37.431831053759))"), GeographyValue.fromWKT("POLYGON ((-122.145411669944 37.386017256956, -122.150427547853 37.392478574111, -122.146048394825 37.399387312731, -122.154227404718 37.399494306822, -122.156898516822 37.407225594599, -122.162081697428 37.400897696894, -122.169791672769 37.403629716442, -122.168075983375 37.395631962978, -122.175019053266 37.391307447855, -122.167696442978 37.387662310115, -122.168644334179 37.379537708412, -122.161228877898 37.382990049462, -122.155467809001 37.377183351973, -122.153543496555 37.385133488586, -122.145411669944 37.386017256956))"), GeographyValue.fromWKT("POLYGON ((-122.175072556813 37.339152169094, -122.175761078975 37.335618743906, -122.178823889544 37.333727091785, -122.17610811465 37.331364101508, -122.176001301142 37.327765803687, -122.172597004086 37.328936238598, -122.169427380009 37.327229592899, -122.168738857847 37.330763018087, -122.165676047278 37.332654670208, -122.168391822172 37.335017660486, -122.16849863568 37.338615958306, -122.171902932736 37.337445523395, -122.175072556813 37.339152169094))"), GeographyValue.fromWKT("POLYGON ((-121.974152377653 37.376573315628, -121.962509882735 37.374595470509, -121.950724046064 37.375339522393, -121.954832429406 37.386411141314, -121.961369715574 37.396245949334, -121.968903827151 37.387152175531, -121.974152377653 37.376573315628))"), GeographyValue.fromWKT("POLYGON ((-122.081986065779 37.309048103438, -122.088307063409 37.304874825308, -122.091815371915 37.311587725785, -122.093975005551 37.304327750307, -122.100977495039 37.307215033175, -122.097965248101 37.30026538356, -122.105185375914 37.297976057077, -122.098410712222 37.294588551617, -122.102470100314 37.288193817088, -122.095102960301 37.289953507236, -122.094102175869 37.282445532016, -122.089589726224 37.288529039194, -122.083997047426 37.28342088833, -122.084450713489 37.29098167192, -122.07688301689 37.290663505973, -122.082090523267 37.296163791303, -122.076088818211 37.300784483655, -122.083613514794 37.301650626092, -122.081986065779 37.309048103438))"), GeographyValue.fromWKT("POLYGON ((-121.851760371304 37.409949894428, -121.859015163753 37.405956351411, -121.862477409672 37.413479200106, -121.865467903143 37.405756677973, -121.872955731322 37.409294025634, -121.870282640685 37.401455978317, -121.878292413099 37.39935266066, -121.871206507171 37.395066597608, -121.875990362291 37.38830678034, -121.867807215206 37.389578198091, -121.867126734054 37.381324874839, -121.861675331279 37.387558862896, -121.855848918549 37.381673855335, -121.855680032028 37.389953461403, -121.847433930989 37.389190429976, -121.852626584602 37.395641534358, -121.845819237577 37.400357509949, -121.853943730988 37.40196156921, -121.851760371304 37.409949894428))"), GeographyValue.fromWKT("POLYGON ((-122.112254639222 37.28176410241, -122.10954279343 37.277881394876, -122.112668918984 37.274323746157, -122.108005865609 37.273495821879, -122.107700732653 37.268769679766, -122.103818025119 37.271481525558, -122.100260376399 37.268355400003, -122.099432452122 37.273018453379, -122.094706310009 37.273323586335, -122.097418155801 37.277206293869, -122.094292030246 37.280763942588, -122.098955083622 37.281591866866, -122.099260216578 37.286318008979, -122.103142924112 37.283606163187, -122.106700572831 37.286732288741, -122.107528497109 37.282069235366, -122.112254639222 37.28176410241))"), GeographyValue.fromWKT("POLYGON ((-121.854797624137 37.445206190763, -121.858674752582 37.451684569826, -121.854390616484 37.457901297113, -121.861939621551 37.457782794918, -121.865181397261 37.464601329255, -121.868853273882 37.458004447996, -121.87637918569 37.458606255047, -121.872502057245 37.452127875984, -121.876786193343 37.445911148697, -121.869237188276 37.446029650892, -121.865995412566 37.439211116555, -121.862323535945 37.445807997813, -121.854797624137 37.445206190763))"), GeographyValue.fromWKT("POLYGON ((-121.918806030972 37.275549627606, -121.906732831009 37.278628282365, -121.894282728862 37.278143278218, -121.897361383621 37.290216478181, -121.896876379474 37.302666580328, -121.908949579437 37.299587925569, -121.921399681584 37.300072929716, -121.918321026825 37.287999729753, -121.918806030972 37.275549627606))"), GeographyValue.fromWKT("POLYGON ((-121.980098959495 37.274283510618, -121.971739667153 37.27479801789, -121.963730595531 37.27724694785, -121.968355818069 37.284229053741, -121.974481189438 37.289940648246, -121.978215259242 37.282444035084, -121.980098959495 37.274283510618))"), GeographyValue.fromWKT("POLYGON ((-121.796298869554 37.371477112795, -121.792831144424 37.364643782369, -121.796031715938 37.35768132129, -121.788461246511 37.358867708642, -121.782828583522 37.353672265451, -121.781617501236 37.361238823585, -121.774935752547 37.364990324186, -121.781757731958 37.368480326938, -121.783260847153 37.375994325009, -121.788688144586 37.370584707197, -121.796298869554 37.371477112795))"), GeographyValue.fromWKT("POLYGON ((-121.834920335017 37.319416496241, -121.837978100304 37.318603425509, -121.841142007905 37.318629906672, -121.840328937174 37.315572141385, -121.840355418336 37.312408233783, -121.837297653049 37.313221304515, -121.834133745447 37.313194823352, -121.834946816179 37.316252588639, -121.834920335017 37.319416496241))"), GeographyValue.fromWKT("POLYGON ((-122.040265610731 37.279689033833, -122.044182240481 37.280899158525, -122.044634066209 37.284973498211, -122.04825922904 37.283059710131, -122.051459711296 37.285621214316, -122.052669835989 37.281704584566, -122.056744175674 37.281252758839, -122.054830387595 37.277627596008, -122.05739189178 37.274427113751, -122.05347526203 37.273216989059, -122.053023436302 37.269142649373, -122.049398273471 37.271056437452, -122.046197791214 37.268494933268, -122.044987666522 37.272411563017, -122.040913326836 37.272863388745, -122.042827114916 37.276488551576, -122.040265610731 37.279689033833))"), GeographyValue.fromWKT("POLYGON ((-121.898844019793 37.319696052495, -121.900365554478 37.309791700644, -121.907923907133 37.30321275251, -121.89897448884 37.298705073992, -121.895053196766 37.289483646669, -121.888000617396 37.296602099986, -121.878018772961 37.29748189261, -121.882609457494 37.306389017225, -121.880361630436 37.316154186292, -121.89025140888 37.31454063873, -121.898844019793 37.319696052495))"), GeographyValue.fromWKT("POLYGON ((-122.165703283001 37.306955828621, -122.160109319002 37.308459398827, -122.157116578666 37.303499896648, -122.153797829929 37.308247428996, -122.148317351273 37.306371926319, -122.148826697215 37.312141997661, -122.143422857113 37.314228063032, -122.147521969107 37.31832079286, -122.144723284398 37.323392333107, -122.150494142386 37.323892687649, -122.15161014875 37.329576672727, -122.156352504143 37.326250530531, -122.160861009799 37.329887360653, -122.162355861804 37.324291060619, -122.168147286849 37.32417902255, -122.165695177599 37.31893113566, -122.17005964989 37.315122653259, -122.164807948555 37.312678724113, -122.165703283001 37.306955828621))"), GeographyValue.fromWKT("POLYGON ((-122.092319488831 37.395902680725, -122.079946384541 37.400943208165, -122.070607504458 37.410497576037, -122.081159281414 37.418692734956, -122.09410304675 37.422003258415, -122.095924374084 37.408767572056, -122.092319488831 37.395902680725))"), GeographyValue.fromWKT("POLYGON ((-122.122464714335 37.430421366138, -122.127670104581 37.426256082278, -122.133679450692 37.429142851504, -122.13441491697 37.4225167843, -122.140705420451 37.420308789009, -122.136540136591 37.415103398764, -122.139426905817 37.409094052653, -122.132800838613 37.408358586374, -122.130592843322 37.402068082894, -122.125387453077 37.406233366754, -122.119378106966 37.403346597528, -122.118642640687 37.409972664732, -122.112352137207 37.412180660022, -122.116517421066 37.417386050268, -122.113630651841 37.423395396379, -122.120256719045 37.424130862657, -122.122464714335 37.430421366138))"), GeographyValue.fromWKT("POLYGON ((-121.989703939722 37.306107949194, -121.997731076128 37.303714632571, -121.999823306516 37.311825455917, -122.004434055484 37.304832325194, -122.011250333697 37.309700716577, -122.010287274541 37.30137993534, -122.018638188249 37.300727920326, -122.012551947052 37.29497287459, -122.01853001092 37.28910553825, -122.010168407579 37.288609077875, -122.010976419086 37.280271812091, -122.004251940733 37.285266236405, -121.999511822313 37.278360140496, -121.997570927104 37.286508502854, -121.989500632847 37.284265015848, -121.993251487221 37.291754606946, -121.985627197501 37.295223481346, -121.99331473501 37.298549838271, -121.989703939722 37.306107949194))"), GeographyValue.fromWKT("POLYGON ((-122.119427156036 37.372521670089, -122.10655564891 37.376130533559, -122.094011451916 37.380750350981, -122.103572572923 37.390092971402, -122.113845550668 37.398646655958, -122.117155936788 37.385695172067, -122.119427156036 37.372521670089))"), GeographyValue.fromWKT("POLYGON ((-121.776959720674 37.338289104272, -121.781428754804 37.344872379736, -121.77557364036 37.350260275126, -121.78350704958 37.350870848661, -121.784068871676 37.358807859296, -121.78949263703 37.352985956577, -121.796048332169 37.357495351563, -121.794878247721 37.349624984083, -121.802491243751 37.347311097021, -121.795608406956 37.343318812018, -121.79854596259 37.33592404706, -121.791133289939 37.33881611657, -121.787183365869 37.331908882555, -121.784822751059 37.339507519249, -121.776959720674 37.338289104272))"), GeographyValue.fromWKT("POLYGON ((-122.122025575174 37.380872905699, -122.117484931031 37.3820908361, -122.114148980498 37.378778399272, -122.112270151512 37.383087784999, -122.107600452979 37.383630665568, -122.109798235698 37.387786451272, -122.107311167405 37.391775849097, -122.111930586615 37.392648643381, -122.113498961714 37.397080460531, -122.11706150053 37.394013031497, -122.121504300582 37.395550019266, -122.121327294615 37.390852203541, -122.125299000564 37.388336978789, -122.121515738915 37.385546327431, -122.122025575174 37.380872905699))"), GeographyValue.fromWKT("POLYGON ((-122.033545778443 37.355658173452, -122.026008603158 37.360495623065, -122.017054130426 37.360660995833, -122.019325703151 37.369324129643, -122.01671589775 37.37789144228, -122.025656982187 37.37840810381, -122.032998506476 37.383537621444, -122.036252827831 37.375193802021, -122.043399944772 37.369796705627, -122.036470141542 37.364123280097, -122.033545778443 37.355658173452))"), GeographyValue.fromWKT("POLYGON ((-121.965149316532 37.433379736177, -121.959009110641 37.434816012567, -121.957328358775 37.428738176487, -121.954002178328 37.434095558486, -121.948516028179 37.430986350421, -121.949952304569 37.437126556311, -121.943874468489 37.438807308177, -121.949231850488 37.442133488625, -121.946122642423 37.447619638774, -121.952262848313 37.446183362383, -121.953943600179 37.452261198464, -121.957269780627 37.446903816465, -121.962755930776 37.45001302453, -121.961319654385 37.443872818639, -121.967397490466 37.442192066773, -121.962040108467 37.438865886326, -121.965149316532 37.433379736177))"), GeographyValue.fromWKT("POLYGON ((-121.946263907282 37.277507667261, -121.939573757903 37.27981694547, -121.933929254646 37.275547232653, -121.93258407355 37.282495711074, -121.926064142155 37.285249137878, -121.931409110437 37.289888338091, -121.9305336823 37.296911477711, -121.937223831678 37.294602199503, -121.942868334935 37.29887191232, -121.944213516032 37.291923433899, -121.950733447426 37.289170007095, -121.945388479144 37.284530806882, -121.946263907282 37.277507667261))"), GeographyValue.fromWKT("POLYGON ((-122.033142128963 37.26324647456, -122.026501154929 37.261668883016, -122.023082998518 37.255760622871, -122.018396277148 37.260723079319, -122.011570495565 37.260729159532, -122.013524748229 37.267269207523, -122.010117123056 37.273183547881, -122.01675809709 37.274761139424, -122.020176253501 37.280669399569, -122.024862974871 37.275706943122, -122.031688756454 37.275700862909, -122.029734503791 37.269160814918, -122.033142128963 37.26324647456))"), GeographyValue.fromWKT("POLYGON ((-121.967135528286 37.389115811061, -121.965208189234 37.380052909308, -121.974432289846 37.379177242766, -121.96713034152 37.373473526902, -121.973633544933 37.366873589829, -121.964373650108 37.367197891898, -121.96511303517 37.357961868201, -121.958228001547 37.364162443658, -121.952857601769 37.356611971473, -121.951569013098 37.365787502151, -121.942601698224 37.363455531327, -121.947512499465 37.371312684447, -121.939144175783 37.375290370049, -121.947956548459 37.378152696344, -121.944102847625 37.386578835072, -121.952693384621 37.383107020257, -121.955157496083 37.392038928154, -121.959506589666 37.383857472966, -121.967135528286 37.389115811061))"), GeographyValue.fromWKT("POLYGON ((-121.772101003698 37.447599563723, -121.765044204931 37.450411610237, -121.763897802066 37.442902164525, -121.760299529241 37.449592339941, -121.754594355037 37.444576664341, -121.756138279999 37.45201456123, -121.748543848873 37.451839546097, -121.754507551974 37.456544889842, -121.748577382652 37.461292426702, -121.756170380931 37.46106353467, -121.754679265546 37.468512198264, -121.760348710721 37.46345617158, -121.763994358733 37.470120649429, -121.765087454399 37.462603259171, -121.772164026586 37.465365168022, -121.768169301133 37.458903884638, -121.775365590721 37.456470896645, -121.768152220584 37.454089026439, -121.772101003698 37.447599563723))"), GeographyValue.fromWKT("POLYGON ((-121.894693070128 37.45757067615, -121.895850813094 37.451507275179, -121.902023338099 37.451578935165, -121.899012741649 37.446189917712, -121.903787232281 37.442277189852, -121.898016987952 37.440084137074, -121.899159406981 37.434017830219, -121.893329476224 37.436046895884, -121.89030527309 37.430665502431, -121.887143545299 37.435967264164, -121.881367778258 37.433788797917, -121.882353661005 37.439882502481, -121.876528875647 37.441926292008, -121.881201063437 37.445960627312, -121.878052741566 37.45127036078, -121.884225065807 37.4513576165, -121.885226342216 37.457448810607, -121.890010703798 37.453548158821, -121.894693070128 37.45757067615))"), GeographyValue.fromWKT("POLYGON ((-122.007211471274 37.41114760587, -122.004605204112 37.406994915619, -122.003518960632 37.402213959655, -121.999366270381 37.404820226816, -121.994585314416 37.405906470297, -121.997191581578 37.410059160548, -121.998277825059 37.414840116512, -122.002430515309 37.412233849351, -122.007211471274 37.41114760587))"), GeographyValue.fromWKT("POLYGON ((-121.952615713615 37.376788434609, -121.948602494226 37.38039325221, -121.943299913919 37.379401646493, -121.945488146195 37.384332394845, -121.942906485688 37.389069025381, -121.948272106999 37.388511577851, -121.951979133365 37.392430582231, -121.95310703743 37.387155312359, -121.957979766228 37.384840759733, -121.953311227965 37.382137911181, -121.952615713615 37.376788434609))"), GeographyValue.fromWKT("POLYGON ((-122.176680423543 37.298801542038, -122.17190904069 37.294091404825, -122.173654487622 37.287618005262, -122.167189697713 37.289395075418, -122.162456292709 37.284646774252, -122.160762885654 37.291133981621, -122.154284033717 37.292859080018, -122.159055416571 37.297569217231, -122.157309969639 37.304042616794, -122.163774759547 37.302265546638, -122.168508164551 37.307013847804, -122.170201571606 37.300526640435, -122.176680423543 37.298801542038))"), GeographyValue.fromWKT("POLYGON ((-122.089923450559 37.344455636075, -122.081209786977 37.346515430221, -122.077200759363 37.338509283673, -122.073378290893 37.346606160833, -122.064619245636 37.344748794111, -122.068566369001 37.352785640638, -122.061653045831 37.358475688766, -122.07039749663 37.360400595303, -122.0705357689 37.369353335986, -122.077492797328 37.36371680865, -122.084578543198 37.36919064555, -122.084509364951 37.360237104389, -122.093206873258 37.358110126675, -122.086163580967 37.352581770802, -122.089923450559 37.344455636075))"), GeographyValue.fromWKT("POLYGON ((-122.16951148068 37.458273389623, -122.176089277289 37.453374151223, -122.184201423898 37.454583705898, -122.183247457289 37.446437547734, -122.18835103567 37.440017000028, -122.180819272452 37.436770080264, -122.177810704223 37.429139977883, -122.171232907614 37.434039216283, -122.163120761004 37.432829661608, -122.164074727614 37.440975819772, -122.158971149233 37.447396367478, -122.166502912451 37.450643287242, -122.16951148068 37.458273389623))"), GeographyValue.fromWKT("POLYGON ((-121.937458212503 37.32199725111, -121.932778397751 37.323984325055, -121.92799756038 37.32225437621, -121.928441237715 37.327319184143, -121.925318598599 37.331331447086, -121.930272621024 37.33247459659, -121.933123561286 37.336684260305, -121.93574163819 37.332325957619, -121.940626255289 37.330915409934, -121.937290293376 37.327078681237, -121.937458212503 37.32199725111))"), GeographyValue.fromWKT("POLYGON ((-122.150337685249 37.338120926545, -122.148143922704 37.34649712376, -122.14308322539 37.353522977201, -122.150371552425 37.358197756653, -122.15548969465 37.365181873923, -122.162187891023 37.359694849299, -122.170411774191 37.356985417712, -122.167263160179 37.348919470546, -122.167227657271 37.340260832465, -122.15858351042 37.340762827589, -122.150337685249 37.338120926545))"), GeographyValue.fromWKT("POLYGON ((-121.951187794308 37.438189779126, -121.954047975598 37.437319213079, -121.956920081512 37.438149592436, -121.956975968626 37.435160378679, -121.958653235862 37.432685444967, -121.955827594707 37.431708575312, -121.953992096953 37.429348602801, -121.952189867566 37.43173407791, -121.949378200332 37.432750468397, -121.951090002469 37.435201642748, -121.951187794308 37.438189779126))"), GeographyValue.fromWKT("POLYGON ((-122.118676232585 37.45791211585, -122.12167368055 37.45702183085, -122.123949457046 37.459166158957, -122.125122282442 37.456267576153, -122.128217709101 37.455825269148, -122.126682750484 37.453101080511, -122.128266907898 37.450405204591, -122.125180020413 37.449906779728, -122.124060005737 37.446987384446, -122.121745678622 37.449090047446, -122.118764885752 37.448145496994, -122.118965854528 37.45126589973, -122.116368881292 37.453007459864, -122.118933812372 37.454795875433, -122.118676232585 37.45791211585))"), GeographyValue.fromWKT("POLYGON ((-122.132909428555 37.263902217184, -122.134450223456 37.256385415304, -122.13595501605 37.24886132342, -122.128674877216 37.251285356834, -122.121406426207 37.253744214162, -122.12714577014 37.258836982628, -122.132909428555 37.263902217184))"), GeographyValue.fromWKT("POLYGON ((-121.956697528197 37.405649860226, -121.960024996629 37.404972211189, -121.962520708991 37.407274964801, -121.963597581926 37.404054468089, -121.966839681233 37.403044494589, -121.964589085736 37.400501646915, -121.965335472681 37.397188919803, -121.962008004249 37.397866568841, -121.959512291887 37.395563815229, -121.958435418952 37.398784311941, -121.955193319645 37.399794285441, -121.957443915142 37.402337133115, -121.956697528197 37.405649860226))"), GeographyValue.fromWKT("POLYGON ((-121.946568191214 37.378477783604, -121.960848621058 37.376385750639, -121.974468527307 37.371610247288, -121.965516558691 37.360289048748, -121.954570898349 37.350881615615, -121.94924243712 37.36429484712, -121.946568191214 37.378477783604))"), GeographyValue.fromWKT("POLYGON ((-121.749726033534 37.287351634624, -121.744308888962 37.290773233835, -121.738111628438 37.289146347702, -121.738366247991 37.295548532124, -121.733858693009 37.300102074105, -121.739530457134 37.303082659314, -121.741220162676 37.309263087428, -121.746637307248 37.305841488216, -121.752834567771 37.307468374349, -121.752579948219 37.301066189928, -121.7570875032 37.296512647947, -121.751415739075 37.293532062737, -121.749726033534 37.287351634624))") }; public static double MIN_LNG = -122.183915; public static double MAX_LNG = -122.742392; public static double MIN_LAT = 37.254242; public static double MAX_LAT = 37.459942; public static GeographyValue pickRandomRegion() { int whichRegion = RAND.nextInt(POLYGONS.length); return POLYGONS[whichRegion]; } }