Good day,
I was wondering, is it possible to create "indoor" maps with Mapbox for iOS (or does anyone have another suggestion)? I have a PDF of an indoor floor plan. I think I need to convert that to the MBTiles ( http://mapbox.com/developers/mbtiles/ ) format. How could I acchieve this?
Allso, when drawning the "walking route" for the person to certain facilities in the building. "it" should know where the person could walk.
Currently I am trying to create something with CATiledLayers (but I am kinda stuck (I can display the map, using "a tile" format.) and was looking and MapBox might be usefull since it has things like 'drawning' vectors on the map, or icons with information and such. For the walking directions I was thinkin about 'dotting' the walking routes so "Dijkstra's" algorithm" could determine the path. How could I go about this in Mabbox, even if possible?
Any help in the right directions would be greatly appreciated.
Kind regards,
Matthijn Dijkstra
You can likely do this with MapBox. In order to get an image or PDF into MBTiles format, you will want to use TileMill. You basically need to get your imagery into a geographic format. The easiest way would be to export the PDF as a TIFF, then make it a GeoTIFF and follow these instructions. That will let you geo-enable the imagery, get it into TileMill, then export it as MBTiles. Then, you could use the MapBox iOS SDK to bring it to iOS.
You could use a service such as indoor.io to generate the maps. There are a bunch of indoor services out there and more coming on the market.
Related
I would like to create a osm like map for a fantasy planet.
Which already brings me to my questions:
Can I use openlayers-3 for a map that is not the map of the earth?
How do I create my own tiles for this planet? Is there a guide that you maybe can recommend?
Thank you very much!
Well, you'd have to design your map first, and then encode it into a format that OpenLayers uses, such as a KML Polgon file, PostGIS database, SHP Shapefile etc.
Tools like QGIS would possibly be a good place to start building your map, adding details etc. Then you can export them to one of the supported formats and point OpenLayers at it to be rendered.
N.B. NEVER done this, so a lot of the above is conjecture.
Nowadays, I wanna do some research of augmented reality technology.Especially, I would like to match a 2d image and a 3d model.And then, I will see the 3d model if scanning the 2d image. What's more, I know that there are a lot of SDKs(like metaio,and wikitude) and software can realize this in mobile app. However, what I want to do is realizing this in a website. I hope the people who use this don't need to download a particular mobile app, but just open a website and then scan a picture.
So, until now, I's like to know that,as the tile asked, can AR be realized in a website? If yes, how can I do it or is there any software like Metaio Creator to do this? If no, why?
Thank you for anyone who would like to answer my naive question.
May I recommend you our completely webbased AR & VR tool holobuilder.com by bitstars.com?
It supports 360 degree photospheres that can be enhanced with custom 3D models and then directly be embedded into your website as iframe, it has native support for stereoscopic view mode and much more.
For your use case you could have a look at the lower part of this blog post where you find information and an embedded example presentation with photosphere imagery containing 3D elements:
http://heyholo.com/google-pushes-vr-great-for-tools-like-holobuilder/
If you want to start creating I recommend the beginners guide:
https://medium.com/#maxspeicher/the-definite-guide-to-holobuilder-3b62a54d303e
The cv feature tracking you requested can not yet be realized without any apps/browser. But what you can do is realizing perspectively correct displaying 3D elements into the camera image and move with sensors. Should be as performant as within the player app.
We hope that it can somehow help you in pushing your research and we would love to read your feedback. In case of any questions please do not hesitate to ask, here or on any other contact channel!
I would like to create indoor navigation app. But have some trouble with a floor plan.
And I need a good map(floor) editor maybe like ArcGis,JOSM.
Will be great if this editor can create database by map (door, windows, corridors,...).
I will integrate this map in iOS app.
Thanks!
I found solution. I had this floor plan in jpg.
My steps:
1)Convert your image through GDAL to Gtiff.
2)Create project in TileMill without globe.
3)Press on the button "Add new layer".
4)Choose destination to your gtiff file and type in SRS field "900913".
5)Save.
6)In the CSS set on the image layer raster-scaling:bilinear;
7)Zoom your map while you will see the map.
8)Export your project to MBTile.
9)Use MapBox SDK to integrate your MBTile.
For GDAL:
gdal_translate \
-of GTiff \
~/Downloads/Plateosaurus_big.jpg \
~/Downloads/Plateosaurus_big.tif
You are free to choose any vector GIS you like to use to create indoor floor plans. Thus, you need to develop an speficiation for your model, so that you can create rules for routers etc. Next you need to think about how to store them (shapefiles, PostGIS, ...) and how you want to create the final products (rendered maps, routing graphs, ...).
I'm not sure how you want to create/collect your floorplans (experts vs. VGI) but JOSM sounds like a good starting point, esp. as the OSM community has already some experience with indoor mapping: http://wiki.openstreetmap.org/wiki/Indoor
Hint 1: There seems to be currently no final solution to indoor geolocation with adequat resoluton for your usecase (indoor routing).
Hint 2: The indoor topic is only in use within a very small part of the OSM community. So expect some refuses/critics if you add such data to the global OSM database.
Hint 3: In some countries are floorplans also intellectual property, so copy&trace might be a copyright infridgement.
Although that's not what it was made for, you could check out indoo.rs. You can use the product without indoor localization, but indoor map creation and indoor navigation.
I'm working on a project for college and I'm having great difficulty with part of it.
Simply put, I am looking to do the following 5 things:
download the open street map data for my city
store that data locally on the phone's harddrive.
view that data in my iOS application as a map
place markers on the map.
draw paths along roads between those paths.
I have been working on this particular part of the project for a number of weeks and I'm getting nowhere with it. I haven't even been able to figure out how to store the map on the phone let alone view the map data. I've tried using the "Route-Me" library but cannot get it working (although it seems to be one of the best libraries for using openstreetmap data so I am looking to learn how to use it). I feel pretty goddamned defeated.
If anyone has accomplished any of the tasks I am trying to do could you please link me to tutorials/guides/videos that you have used.
I'm not looking for people to give me code or do the work for me, I want to learn how to do this, but if anyone can point me in the right direction of sites that I could learn off I would be very grateful.
Any advice or feedback would be much appreciated
Here's how I ended up solving the problem.
Since Tilemill doesn't natively read .osm/.o5m/.pbf files I used Osmosis to convert a .osm file into .shp files.
I then created a new project in Tilemill and added the particular .shp files I wanted as layers to the new project. It takes a little bit of tinkering to get the map to look like you want it to but it's very similar to css and pretty easy to pick up as you go.
Once I had the map looking the way I wanted it I exported it as a .mbtiles file. This takes a long time to make and the files can be very large depending on how detailed the tiles are. I did one map of Ireland with zoom levels between 7-14 inclusive and I did one map of just Dublin city with zoom levels of 11-17 inclusive. Even though the map of just the city of Dublin had much less tiles, they were both ~200MB in size.
I then found this tutorial online which explains how to store the .mbtiles file in you application and how to read it: http://martinsikora.com/creating-mbtiles-db-for-ios-mapbox-from-hi-res-map-image
Here are a few other links that I found useful:
http://www.kindle-maps.com/blog/using-tilemill-with-openstreetmap-data.html
http://mapbox.com/developers/mbtiles/
http://mapbox.com/mapbox-ios-sdk/api/
http://mapbox.com/developers/api/#static_api
http://support.mapbox.com/discussions
I hope this is useful to someone
I would suggest trying the MapBox iOS SDK. It is actually forked from the Route-Me library and will allow you to accomplish everything on your list.
A key point to remember is that you have another step in between downloading the OSM data and storing it locally on the iOS device, that is, generating the map tiles and storing them in some sort of database.
Here is an example iOS app using the MapBox SDK that has both online and offline map sources and is a good place to start.
How to get world countries borders in term of array of coordinates?
I would like to draw countries overlays in the world map using Mapkit of IOS.
Id say your best bet is finding a Google maps KML File which is basically XML and then iterating through and putting it in your own format. As infact I was just about to do something like this for my own project (not IOS), got any format in mind for it and ill be able to give you a version too? Although I personally am not sure if there's any sort of built in method for you to do it (perhaps ask on IOS developers forums).