I'm thinking about developing an application where I got geodata stored in a geo-database with Sql Server 2008. I like to retrieve this data and paint the different shapes with svg, embedded in html5.
My question is:
How could I possibly retrieve this data,using what? I think some script language like php would do the job. Is there a way to do that only with javascript? Also is there a way to develop that using a microsoft technology(which i would prefer).
Thanks in advance
Sebastian
I have done 2D vector graphics using SVG, based upon Garmin Edge XML Points:
http://www.mtbbikeshop.dk/ruter
Two views: Topography or Google Maps
I extacted XML data and made a lot of calulations in order to produce POLYGON points
I used PHP on server side to prepare and transform. At client end I assembled the data, using div/span
But I am not sure want kind of vector you need ?
Related
I have a mobile app heavily associated with maps, GPS, location etc.
Currently I'm sending real time location data to server as regular Json (Strings...), and in the server I'm converting it to my custom geo objects, querying geo spatial database (PostGis etc.). Then backwards: I'm converting the results to strings and send them back to client as regular Json. Usually the client needs this results to display them to the user, so it's convenient that they are already strings.
My question is what can I benefit from working with Geo Json format instead? It's clear that it enables "offline mode" using SpatiaLite etc. But what else? What about all the conversions I'm using from/to strings of geo locations? Currently I have some very simple custom geo objects (location object etc.). Can I benefit here? Note that in the end it's good for me have the results as strings for the user, and for now offline mode irrelevant.
Is there a rule of thumb that if you are location/map app - it's best practise to use geo Json and not regular Json?
Thanks,
The benefit of using geojson instead of pushing out values as string is that geojson is a documented, specified format. Client-libraries (like d3.js) can make use of it and make transformations, projections and other geo-related operations on the client.
If the format benefits you in your current project depends on the libraries and framworks you use with your client. If for example your Project only needs geo-xml or kml output, geojson will be of no use for you.
I will need all the help of the experts!
I do have an mysql db which instead of spatial data has gazetteer uri's...
I was asked to build a dynamic map with openlayers (or any another js framework) but I don't know how to proceed or how to start !!!
Shall i transform the db into spatial somehow?
--Although they may not allow me to mesh with their db.
Alternative can I somehow create a layer on the fly?
--layer features will come from mysql
--spatial info from the gazetteer
Can this be done at openlayers level ? Are you aware of such capability of geoserver/mapServer so as the later serve such a layer through WMS ??
Also other strategies/ideas are more than welcome !!
thx
g.
I'm creating a web apllication and i want to load a json file to a visualization library. the thing is the json file needs to be in a certain format.
I'm using jena to get data in a json file that is in the TALIS format. How can i get the data writen in a custom format?Is it easier to first get them in talis and then transform them or get them in the desired form from the beginning?
I'd appreciate every possible help!
You don't say how you are serving your data to the client-side JavaScript application. I'm going to take a guess, and assume you are using Jena Fuseki to serve the data. If that's not a correct guess, you'll need to update the question to be more precise about your setup.
I don't think that Fuseki currently supports pluggable writers. So your best solution would be to apply a transformation in the client-side JavaScript to turn the JSON you get from the server into the format that's needed by the visualisation library. I've done this myself in a number of rich-client applications that consume RDF data. I usually find that I would need to apply client-side transform code in any case - often it's not just a difference in the format of the JSON, but also that you need to project some slice or aggregation of the data that's just easier to express in JavaScript rather than in SPARQL or equivalent.
I'm considering different options to use Neo4J graph and display it all on the web, at the moment I am considering a Java based reader of the database that creates JSON output for display by the web.
Is JSON suitable for display tree-like structures? In my case I have a parent-child(s) style organisation chart.
Could you give me an example if this is possible. Thanks.
Yes. Use JSON to pass over all the geometry: lists of nodes and edges, location and sizes of nodes, spline data for edges, etc. Convert all the data to an SVG DOM, which can be done dynamically. (Hint for HTML 4: make sure you use the SVG namespace in CreateElement.) The real trick, more than anything, is to do all the calculations before the data hits the browser. Simple calculations work fine in JavaScript, but anything complicated is best done elsewhere.
No example, unfortunately. The code I wrote is not available to the public.
I want to know what is the main methods that used in GIS to connect between the location and their information (spatial access methodes) SAM.
I read in some web sites two methods are:
vector
raster
is that methods related what I want???
thank you ^_^
there are indeed in general two types of GIS datasources: Vector and Raster.
With vector; the attribute data can be stored in several ways:
- Side by side in a spatial database
- In a vector file paired with an attribute file (ESRI shape with ESRI dbf)
- Connected in an application (f.i. in MapInfo; connecting points to an excel sheet based upon a common attribute)
With raster; all you have is the numeric value of a pixel.
The process of connecting data to geo-spatial coordinates is called Geocoding.
Other common methods use simple coordinates (Lat/Long or GPS).
Vector/Raster refers to the two main types of graphical data that a GIS might use to render a map.