geospatial

To find square area data from mongodb Query using 2 google map point (latitude and longitude)

允我心安 提交于 2019-12-10 12:25:22
问题 I am working on mongodb Geospatial feature. Following is my db schema { _id:5c6fea5aa7f54038cc63db92, location:{ coordinates:[-96.81916,33.07516], type:"Point" }, userId:1 } Indexing on location field with 2dsphere I have 2 point and each one have latitude and longitude and its example is below sw_latitude : 32.76286484066411 sw_longitude : -96.91870791625979 ne_latitude : 32.789133220783015 ne_longitude : -96.67529208374026 base on these 2 points i need to get all userId which are cover in

Using SQL Server spatial types in SSIS data load

▼魔方 西西 提交于 2019-12-10 11:10:08
问题 I am trying to load a file using the SQL Server Import Data function - appending rows to an existing table. my existing table is created like this: CREATE TABLE [dbo].[load]( [Long] [varchar](50) NULL, [Lat] [varchar](50) NULL, [Geog] AS ([geography]::STGeomFromText(((('POINT('+[Long])+' ')+[Lat])+')',(4326))) ) however when the load tries to execute i see the following error messages. I believe the issue is around the computed column 'Geog' as the data loads fine when i take this out of the

Cannot render vector tiles (.mbtiles) file with leaflet

狂风中的少年 提交于 2019-12-10 10:16:16
问题 I am trying to render some locally-stored and vector-based tiles download from OpenMapTile. The reason I am doing that is because my end application will only run on a computer that cannot be connected to the internet. I have read many different things on whether or not leaflet can render vector-based tiles but it seems that it can from some examples. It seems that it is not possible with Vector Grid that only does raster tiles but that it is possible with Leaflet.TileLayer.MBTiles So I tried

SqlServer Spatial DataReader.GetFieldType returned null

南笙酒味 提交于 2019-12-10 09:23:21
问题 I have a .net4.5 web application project that uses SQL server spatial datatype. Works perfectly locally on development machine, but when deployed to application server I get the following error when trying to run queries on table with spatial data: System.InvalidOperationException: DataReader.GetFieldType(5) returned null. I found out that if SQLServer is not installed on the server, there is no support for spatial data types. Therefore I installed the nuget package to my project: Install

How to get spplot (lattice) to not draw borders around polygons

假如想象 提交于 2019-12-10 03:21:12
问题 I have a tally by zip code which is a lot of polygons to plot (30,357 to be precise). Consequently when I pdf the spplot all I see are the borders not the choropleth interiors. Therefore, I'd like to turn off plotting the borders, or at least be able to make them much, much thinner. However, digging around in ?spplot and its various offshoots (the panel function, levelplot, etc.) have come up empty. Here's an example to work with (the borders aren't that prominent here but they would be given

How can I remove border lines when using geom_sf? [closed]

独自空忆成欢 提交于 2019-12-10 01:54:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I tried doing the following: ggplot(geography) + geom_sf(aes(fill=rate, color = NULL)) but that didn't get rid of the border lines. 回答1: Without a reproducible example it is difficult to know exactly what you are looking for. However, I will take a guess that your are looking for a way to suppress the lines

How to render a portion of spatial data depending on user location on map

夙愿已清 提交于 2019-12-09 23:09:53
问题 we have every street for texas in a database.The issue is, there are 2million streets. When the user looks at a simple county on the map, it takes FOREVER to render the streets for the county because the query has to go through EVERY SINGLE STREET in the texas table. Does anyone have any advice on how we can split the data across tables and have geoserver query the table needed depending on the current users location they are viewing? For Example Instead of one giant texas table how about

Geography data type vs. Geometry data type in SQL Server

荒凉一梦 提交于 2019-12-09 20:29:50
问题 Environment: SQL Server 2012 I'm using an online tool, the only one I could find so far, to plot polygons and points on the earth. http://www.birdtheme.org/useful/googletool.html I have two tables. One stores "areas" as polygons and the other table stores points amongst other things irrelevant to my question. For simplicity, I'll just reduce my scenario to sql variables. In the query below, I'm using the geography data type for well known points of interest. I drew a polygon around Robben

Why is geosearching/location based searches returning zero results?

雨燕双飞 提交于 2019-12-09 19:36:32
问题 I am trying to use app engine's search API to search locations: https://developers.google.com/appengine/docs/python/search/overview#Performing_Location-Based_Searches The problem is no matter what I do, I get zero results. I set the search lat/lng as the the exact point on a document's GeoPoint property and it still returns zero. I know the regular search is working because if I change the query to be a regular full-text search, it works. Here is an example of my data (this is actually from

Solr - How do I construct a query that requires a NOT NULL Location field

给你一囗甜甜゛ 提交于 2019-12-09 07:35:00
问题 I have a Solr index with a set of coordinates stored as a Location type; I would like to query for documents where this field has a non-null value. What is the query syntax to perform the NOT NULL check on a Location field? 回答1: The canonical way is this: fieldName:[* TO *] Using a '' on the left side as Paige Cook suggested will probably work too but I don't trust it as much as I do the above. And since this is to a Location field, you will probably have to do this against one of the two