Huh no spatial info bah


HOME ยป Web Design

Hi I am new to using Solr 3.6.1. I am attempting a geospatial search using solr, whose index is imported from MySQL using DIH. I can see that there are lat & lng data (but not latlng) returned from the *:* query.


Problem: When I attempt a geospatial search, I get no results returned. I only get results when I increase the search distance d to a very large values like 100000, and the results returned contains no lat/lng data.


Could I have missed out something in the schema or data-config that prevented the geospatial data from being searched?


I would also like to sort according to ascending distance.


Related to : Huh no spatial info bah
Difference of the File Access Model Vs. Remote Data Access Model
Web Design
File access models and remote data access models are completely different concepts in the Information Technology (IT) industry. File access involves permissions set up to allow users access to files. Remote data access involves connections to databases. File AccessIn a network environment, file access refers to user permissions to access a file. Network administrators can implement read, write, execute and delete permissions on a file. If users have none of these permissions, the user has no access at all to the file.
Remote DataRemote data models configure a SQL Server database for data access. If a company owns a dynamic website, a database has lookup procedures that return the dynam
Spatial agent models / spatial emergent behaviour [on hold]
Web Design
I am trying to use R to model grids of agents that change their decisions based on the decisions of other agents in their direct proximity. Basically - each agent looks to the other agents around him on the grid, and might change its behaviour based on the the actions around him. I have included some sample dinky-toy code per below to show (one iteration) of such dynamic.I am wondering whether a) there is an elegant manner to address the boundaries of the grid (currently the t+1, i+1 code does
Must SIC wah! Killiney @ killiney road. $7.50 jiak bah bah! very generous!
Web Design
Must SIC wah! Killiney @ killiney road. $7.50 jiak bah bah! very generous!
 
1 large bowl laksa, cheecheonfan. Pepsi.
Only 7.50
Jiak bah bah!
1 worf. For office people. SHIOK Ah! This level of satisfaction long time no feel liao.

ROBERT TIMMS JIN HO JIAKS! JIAK BAH BAH!!!
Web Design
ROBERT TIMMS JIN HO JIAKS! JIAK BAH BAH!!!
 
wa even though when see menu heart abit tio arrow.
but ah!
wah! the cream of mushroom soup + BEER BATTERED FISH AND CHIPS + MANGO SMOOTHE!
flap flap falp flap man! jiak untill really bah bah! now still very full sia!
$43.20 inc gst + 10% svc.
nmnhnblm. so emo jiak alone :(

sinkies bah bah ger upgrade from 5C to 5B liao
Web Design
sinkies bah bah ger upgrade from 5C to 5B liao
 
- Bungalow, BMW, Body, Bank, Boss
Sigh....

you all prefer skinny or bah bah kind of gal. What is your choice and Why ?
Web Design
you all prefer skinny or bah bah kind of gal. What is your choice and Why ?
 
come give your choice.
skinny or bah bah one ?

R Create a Spatial Bubble Plot That Overlays A basemap of the US and other spatial layers as needed
Web Design

I'm trying to produce a nice bubble plot overlaid on top of a basemap of the US (i could import a shapefile if that is preferred but i've been using the R basemaps.

library(ggplot2,sp,raster,maps,mapdata,maptools,ggmap,rgeos)
myData =
data.frame(name=c("Florida","Colorado","california","Harvard","Yellowstone"),
                lat=c(28.1,39,37,42,44.6), 
                long=c(-81.6,-105.5,-120,-71,-110),
                pop=c(280,156,128,118,202))

Using this code below, that i adapted from another stack overflow post (Create bubble plot in R using satellite map), i am able to overlay a bubble plot on a map of the US. However this renders very slowly, the extent is too tight, it is bounded in a box, i'm not able to add other layers to the plot from what i can tell, and the base map is thick and not visually clean.

xy <- myData[,c("long", "lat")]
nl <- getData('GADM', country="USA", level=1) #raster data, format
SpatialPolygonsDataFrame
nl <- gSimiplify(nl, tol=0.01, topologyPreserve=TRUE)
# coercing the polygon outlines to a SpatialLines object
spl <- list("sp.lines", as(nl, "SpatialLines"))
SPDF <- SpatialPointsDataFrame(coords=xy, data=myData)
coordinates(myData) <- c("lat", "long")
projection(SPDF)<- "+proj=longlat +ellps=WGS84 +datum=WGS84
+no_defs +towgs84=0,0,0"
coordinates(SPDF)[1:5,] #retrieves spatial coordinates form the
dataframe
bubble(SPDF, "pop", sp.layout=spl, main="This is It!")

I can draw a nice basemap using this code. I add points to the map but they are not sized by the pop column in my data. And i can add additional layers to this map. But can i control the size of the points and the symbol itself like i can using a bubble plot?

map(database= "world", ylim=c(45,90), 
    xlim=c(-160,-50), col="grey80", 
    fill=TRUE, projection="gilbert", 
    orientation= c(90,0,225))

coord <- mapproject(myData$lon, myData$lat,
proj="gilbert",orientation=c(90, 0, 225))
points(coord, pch=20, cex=1.2, col="red") 

Can anyone please guide me towards the best way to plot a bubble map in R where i can adjust the fill and outline of the symbols in the bubble map, And i can add a clean basemap, that i can a) control the colors of (fill and lines) and b) add additional layers to (for instance another shapefile layer).

Thank you in advance for any advice.



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .