.NET Development: Getting tiles without Geostream
1 to 8 of 8
-
- CommentAuthorJamieW
- CommentTimeSep 23rd 2009
Is it possible to request a map tile without having to use Geostream? I.e. achieving the same functionality as calling tile.aspx with only GeoBase? I want to be able to generate tiles for a bespoke map viewer, but without having to install Geostream on the same machine.
I'm currently capturing the tile using the GetMap method of the Map class, but this often causes the country / local city name to be displayed on each tile which doesn't happen with Geostream!
Thanks -
-
CommentAuthorPepitaL
- CommentTimeSep 23rd 2009
Hi Jamie,
To answer your question: the only way to get a tile is to request it to Geostream. Thus you need to install Geostream and the client can be your own application.
Considering your situation (according to your information):
- if you generate tiles on the same machine as you use your map viewer, then you can use a MapCtrl.
- if you want to use different machine for the map viewer and generating tiles, then my question is 'why not installing Geostream?'
If you give us more details of what you want to achieve, we could help you find a solution.
Pepita -
-
- CommentAuthorJamieW
- CommentTimeSep 24th 2009
As I said, if I use the MapCtrl to generate tiles then I have the problem of the country / city names appearing on each tile. Moveover, it feels more than a little hack-ish to get tiles by capturing the output of another control!
My current situation sees the map data (GBFS files) on the same machine as the map viewer, so I would rather avoid installing a go-between web service to just request a tile for my control to use.
Thanks for your reply! -
-
CommentAuthorPepitaL
- CommentTimeOct 8th 2009
Jamie,
If your mapViewer is on the same machine as the your data, then you DO NOT NEED to generate tiles. Hence you can just use the local data on a mapCtrl.
Pepita -
-
- CommentAuthorJamieW
- CommentTimeOct 9th 2009
But I'm not using the MapCtrl as the map viewer! As I said in my initial post, I've written a -custom map viewer- so that it can work with other providers such as Virtual Earth and OpenStreetMap. I need to be able to generate 256x256 tiles to feed to the map viewer in order for it to work. I'm only using MapCtrl to generate the tiles, but I'd rather not for the reasons stated in my first post.
Thanks. -
-
CommentAuthorPepitaL
- CommentTimeOct 11th 2009
Jamie,
Sorry if I don't understand your exact need. Maybe we could discuss the matter on the phone. Please send us the details to contact you.
For your information, the MapCtrl gives you a full map in one screen. In addition, you can specify the size of this map, for instance 256x256 in your case. -
-
- CommentAuthorJamieW
- CommentTimeOct 14th 2009
Okay, I'll try to be clearer.
I'm writing a tile-based map viewer, powered by Direct3D, which is totally independent of Telogis. It requires 256 x 256 tiles, which can be obtained from virtually any map provider - at the bottom, it supports Virtual Earth (Bing Maps), OpenStreetMaps etc. as these providers can supply me with tile-able 256 x 256 tiles.
I want to be able to get these tiles from Telogis data, but WITHOUT using Geostream - the reason being that I don't want to have to call a remote web service to get tiles. The data is on the same machine as the map viewer anyway so there isn't much point in doing so, and installing GeoStream locally seems more of a workaround than an actual solution.
At the moment I am using a MapCtrl in order to get these tiles. I am NOT using the MapCtrl as the map viewer. I am setting the map size to 256 x 256 and doing a simple image capture to get the tile which is then used on my Direct3D-powered map viewer. The problem with this, apart from it being another hackish workaround, is that certain elements of the map are repeated on each captured tile. For example, the country name appears on most of the tiles.
So, what I'd like to do, is obtain actual 256x256 tile-able map tiles from the Telogis data without using Geostream. In effect, I want to use Geostream's tile generating capabilities without having to request via a web service.
I hope that is clearer. -
-
CommentAuthorPepitaL
- CommentTimeOct 14th 2009
Jamie,
Thanks for the clarification.
First of all, you should know that you DO NOT need to hack the mapCtrl to get the image but instead you can use the Map object (maybe it is not clear enough in the documentation). In the documentation, check out the Map section (API reference/ Telogis.Geobase/Map), there is an example about how to get the image.The idea for you is to get an image (with only ONE country name) and chop it into smaller maps of 256x256 to feed the application.
Now regarding the copyright, you need to get a specific licence to get ride of it (contact your sales rep for that). However, you will need to add it back wherever you want on the image when you give it to the application. This will be part of the licence contract.
I hope this will help.
Pepita -
1 to 8 of 8
