geospatial

What is the best JQuery plugin that handles HTML5 location? [closed]

旧巷老猫 提交于 2019-12-12 03:43:58
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I want to get the lat/long for a browser. I know that HTML5 has the feature, but I want a full plugin that handles old browsers

Spatialytics - failed to load resources (map)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 02:45:22
问题 I am working with geokettle, geomondrian and spatialytics to show the results in map. When I reload the page of spatialytics (it is on server tomcat), the map doesn't appear(gets pink). I inspected element and I saw what is in image below: Click to see the image Anyone knows what can i do? Cumps. 来源: https://stackoverflow.com/questions/17374197/spatialytics-failed-to-load-resources-map

Does “Circle(px,py d=d)” syntax for geospatial data dropped in Solr6? Since when and why?

守給你的承諾、 提交于 2019-12-12 02:18:51
问题 we're using Solr in our service. Recently, we're working on upgrading Solr to Solr6 & spatial4j-v0.6. But we faced that geospatial data cannot be fed, it's rejected, that has syntax like Circle(lat, lon, d=d) . It seems the syntax is dropped from Solr, but is it really dropped? Since when and why?? I couldn't find official statement that they dropped this syntax. As for now, I find an option format=LEGACY for the fieldType , then Solr accepting data. But, are there any recommended, proper way

d3.geo buffer around a feature

馋奶兔 提交于 2019-12-12 01:46:00
问题 Is it possible to draw a buffer (another feature) around a geographic feature in d3.js as a fixed distance unit (kilometers or miles)? For instance, how would I draw a path around a point that extends 25 miles from that point in every direction. I've tried using d3.geo.circle and passing a fraction of degree (25 miles / approximately 69 miles per latitudinal degree or 25 / 69) but realize that although d3.geo.circle handles the reprojection of degrees, it does not accommodate for the

Is there way to optimize speed of shapely.geometry.shape.contains(a_point) call?

烂漫一生 提交于 2019-12-12 01:37:00
问题 We are using a shapely library to check that some random point is not in some prohibited areas stored in a shape file. with fiona.open(path) as source: geometry = get_exclusive_item(source[0]) geom = shapely.geometry.shape(geometry['geometry']) def check(lat, lng): point = shapely.geometry.Point(lng, lat) return not geom.contains(point) But the latest call geom.contains(point) takes about a second to complete. Is there any other faster libraries for python, or could we optimize a shape files

Rendering only part of a map when using GIS data in R

我的梦境 提交于 2019-12-12 01:11:59
问题 Alright, I have a question that I can't find an answer to elsewhere, so I hope you guys can help me. I want to render the area of former Yugoslavia, and I have a dataset for that. So far I have the following, which works fine: library(sp) library(maptools) greg <- readShapePoly("../GlobalData/GREG/GREG.shp", proj4string=CRS("+proj=longlat +ellps=WGS84")) yugo <- greg[greg$COW == 345,] plot(yugo) This gives me a map like this: But I actually only want the upper left part of the map: I have

Differences in distance calculated between javascript function and sql server STD distance

感情迁移 提交于 2019-12-11 18:58:44
问题 DECLARE @orig geography = geography::Point(17, 78, 4326); Select @orig.STDistance(geography::Point(17.001, 78.00001, 4326))/1000 gives 110.674385214845 function calculateDistance(lat1, lon1, lat2, lon2, units) { var R = 6371; // Radius of the earth in km var dLat = deg2rad(lat2 - lat1); // deg2rad below var dLon = deg2rad(lon2 - lon1); var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.sin(dLon / 2) * Math.sin(dLon / 2); var c = 2 * Math

gIntersection returns TopologyException when gIsValid in R

≡放荡痞女 提交于 2019-12-11 16:46:24
问题 I've made the same question elsewhere. Now I bring the data so you may try to reproduce the error. I just wanna see how much of a small area was deforested up to 1997. Small area is in setoresp.zip. Deforestation is in d97.zip. The files are here. Unzip them to the working directory, along with the code: # This script reads sectors of investigated cities and calculates the # deforestated area (up to 1997) for the first sector library(rgdal) library(rgeos) library(raster) setp <- readOGR(".",

How to create and use GeoSpatial indexes in Marklogic from Sparql

為{幸葍}努か 提交于 2019-12-11 16:22:54
问题 I have loaded the geospatial data from geonames.org into Marklogic using RDF import. When using the Query Console to explore the data, I see the data has been loaded into an xml document and looks like this: <sem:triple> <sem:subject>http://sws.geonames.org/2736540/</sem:subject> <sem:predicate>http://www.w3.org/2003/01/geo/wgs84_pos#lat</sem:predicate> <sem:object datatype="http://www.w3.org/2001/XMLSchema#string">40.41476</sem:object> </sem:triple> <sem:triple> <sem:subject>http://sws

How do I calculate the Azimuth (angle to north) between two WGS84 coordinates in a single T-SQL query?

一世执手 提交于 2019-12-11 15:22:35
问题 I found the solution for this question in C#, but I can't translate it to a single query T-SQL, since my C# implementation requires branching (if then else). I also found the following C# solution, which could be translated to a single query T-SQL but it doesn't produce the correct results public static double GetAzimuth(WGSCoord c1, WGSCoord c2) { var lat1 = DegToRad(c1.Latitude); var lon1 = DegToRad(c1.Longitude); var lat2 = DegToRad(c2.Latitude); var lon2 = DegToRad(c2.Longitude); return