606 reputation
116
bio website cmabreu.com.br
location Brazil
age 42
visits member for 1 year, 5 months
seen 2 days ago

Online real time strategy games lover and developer. Java, HLA RTI, PostGIS, Mapserver, Openlayers.

Just creating a online conquest game, like Tribal Wars, using GIS, navy and army combat units and real world cities. Maybe nuke weapons ( eheh ) ...


Apr
15
answered Read GeoJSON with openlayers
Apr
15
comment Read GeoJSON with openlayers
Pay attention to capitalize projection to Projection in 'internalProjection': map.baseLayer.projection,
Apr
8
comment How to (using OpenLayers) panTo/setCenter on a OpenLayers GeometryPoint
I think cx and cy is your coordinates converted to pixel position in to map window. Get the width and height of the map (on screen) and try to find a relationship between your cx,cy and actual coordinates.
Apr
8
comment How to (using OpenLayers) panTo/setCenter on a OpenLayers GeometryPoint
How and where this images came from? Are you using ajax or it's hard-coded in the script? Please give us your code, not the OpenLayers generated code.
Apr
8
comment Extract a PostGIS dump from OSM with a particular tag
To me it's the easy way since gives me more control. Andre Joost said: And please not that osmosis will give you nodes, ways and relations. If you want a database that can be used for rendering by Mapnik, or to be used with other GIS softawre, osm2pgsql is a better choice.. You can connect all commands to make all in one step. I think the XML step will be made in background anyway.
Apr
8
answered Extract a PostGIS dump from OSM with a particular tag
Apr
8
comment How to create a point representing a polyline?
Try this post. I show how to create query layers in QGIS. I suggest you to try PGAdminIII first to play how to get the points (QGIS is not too fast to make queries). gis.stackexchange.com/questions/85071/…
Apr
7
awarded  Citizen Patrol
Apr
7
answered Trouble converting .osm to .pbf with Osmosis
Apr
7
comment How to create a point representing a polyline?
Well, when I searching for a street, I don't care about house numbers. So, "The middle of the street" is enough to me. You need the median. If you just want to point the location site in a far away zoom level, use any point you want because they will be too close each other.
Apr
3
comment How to create a point representing a polyline?
How can a constelation be a star? How can a line be a point? Just getting the starting or ending point? getting the median?. Be more clear.
Mar
31
comment How to select features in OpenStreetMap
Thinking like Tribal Wars (www.tribalwars.com) I can create multiples continents (worlds in TW) or countries. You might have given me a good solution!
Mar
31
comment How to select features in OpenStreetMap
Will be hard to serve. I will need a good VPS, large bandwidth and time to focus on a simple game board development. As I said, much more resources the game itself will need.
Mar
31
comment How to select features in OpenStreetMap
Thanks. Even reluctant I must do it.
Mar
31
comment How to select features in OpenStreetMap
Well, thanks for your tips and advices. I will make my own server now. Will be hard, but necessary.
Mar
31
accepted How to select features in OpenStreetMap
Mar
31
comment How to select features in OpenStreetMap
My new concern is in the traffic. You said They are usually not suited for heavy traffic and now I'm worried about this.
Mar
31
comment How to select features in OpenStreetMap
I'm trying to avoid serving my own map, but I think there is no way to. The map is only a background to my game where two objects will live in (cities and mobile units). I will not interact with the map elements, so I have no map data in my database. By serving my own map, I will spend much more resources in the map instead the game itself (and open the door to much more troubles).
Mar
15
comment How to select features in OpenStreetMap
Stamen map is nice, but isn't what I looking for. I will accept your answer. Thanks.
Mar
13
asked How to select features in OpenStreetMap