Displaying 20 results from an estimated 58 matches for "lng".
Did you mean:
long
2010 Nov 08
1
API Google MAPS
...://ajax.googleapis.com/ajax/
libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(28.142722, -15.448609);
//Creatin a MapOptions object with tthe required properties
var myOptions = {
zoom: 3,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
//Creating the map
var map = new google.maps.Map(document.getElementBy...
2002 Sep 19
2
problem moving files
...2.4.9(we have some patches applied to this).
I have root and boot filesystems as ext3 type. After
running some tests the system gets into a strange
state. I cannot move one file to another if that
destination file already exists. Here is some text
that can help you understand the problem:
.....
{lng}usersg_16: ls
{lng}usersg_17: touch aaa
{lng}usersg_18: ls -l
total 0
-rw-rw-r-- 1 usersg media 0 Sep 19 10:45 aaa
{lng}usersg_19: touch bbb
{lng}usersg_20: ls -l
total 0
-rw-rw-r-- 1 usersg media 0 Sep 19 10:45 aaa
-rw-rw-r-- 1 usersg media 0 Sep 19 10:45 bbb...
2005 Dec 30
4
Convert "é" in "é"
I try to find an function to convert characters in html chars. "é"
become "é"
There is something in RoR 1.0 to do that ?
2018 Jan 19
1
Leaflet maps. Nudging co-incident markers
...5,52.4851)
cat=c('Gallery','Cafe','Library','Cafe')
n=c('North St Gallery','Gallery cafe', 'South St Library', 'Coffee 2 go')
d<-data.frame(idno,x,y,cat,n)
#get a map and zoom into approx area of interest
m=leaflet()%>% setView(lng = -1.935, lat=52.485, zoom=12)
m=addTiles(m)
m
#create groups of objects
c= subset(d,cat=="Cafe")
l= subset(d, cat=="Library")
g= subset(d, cat=="Gallery")
#add markers
m=addCircleMarkers(m,
lng = c$x,
lat = c$y,...
2008 Nov 27
0
Rails Join problem
...w, i have two models: Article and User. Articles belongs_to User
and User has_many Articles. At the User model i have the info related
with my latitude and longitude.
So my Article object has three fields: id name user_id (FK to User
model)
And my user model has four fields id name lat (latitude) lng
(longitude)
OK, to have access to the user info thru articles i do the query:
@articles = Article.find(:all,:conditions=>"vectors @@ to_tsquery
(''büch'')",:joins=>" INNER JOIN users ON users.id =
articles.user_id",:include=>:user,:origin=>"Aug...
2007 Dec 01
0
mock feed
...ress_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_feed
directions = "q=71+av+Par...
2009 Feb 23
2
geokit - using :through to connect models
...account
| belongs_to :role
|
| private
| def geocode_address
| geo=GeoKit::Geocoders::MultiGeocoder.geocode(address1 + " " + city + " " + state + " " + zip)
| errors.add(:address, "Could not Geocode address") if !geo.success
| self.lat, self.lng = geo.lat,geo.lng if geo.success
| end
|
| end
`----
and an internship:
,----[ internship.rb ]
| class Internship < ActiveRecord::Base
| has_many :internship_categories
| belongs_to :employer, :polymorphic => true
| acts_as_mappable :through => :employer
| end
`----
it seems li...
2000 Mar 06
4
Microsoft Knowledge Base Q168821
I havent noticed this one mentioned on the list...
http://support.microsoft.com/support/kb/articles/Q168/8/21.ASP?LNG=ENG&SA=AL&SA=AL
>NOTE: The information contained in this article is provided for informational purposes only. Microsoft cannot
>guarantee Microsoft Networking functions Server Message Block (SMB) will work as expected when servers
>running SAMBA are present within the workgroup or...
2011 Feb 08
0
favorite pattern for adding functionality to an AR?
Do you have a preferred programming pattern for adding functionality to
an ActiveRecord? As an example, say I have some gnarly trig functions
for distance and bearing between pairs of latitude and longitude:
=== file: latlng.rb
module LatLng
def haversine_distance(lat1, lng1, lat2, lng2)
...
end
def bearing(lat1, lng1, lat2, lng2)
...
end
=== EOF
... and I want to mix in haversine_distance(other_ar) and
bearing(other_ar) methods into an ActiveRecord. The shim functions
would look like this:
===
def haversine_...
2010 May 10
1
Rails/mongrel/httpd issue - F13, rails 2.3.5
...c/init.d/mongrel-rails but it didn't display more logs : http://ovirt.pastebin.com/N5v94cTu
This is the page I get when I try to reach the ovirt web interface, I see the html tags (kerberos auth is working) :
<html><body>You are being <a href="http://ovirt.admin.virt.par.lng/ovirt/login/login">redirected</a>.</body></html>
and logs :
==> rails.log <==
Processing DashboardController#index (for 10.75.128.51 at 2010-05-10 10:37:25) [GET]
Redirected to http://ovirt.admin.virt.par.lng/ovirt/login/login
Filter chain halted as [:is_logged...
2006 Aug 18
1
customization of ActiveRecord models
I''m trying to determine how/if I can use MySql''s spatial extensions
with ActiveRecord. The spatial extensions usually require inserts in
the following format:
INSERT INTO `locations` (name, point) VALUES ("location
name",GeomFromText(''POINT(<lng> <lat>''));
And reads as
SELECT name, AsText(point) AS point FROM locations;
While I understand there''s methods to issue custom finder commands, I
don''t recall seeing anything about custom inserts/updates.
Does anyone have any recommendations on how I might ha...
2014 Feb 06
0
Array Confusion
...43", "short_name"=>"94043", "types"=>["postal_code"]}], "formatted_address"=>"1600 Amphitheatre Parkway, Mountain View, CA 94043, USA", "geometry"=>{"location"=>{"lat"=>37.4219985, "lng"=>-122.0839544}, "location_type"=>"ROOFTOP", "viewport"=>{"northeast"=>{"lat"=>37.4233474802915, "lng"=>-122.0826054197085}, "southwest"=>{"lat"=>37.4206495197085, "lng"=>-122.0...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...oprietary_polyline);
},
getCenter: function() {
- var point;
var map = this.maps[this.api];
+ var pt = map.getCenter();
- // TODO: Add provider code
-
- return point;
+ return new mxn.LatLonPoint(pt.lat(), pt.lng());
},
setCenter: function(point, options) {
var map = this.maps[this.api];
var pt = point.toProprietary(this.api);
-
+ if(options != null && options.pan) { map.panTo(pt); }
+ else { map.setCenter(pt); }
},...
2010 Apr 01
3
Using GIS data in R
...gether. The
problem is the various GIS packages for R do not play well with each
other. sp, shapefiles, maptools, etc all use different data
structures. Can someone suggest a simple set of commands that will
work together that will:
1) load the shapefile data.
2) Allow me to test whether or not a (lng,lat) coordinate pair are
inside or outside the polygons defined in the shapefile.
Many thanks,
scott.
--
Scott M. Duke-Sylvester
Assistant Professor
Department of Biology
Office : 300 E. St. Mary Blvd
Billeaud Hall, Room 141
Lafayette, LA 70504
Mailing address : UL La...
2009 Nov 04
0
r53 committed - applied patch from John McKerrell
...if ( marker && marker.mapstraction_marker ) {
+ marker.mapstraction_marker.click.fire();
+ }
+ else if ( location ) {
+ me.click.fire({''location'': new
mxn.LatLonPoint(location.lat(), location.lng())});
+ }
+
+ // If the user puts their own Google markers directly on
the map
+ // then there is no location and this event should not
fire.
+ if ( location ) {
+
me.clickHandler(location.lat(),location.lng(),loca...
2010 May 05
1
[PATCH server] Upgrade rails gem version for F13
From: root <root at ovirt.admin.virt.par.lng>
Signed-off-by: Arthur Cl?ment <aclement at linagora.com>
---
src/config/environment.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/config/environment.rb b/src/config/environment.rb
index 9c1a9fa..ca6ed03 100644
--- a/src/config/environment.rb
+++ b/src...
2010 Jul 05
1
[PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
From: root <root at ovirt.admin.virt.par.lng>
Signed-off-by: root <root at ovirt.admin.virt.par.lng>
---
src/app/controllers/application_controller.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb
index 4c4666...
2008 Jan 21
1
Mysql collations error
...(utf8_general_ci,COERCIBLE) for
> operation ''='': select * from locations where country = ''HU'' and
> geo_state = ''08'' and city = ''Pázmánd'' and zip = ''(null)'' and lat =
> ''47.283'' and lng = ''18.666'' and metrocode = ''0'' and areacode = ''0''
> and isp = ''UPC Magyarorszag Kft.'' and organization = ''UPC
> Magyarorszag Kft.'' limit 1
mysql collation variables are set to.
collation_connection
lat...
2014 Jun 15
0
Problem with converting a list of grids to a list of polygons
...is?).
But I got stuck when I tried to convert the XMIN, XMAX, YMIN, YMAX - corner
points to a list of polygons (and keeping at least the ID as individuell
reference).
I really don?t get it, how can I read data of this format as a list of
polygons?
?head"(ID, XMIN, XMAX, YMIN, YMAX, lat, lng, altc_mean)
polys <- Polygons(list(Polygon(assemblage[,c("XMIN", "XMAX", "YMIN",
"YMAX?)])), ID=assemblage$ID)
SP <- SpatialPolygons(polys)
SPDF <- SpatialPolygonsDataFrame(SP, data=data.frame(x= assemblage$lng, y=
assemblage$lat, row.names=row.names(...
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks
like YM4R GM (and Mapstraction) doesn''t support this. I need an init like:
marker = new GMarker(...
GEvent.addListener(marker, "dragend", function() { })
but the current setup makes "anonymous" markers - never creates variable
that can be used to access them. Has anyone thought about