search for: placemark

Displaying 10 results from an estimated 10 matches for "placemark".

2006 Jul 19
5
Model Validation - with a twist
...=mykey'' result=URI(url+address1+googleoutput+googlekey ).read doc = Document.new(result.to_s) root = doc.root retstatus = root.elements[''/kml/Response/Status/code''].text if retstatus.to_i == 200 coordinates = root.elements[''/kml/Response/Placemark/Point/coordinates''].text long1, lat1, = coordinates.split('','').map { |v| v.to_f } params[:bookstore][:latitude] = lat1 params[:bookstore][:longitude] = long1 @bookstore = Bookstore.new(params[:bookstore]) if @bookstore.save redirect_to :...
2008 Jun 16
1
Fix for IE6 bug in geocoding
Hi, I was trying to use the geocoding stuff in Mapstraction and found a bug with IE6. I couldn''t find a way of submitting it on Trac, so here it is. Change line 110 of mapstraction-geocode.js from: place = response.Placemark[0]; to: var place = response.Placemark[0]; Otherwise IE6 doesn''t declare the variable properly and things break in obscure ways. Cheers, Tom (with a new mapstraction based site up and running at <http://mmm.iamnear.net >)
2010 Nov 26
1
Generating kml lines output
Dear, I would like to generate kml file with lines (<LineString>) of different style (definitely color, but width would also be nice to see). However with kmlLine from maptools package I am able only to output the single first Lines object (first row of SpatialLinesDataFrame) I guess the option would be to have single Lines object (instead of list of them), but then also the style
2008 Aug 18
2
Fwd: Parsing XML or KML into CSV /Using R for geocoding , OR problem
...id="msn_icon25_copy3"> <Pair> <key>normal</key> <styleUrl>#sn_icon25_copy3</styleUrl> </Pair> <Pair> <key>highlight</key> <styleUrl>#sh_icon17_copy3</styleUrl> </Pair> </StyleMap> <Placemark> <name>01+11</name> <styleUrl>#msn_icon25_copy3</styleUrl> <Polygon> <tessellate>1</tessellate> <outerBoundaryIs> <LinearRing> <coordinates> 67.54001806846716,23.02894087226338,0 67.5400695406575,23.02912781566863...
2010 Jul 02
2
Files with Missing Data
...m a new R user so this is possibly a naive question. I'm trying to load an external CSV file into a dataframe using: df_name<-read.table("myfile.csv") myfile.csv should have 5 elements per row, though a percentage are missing the last two elements (the commas are present as placemarkers). However, R does not create the dataset but returns the message: line 1 did not have 2 elements but examining the file shows that it does. These are the first 5 rows: DARWIN,NT,800,-12.461334,130.841904 ALAWA,NT,810,-12.37896,130.874226 BRINKIN,NT,810,-12.364533,130.869394 CASUARINA,...
2011 Jan 20
1
Generating time progressing line for Google Earth
...l" ) ...and the kml template file to be used with brewer: <?xml version="1.0" encoding="utf-8" ?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Folder><name>lines</name> <% for(i in 1:nrow(seg)){ %> <Placemark> <TimeSpan> <begin><%= paste(1980+i, "01", "01", sep="-")%></begin> </TimeSpan> <name><%=paste(seg$x[i], ",", seg$y[i]," : ", seg$xend[i], ",", seg$yend[i], sep="")%>&...
2005 Mar 18
1
Routing using DSL and T1
Hi, I just got a DSL line and want to make shorewall to route some traffic over the DSL and some over T1. Can I do it using shorewall? Thanks, Wahid Sharif Systems Administrator Placemark Investments Phone: 972-404-8100 x2032
2010 May 21
0
r83 committed - Making the geocoder pass JSLint
...MapstractionGeocoder.prototype.geocode_error = function(response) { alert("Sorry, we were unable to geocode that address"); -} +}; /** * Default handler for geocode request completion @@ -107,14 +107,14 @@ return_location.country = ""; var place = response.Placemark[0]; - if(place.AddressDetails.Country.AdministrativeArea != null) { + if(place.AddressDetails.Country.AdministrativeArea !== null) { return_location.region = place.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName; - if(place.AddressDetails.Country.Administrativ...
2007 Dec 01
0
mock feed
...tp://maps.google.com/maps/geo?q=#{self.address_1.gsub('' '', ''+'')},+#{self.postcode},+FRANCE&output=xml&key=#{key}" doc = Hpricot.XML(Iconv.iconv("UTF-8", "ISO-8859-2", open(URI.escape (url)).read).to_s) section = (doc/"Placemark").first self.lat, self.lng = (section/"coordinates").text.split('','') self.town = (section/"LocalityName").text self.address_1 = (section/"ThoroughfareName").text end In my spec for the address model I have as a helper: def mock_f...
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access Google''s geocoding service using HTTP. Here''s the code I have so far: require ''open-uri'' require ''rexml/document'' include REXML url=''http://maps.google.com/maps/geo?'' address = ''q=1600 Amphitheatre Parkway Mountin View,CA'' address1 =