jpeterbaker / maxfield

Code for maximizing the Ingress fields on a given set fo portals
GNU General Public License v3.0
165 stars 56 forks source link

Coordinate problem? #19

Closed struppinet closed 10 years ago

struppinet commented 10 years ago

I only get a bunch of points on the same place on the map. It seems there is a problem with the coordinates. All portals except two are on the top left corner ?!?!

My output: linkmap

My input:

Materl Maria Hollabrunn (nördlich),48570723,16084928
Kreuz,48570339,16080256
Hollabrunn - Heiligenstatue,48568594,16076083
Weinkeller der Landw. Fachschule,48568231,16072385
Historical House with Wine,48568025,16072355
Kreuz Jesus Hollabrunn (nördlich),48567711,16080396
Hollabrunn - Wasserrad,48567643,16080976
Museum Alte Hofmühle,48566791,16083500
Speicher 2,48567042,16084442
Hollabrunn - Brunnen am Lothringerplatz,48566393,16079945
Haus,48565154,16079602
Hollabrunn Trainstation,48562838,16072682
Maximilian Jordan,48562758,16078164
Pfarrer Josef Strauss,48563000,16078810
Koliskoplatzsäule,48563475,48563475
Altes Gericht,48563241,16080782
Denkmal,48562659,16078874
Hollabrunn Hauptplatz Stadtbru,48562340,16078818
Rathaus,48561926,16079114
VS Turnsaal,48562162,16080759
Standesamt Hollabrunn,48561578,16078940
Brunnen im Haus Hollabrunn,48561360,16079024
Pfarrkirche St. Ulrich,48561439,16079876
EBRG/ARG Hollabrunn,48561277,16081757
Materl (östlich),48561865,16094441
Kriegerdenkmal Magersdorf,48561280,16098256
Johannes Nepomuc,48561531,16102338
Nepomuk Statue Magersdorf,48561312,16103039
Kapelle Magersdorf,48560807,16105272
Kapelle Magersdorf (nördlich),48561586,16106069
Hollabrunn Kreisverkehr Brunnen,48561185,16073883
Badhaus,48561007,16074579
Denkmal Hollabrunn,48560697,16071792
HTL Hollabrunn,48560343,16070354
Frisch&Fein,48559705,16069863
Alter Schlachthof,48560103,16073791
Old Slaughterhouse Hollabrunn,48559900,16073780
Heiligenbildstock,48559635,16080192
Kapelle,48558610,16067654
Sporthalle Hollabrunn,48557648,16073914
Zechmeister,16073914,16079061
Historisches Gebäude Hollabrunn,48554932,16079491
Russischer Soldatenfriedhof,48554112,16084890
Heiliger Hubertus,48555217,16088024
Materl,48552514,16077598
Kreuz Jesus Hollabrunn,48549769,16078932
Materl Maria Hollabrunn,48549665,16079179
ProfM2 commented 10 years ago

check your input again ... specifically: Koliskoplatzsäule,48563475,48563475 Zechmeister,16073914,16079061

The problem isn't the algorithm or the program. The problem is that the output PNG file is a static graphic. There is no zoom to it. If there was, you would find that all of your points are in the upper left. Remove the above two points and rerun.

BTW, I also have the same issue if the points are two far apart, it condenses everything else and makes it impossible to see.

(EDIT) ... I removed the two above portals and got this as a result:

linkmap

jpeterbaker commented 10 years ago

In a future version, I would like to be able to automatically detect areas that would benefit from a sub-map. That way, you could have a plan that includes all the portals and an extra map that clearly shows the main group.

ProfM2 commented 10 years ago

How about writing to a SVG instead of a PNG? (or do both). This would give the benefit of zooming in on an SVG. (svgwrite 1.1.6 - https://pypi.python.org/pypi/svgwrite/ ) may help. A way to view the SVG would be InkScape.

struppinet commented 10 years ago

Yeah it was the bad data. Sorry to bother you :( Thought it was an error. Thanks for the help anyways!