hi,
As per <>, section 7.3 "Streamed Map Tiles", the response expected from the server is in format:
,,\r\r
Here, what is "Tile X String" & "Tile Y String"?
Can you give the exact/clear specification of the response which Nutiteq Lib StreamMap API understands. Also some sample server response would be great.
thx
Tile X String means tile X-coordinate as string (not as binary number). Our test server URL example: http://aws.nutiteq.ee/mapstream.php?z=9&ver=2&ts=128&t=255,170,255,169
Here first tile is x=255 y=170, second is x=255, y=169. As you see answer is following (.. means binary data):
255,170,26646 ‰PNG..END..255,169,17877 ‰PNG ... END..
hi Jaak,
Thx for the reply, but still i am unable to get the tile rendered using stream server response strategy. If i use your link, it works fine, so my client code is correct. My server response format seems to be same as with aws.nutiteq.ee but still no success. Is there a way, i can attach the server response, so that you can put some light where I am going wrong?
Also, I have couple of doubts when I use NutiteqStreamedMap api:
1) There is no way to specify the tiles directory name, as normally happens in other Map API? So, if i want different set of tiles, how can I do that?
2) Does this streamed concept work with any tile size (128/256) or only with 64?
3) Does the streamed map concept only support png file or i can use jpg/gif file format for tiles?
Thx!
You can send your server URL and logs to support@nutiteq.com, if you do not want to post them here.
1) You can add any parameters and directories to your "base URL" parameter.
2) Yes, also our test server works with 128 and 256-pixel tiles (add parameter &ts=128 or &ts=256 to the base URL), also client size tile size parameter must be set to the same.
2) Support of different image types depends really on device, whether it can render particular image type. We have used it also with JPEG (DigitalGlobe images). In J2ME only PNG is mandatory, few devices have issues with JPG and quite a lot do not support GIF. So if possible we suggest to stick to PNG.
hi Jaak,
I have sent you the mail with server response as attachment. Please see the mail and reply.
thx!
hi Jaak,
The server response started working with StreamMap API, but the map shown is vertically shifted by around 192px, i.e. for the center i set, the map is shown 192px offset vertically. I don't know why?
Also, As per MGMaps_server_API_specification_011208_v3_0, section 7.3 "Streamed Map Tiles", the requested URL have x1,y1, x2,y2 as coordinates of the tile. What exactly are these coordinates of the tile? Is if the top left corner or bottom right corner?
Thx
Hi,
Please clarify my querry. I need to know which part of the tile x1,y1, x2,y2, coordinate belongs to (As per MGMaps_server_API_specification_011208_v3_0, section 7.3 "Streamed Map Tiles", the requested URL have x1,y1, x2,y2 as coordinates of the tile).
Is it the top left corner of the tile or the bottom right corner or something else?
Thx
x and y meaning depends on coordinate system. These refer to requested tile. Default streaming solution uses so-called Google Maps Spherical mercator tiling system, the same system is used also by OpenStreetMap, CloudMade and Bing. Bing has nice doc in http://msdn.microsoft.com/en-us/library/bb259689.aspx about it. The documents describes also quad-keys, which are not relevant here. Here you use xy coordinates.
In our document x1,y1 means XY of the first tile, x2,y2 XY of the second tile etc, these are not corner coordinates of a tile.
Hi Jaak,
Thanx again for your replay. Now i understand thtf x1 y1 does'nt mean the top left corner co-ordinate in pixel space for streamed tiles. Can u clarify you last line a bit i.e x1 y1 is XY of the 1st tile and so on.
Thanx in advance.
Every raster tile image has X and Y coordinates. E.g. in zoom = 0, you have just one tile X=0 and Y=0, in zoom =1 you have 4 tiles with X=0 and 1, Y=0 and 1 etc. This X and Y system is described in the referred web page and map server API document.
Reposting the querry, some of the text not shown
hi,
As per MGMaps_server_API_specification_011208_v3_0, section 7.3 "Streamed Map Tiles", the response expected from the server is in format:
Tile X String, Tile Y String, Tile size in Bytes, String\rPNG image Binary\r
Here, what is "Tile X String" & "Tile Y String"?
Can you give the exact/clear specification of the response which Nutiteq Lib StreamMap API understands. Also some sample server response would be great.
thx