Does someone have a beginning to end example of how to take data from a SQL Server geography type field and pass it to the Google Maps API to display the shape on a map?  The geography data I'm storing is either a polygon or multipolygon, some of which have holes in them.  I would like to do this using .NET code and JavaScript on the fly with whatever data is stored.
NOTE: this question is sorta like a follow-on question to  I asked. In that question, the main suggestion was that I was trying to show two polys. Now, I'm asking about a SINGLE poly.  I have the following GEOGRPAHY of Los Angeles in my Sql Server 2008 :-     (or in )  It's bascially ..  -- Shape of Los Angeles.  DECLARE @WKT VARCHAR(MAX) = 'POLYGON ((-118.66815700000011 34.181235000000029, ... )) SELECT GEOGRAPHY::STGeomFromText(@WKT, 4326)   Now when I just try and render this out, It now looks like this (NOTE: this is different, but still not correct .. compared to my previous GIS Question).    Now, in the previous question people were suggesting that the previous data was a MULTIPOLYGON so there was some bad stuff I must have been doing, trying to render out holes in polys.  This time, this is a single polygon. So i'm assuming the hole theory still doesn't work. Now, I understand that by looking at this image, there's a number of holes ... but the Well Known Text data which Sql Server gives me is a POLYGON which to me means .. one single shape. So i'm not sure how I can fix this :(  This is why i'm asking the a similar question to my previous one.  Can anyone help? Can they see the data I've posted and see what happens in other systems? (I don't have any other software besides Sql Server 2008).  Maybe I need to extract all my data from Sql Server 2008 .. and clean it up (whatever that means) through another system. For example. If Sql Server is saying that the shape of Los Angeles is a single Polygon .. but when cleaned up .. it's actually 7 Polygons .. and then those shapes then get rendered correctly .. then we have a solution!   Any suggestions?  Can -anyone- render this shape onto a Google map?
How to force the evaluation of a lambda term in haskell to the strong normal form How to select the architecture to download? I was googling unsuccessfully.   I've created Aura components without any problem, but I can't figure out how enabled this:     I'm trying to enable that feature in a Dev Winter 15. Is "you are welcome" more polite than "no problem"?  What is the general proper reply to a thank-you? Check existence of input argument in a Bash shell script Username and Password not recognized when logging into Minecraft We just got a new laptop (ASUS) though we did have a mac.  We are trying to log onto Mojang to download Minecraft and it keeps saying, "The username and password are not recognized."   We have done all the usual procedures; we have reset the password, we are using the email, not the username to sign in, and it looks like the minecraft login servers are working etc. etc.  We quit Minecraft on the old computer and shut off that computer thinking that was the issue.   Still, we can't get onto Mojang.  We are accessing mincraft through firefox and trying to download it to the new computer but we can't get into the account to do that!  What in the world could be the issue? Farm Solution Vs. SandBox The axiom of choice asserts that for any set $X$ there exists a function $f : (2^X − \{\emptyset\}) \rightarrow X$ such that for any nonempty $A \subseteq X$, $f(A) \in A$. Show that this is equivalent to the assertion that every relation includes a function with the same domain. I am given this problem in my assignment. My approach is following. I have a set $X$. Then it has a choice function $g : \mathcal{P}(X) \setminus \left\{\emptyset\right\} \rightarrow X$. Suppose $X$ has a relation $R \subseteq X \times X$. $dom(R) \subseteq X$. Then the required function $f : dom(R) \rightarrow X$ is $$f(x) = g(\{y\ |\ (x, y) \in R\})$$ Conversely, suppose $X \supseteq Y$ is a non-empty subset. Let $$R_Y = \{(x, y)\ |\ y \in Y, x \in Y, (p, q) \in R_Y \Rightarrow p = x\}$$ Then there is a function $f_Y : dom(R_Y) \rightarrow X$. But $dom(R_Y)$ is singleton from the definition of $R_Y$. Then $im(f_Y)$ is also singleton. We define our choice function as $f = \{(Y, y)\ |\ y \in im(f_Y)\}$ Are my arguments correct?  Edit.1: what I tried to do for converse is, for any subset $Y$, I construct a relation $Y_1 \times Y$ where $Y \supseteq Y_1 = \{y\}$. Then there is a function $f_Y : Y_1 \rightarrow Y$. Then if $f$ is my choice function I define $f(Y) = f_Y(y)$. May be I should define $R_Y$ as $$R_Y = \{(x, y)\ |\ y \in Y; x \in Y; (p, q), (p', q) \in R_Y \Rightarrow p = p'\}$$ I understand there may be multiple $R_y$'s. But can't I define a singleton set as $\{s\in S\ |\ a, b \in S \Rightarrow a = b\}$? This can be $\{s\}$ $\forall s \in S$. But isn't it a valid specification?  Edit.2: This is the final solution with the help from @Asaf.  If we assume axiom of choice then for any $X$ there is a choice function $f : \mathcal{P}(X) \setminus \left\{\emptyset\right\} \rightarrow X$ such that $f(A) \in A$. Suppose $R$ is a relation between $P$ and $Q$. Then we have a choice function $f_Q$ for $Q$. Let $f_R(p) = f_Q(\{q\ |\ pRq\})$. The function $f_R : P \rightarrow Q$ and $dom(f_R) = dom(R)$. So this is our required function.  Conversely, if every relation includes a function with same domain. Let $R$ be a relation between $\mathcal{P}(X) \setminus \left\{\emptyset\right\}$ and $X$ such that $aRb \Rightarrow b \in a$. Now $R$ includes a function $f : \mathcal{P}(X) \setminus \left\{\emptyset\right\} \rightarrow X$. Then $xRf(x) \Rightarrow f(x) \in x$. So $f$ is the choice function for $X$. I have two tables A &amp; B. Table A id | name | num  Table B id | date | roll  id in table B is a foreign key which relates to the id in table A. I want to get the contents of table B where id is given and also along with that data, I need the name whose id is given from table A. NOTE: cannot use multiple queries separated by commas; need to do both the SELECTs in one query. The workings of the Hall effect? I want to ask about the workings of the . Why do the electrons come to rest on the edge of the wire? The magnetic field pushes them up, and the electric field pushes them forward. Shouldn't they reach the top of of the conductor and then stop moving up but continue moving forward?  Why does the magnetic field stop them from continuing to flow? The magnetic force is up so why would it effect their velocity forwards? Possibility of making dark energy equivalent with dark matter PHP get number of week for month What factors determine enemy levels or: How do enemy levels scale to the player character's? When I finished Normal Mode at around Level 30 and went back to the  (still at Normal mode), I found that all enemies there are now very easy to kill, meaning they didn't level up (or hit a level cap).  When I went to  as a Level 36 character in True Vault Hunter Mode, I noticed that the enemies are the same level as me.  What factors determine enemy levels?   Specifically, I would like to know:       Are enemies affected by what level a character accepted a mission?      Or is it what level a character is when they first entered an area?      How does Normal Mode, True Vault Hunter mode, and the Ultimate True Vault Hunter Mode affect enemy levels?     Are there enemies that will scale to the player level, as the player levels up? Any enemy leveling differences specific to the DLC areas?         EDIT:   There is now  that explains how this works generally: "In playthrough 1, outside of the DLC, there's no such thing as scaling. Enemy levels are determined solely by the area they're in and your mission." Can anyone expound on that, and comment or provide an answer on what are the specific enemy levels on specific areas and/or missions?    states that "enemies do not actually "scale", or at least from what we know of..." and lists specifics for enemy levels on certain areas in the game (sans DLC areas). Can anyone expound on that and/or add specifics for enemy levels in the DLC missions or areas in TVHM (PT 2.0) and/or UTVHM? The  update has just been released, can anyone provide info about enemy levels on that mode, including the DLC areas or missions? I guess I've been somewhat ignorant when it comes to the finer details of pcb layout. Lately I've read a couple of books that try their best to lead me on the straight and narrow. Here is a couple of examples of a recent board of mine, and I have highlighted three of the decoupling caps. The MCU is a LQFP100 package and the caps are 100nF in 0402 packages. The vias connect to ground and power plane.     The top cap (C19) is placed according to best practices (as I understand them). The other two are not. I haven't noticed any problems. But then again the board has never been outside the lab.  I guess my question is: How big a deal is this? As long as the tracks are short, does it matter?  The Vref pins (reference voltage for the ADC) also have a 100nF cap across them. Vref+ comes from an onboard TL431 shunt regulator. Vref- goes to ground. Do they require special treatment like shielding or local ground?    EDIT    Thanks for great suggestions! My approach has always been to rely on an unbroken ground plane. A ground plane will have the lowest possible impedance, but this approach may be too simplistic for higher frequency signals. I've made a quick stab at adding local ground and local power under the MCU (The part is an NXP LPC1768 running at 100MHz). The yellow bits are the decoupling caps. I'll look into paralleling caps. The local ground and power are connected to the GND layer and the 3V3 layer where indicated.  The local ground and power are made with polygons (pour). It's going to be a major rerouting job to minimize the length of the "tracks". This technique will limit how many signal tracks can be routed under and across the package.  Is this an acceptable approach? What was the origin of Star Trek's Borg? One of the boys who always give/gives the correct answer is Samuel.   As per rule, one of is followed by plural noun/pronoun and singular helping verb, so we should be using gives in the sentence. But the answer is give. Story about building up speed leading to increased quality of life It's a story I read in 2 or 3 parts in a Greek sci-fi magazine called 9 around 2004 (give or take a few years), but it may be a bit older than that. This is what I remember (and I hope it's all accurate):   The protagonist used to travel a lot, mainly using high speed media like aircraft. It was established in the story that as he traveled more frequently and with more speed, he would gradually cross over towards (sort of) higher planes of existence (and that everyone in the setting could do the same, although most people simply didn't bother). These higher planes of existence were apparently still Earth, but the environments and the inhabitants were increasingly more alien and life in them was increasingly luxurious. As far as I recall, the protagonist's goal was to reach those higher levels (either for the luxury or for some other reason I can't recall). If he failed to maintain his "speed" for too long, he would fall back to lower planes of existence, with more familiar characteristics and significantly lower quality of life. His wife had died some time ago and her grave was apparently in the lower planes. He did visit her once near the end of the story, before starting to build up "speed" again.   I don't happen to know the original language of the story because what I read was a version translated into Greek. In mathematics, "A or B" includes "A and B". Does "either" mean "A or B but not (A and B)" or does it include the possibility of "A and B"? The context might be mathematics, formal logic or ordinary language. How do I post code in chat? I would like to be able to post code in chat. I know that I can post inline snippets of code by using backticks, but I don't know how to post blocks of code, with the entire chat message formatted as code, and indentation respected. I am aware of . After reading the comments, I found out that I could format in "fixed width", but I can't see a "fixed width" button anywhere. What should I do? How to reference constants in EL?