Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BassFace  
View profile  
 More options Nov 6, 10:08 am
From: BassFace <bassf...@bassface3d.com>
Date: Thu, 5 Nov 2009 15:08:20 -0800 (PST)
Local: Fri, Nov 6 2009 10:08 am
Subject: Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
I am very interested in Mike's examples of finding if a point is
within/not within a GPolygon. I am wondering if it could be adapted to
use a kml file instead of a xml file, and to test whether an address
that gets geocoded can be tested instead of a click.

I have no code yet, but Mike's examples of this method are here:

http://econym.org.uk/gmap/example_inside.htm
http://econym.org.uk/gmap/example_states.htm

What do you all think? Would this be possible?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Nov 6, 10:38 am
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Thu, 5 Nov 2009 15:38:22 -0800 (PST)
Local: Fri, Nov 6 2009 10:38 am
Subject: Re: Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
On Nov 5, 3:08 pm, BassFace <bassf...@bassface3d.com> wrote:

> I am very interested in Mike's examples of finding if a point is
> within/not within a GPolygon. I am wondering if it could be adapted to
> use a kml file instead of a xml file, and to test whether an address
> that gets geocoded can be tested instead of a click.

> I have no code yet, but Mike's examples of this method are here:

> http://econym.org.uk/gmap/example_inside.htmhttp://econym.org.uk/gmap...

> What do you all think? Would this be possible?

Sure.  Just don't use GGeoXml to display the polygon.

  -- Larry


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BassFace  
View profile  
 More options Nov 7, 12:30 am
From: BassFace <bassf...@bassface3d.com>
Date: Fri, 6 Nov 2009 05:30:39 -0800 (PST)
Local: Sat, Nov 7 2009 12:30 am
Subject: Re: Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
I just converted the KML to an XML. It's working now.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Nov 7, 1:02 am
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Fri, 6 Nov 2009 06:02:17 -0800 (PST)
Local: Sat, Nov 7 2009 1:02 am
Subject: Re: Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
On Nov 6, 5:30 am, BassFace <bassf...@bassface3d.com> wrote:

> I just converted the KML to an XML. It's working now.

KML is XML...

If you were trying to serve it from your server, your server probably
doesn't know how to serve kml.

(my server doesn't know the .kml extension, so to get it to serve kml
content, I have to change the extension to .xml)

  -- Larry


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BassFace  
View profile  
 More options Nov 8, 5:20 am
From: BassFace <bassf...@bassface3d.com>
Date: Sat, 7 Nov 2009 10:20:55 -0800 (PST)
Local: Sun, Nov 8 2009 5:20 am
Subject: Re: Using Mike Willaiam's GPolygon.contains() method with KML and geocoding
Yes, I know kml is xml. However, the states.xml in Mike's example,
each lat,lng point is in it's own <point> tag, and in the kml ALL the
coords are in one huge <coordinates> tag, with an altitude parameter
in there, too.

I just converted the kml structure to the more simple xml structure to
at least find out if my idea would work. Now that I know it does work,
I can attempt to make it read the kml structure instead.
Thank you for your help. :-)
Will

On Nov 6, 7:02 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google