geo

Store GeoJSON polygons in MongoDB

亡梦爱人 提交于 2019-12-03 03:52:25
I have the following problem with MongoDB. I got some geo data from my home country and i have to store them into mongodb to set up a simple Web Feature Service. This service will mostly do bounding box queries using the $within operator. The data is in GeoJSON format. Therefore i imported at first the Villages and Cities which are represented as points ( [1,2] ) in this format. No problem. Next step rivers and streets which are LineStrings and according to GeoJSON represented this way [[1,2],[3,4]] . But when importing the districts (which are in fact polygon and according to the GeoJSON

Android terminal--telnet missing commands, receiving this error : KO: unknown command, try 'help'

ⅰ亾dé卋堺 提交于 2019-12-03 02:57:11
I'm trying to set the coordinates on an emulated device. XXXX-MacBook-XXXXX XXXX$ telnet localhost 5554 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: Authentication required Android Console: type 'auth <auth_token>' to authenticate Android Console: you can find your <auth_token> in '/Users/XXXXX/.emulator_console_auth_token' OK The problem is... geo fix 77.9888 34.0000 KO: unknown command, try 'help' I don't seem to have the geo command help Android console command help: help|h|? print a

How to group by column values into Row and column header and then sum the value

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Below is my input and output .txt files. I want to group by the data by StatusDate and Method . And then sum the values based on the StatusDate and Method . Input.txt No,Date,MethodStatus,Key,StatusDate,Hit,CallType,Method,LastMethodType 112,12/15/16,Suceess,Geo,12/15/16,1,Static,GET,12/15/16 113,12/18/16,Suceess,Geo,12/18/16,1,Static,GET,12/18/16 114,12/19/16,AUTHORIZED,Geo,12/19/16,1,Static,GET,12/19/16 115,12/19/16,AUTHORIZED,Geo,12/19/16,1,Static,GET,12/19/16 116,12/19/16,Suceess,Geo,12/19/16,1,Static,PUT,12/19/16 117,12/19/16,Suceess

Showing a marker at a geo:-url in Android Maps

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible not only to have Google Maps on Android show a given coordinate in the Maps Application but have also a marker (or pin) set at the location? I read the documentation at https://developer.android.com/guide/appendix/g-app-intents.html but it only lets me set the zoom level. Right now I use the following code to show a place in Google Maps on Android: Double lat = 53.3; Double lng = 13.4; final String uriString = "geo:" + lat + ',' + lng + "?z=15"; Intent showOnMapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uriString));

Calculate distance of two geo points in km c#

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I`d like calculate the distance of two geo points. the points are given in longitude and latitude. the coordinates are: point 1: 36.578581, -118.291994 point 2: 36.23998, -116.83171 here a website to compare the results: http://www.movable-type.co.uk/scripts/latlong.html here the code I used from this link: Calculate distance between two points in google maps V3 const double PIx = Math.PI; const double RADIO = 6378.16; /// /// Convert degrees to Radians /// /// Degrees /// The equivalent in radians public static double Radians(double x) {

Parsing Google Geo API (Reverse Geocoding) with jQuery

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm sure I'm not the only one, but I cannot parse/return anything when jQuery takes a request to lookup an address when the data being requested is the latitude and longitude so Google can return the data, but it cannot be read by jQuery? http://maps.googleapis.com/maps/api/geocode/json With parameters: latlng=51.276914,1.077252 &sensor=false In Firebug it says 200 OK but nothing is displayed in the response: I can see it when I open it: http://maps.googleapis.com/maps/api/geocode/json?latlng=51.187296,1.229086&sensor=false&_=1302084865163

ElasticSearch geo distance filter with multiple locations in array - possible?

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Let's say we have a bunch of documents in an ElasticSearch index. Each documents has multiple locations in an array , like this: { "name" : "foobar" , "locations" : [ { "lat" : 40.708519 , "lon" : - 74.003212 }, { "lat" : 39.752609 , "lon" : - 104.998100 }, { "lat" : 51.506321 , "lon" : - 0.127140 } ] } According to the ElasticSearch reference guide the geo_distance filter can work with multiple locations / points per document. Once a single location / point matches the filter, the document will be included in the filter. So, is it

geo: Intent with label (Android)

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a working way (i heard that as of update 7.0 there were some changes) to display a marker with a position given by latitude/longitude with a label? geo:?q=latitude, longitude (Label) does not work... 回答1: Show point on google map via an intent. String uri = "geo:"+ latitude + "," + longitude; startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri))); You can also choose to place a point like so: String uri = "geo:"+ latitude + "," + longitude + "?q=my+street+address"; startActivity(new Intent(android.content

SemanticException Partition spec {col=null} contains non-partition columns

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to create dynamic partitions in hive using following code. SET hive.exec.dynamic.partition = true; SET hive.exec.dynamic.partition.mode = nonstrict; create external table if not exists report_ipsummary_hourwise( ip_address string,imp_date string,imp_hour bigint,geo_country string) PARTITIONED BY (imp_date_P string,imp_hour_P string,geo_coutry_P string) row format delimited fields terminated by '\t' stored as textfile location 's3://abc'; insert overwrite table report_ipsummary_hourwise PARTITION (imp_date_P,imp_hour_P,geo_country

Python Pandas &#039;apply&#039; returns series; can&#039;t convert to dataframe

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: OK, I'm at half-wit's end. I'm geocoding a dataframe with geopy. I've written a simple function to take an input - country name - and return the latitude and longitude. I use apply to run the function and it returns a Pandas series object. I can't seem to convert it to a dataframe. I'm sure I'm missing something obvious, but I'm new to python and still RTFMing. BTW, the geocoder function works great. # Import libraries import os import pandas as pd import numpy as np from geopy.geocoders import Nominatim def locate(x): geolocator = Nominatim