| Author |
Message |
|
|
I've build a Daily Arctic map using tiles from NASA and showing the North Pole with a Polar Stereographic Projection. There are 4 zoom levels available (mouse wheel).
http://exploreourpla.net/explorer/?geoLink=1650
I want to show as many features as possible (glaciers, places, ice shelfs, etc.) and started with the cities web service. However, the north pole is often included in the bounding box and then the maxrows parameter seems to be ignored - far too less hits.
In case North Pole is not included cities in the lower left corner of the screen seem to have an strange priority.
http://exploreourpla.net/screens/1650.jpg
Is there a way to improve the behaviour and have all features up to maxrows equally distributed over the map?
Many thanks for any help.
--noiv
|
 |
|
|
thanks - works perfectly now.
-- noiv
|
 |
|
|
Hi Marc,
could you please have an eye onto the georss service?
the URL: http://ws.geonames.org/rssToGeoRSS?feedUrl=http://today.reuters.com/rss/worldNews
returns
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
- <geonames>
<status message="com.sun.syndication.io.ParsingFeedException:
Invalid XML: Error on line 8: The entity name must immediately
follow the '&' in the entity reference." value="12" />
</geonames>
Many thanks
|
 |
|
|
Hi Marc,
I've searched around in different countries and now it looks like the city level is always missing. Of course, I've not checked the whole planet, so I would be happy, if you could proove me wrong.
Is there a possibility for a systematic error? If I remember right the cities level was included some time ago.
|
 |
|
|
I like the extendedFindNearby very much - it gives users an orientation down to the details they know. But sometimes the level of cities is lacking.
Example:
Geneva:
http://ws.geonames.org/extendedFindNearby?lat=46.2022156980098&lng=6.14569187164307
and a few streets to the east:
http://ws.geonames.org/extendedFindNearby?lat=46.20383445303909&lng=6.1544036865234375
in the latter the ADM1 (Canton de Genève) is followed by a PPLX (Eaux-Vives)
Is it possible to have Geneva in between in the xml?
|
 |
|
|
dportabella wrote:
Attention: 1.6 Gb
Great Work! Any zip available?
|
 |
|
|
cla wrote:
I am in the need of determine the country and as much adminlevels (state/county/district) as possible out of a given latitude/longitude.
Could you please be more precise then.
|
 |
|
|
Try extendedFindNearby service:
http://ws.geonames.org/extendedFindNearby?lat=52.10650519075632&lng=-0.17578125
|
 |
|
|
citiesJSON = 4 Credits
|
 |
|
|
Genial wäre ein Fallback, der beim Überschreiten der Limits auf den offenen Server zurückgreift.
So bleiben die Dienste auf den Webseiten im Erfolgsfall benutzbar.
|
 |
|
|
Ich auch,
wenn die Zugriffe dann gleichbleibende Antwortzeiten
rund um die Uhr haben, ist das eine tolle Sache.
--
noiv
|
 |
|
|
Wow, service is now more responsive and answer leaner.
|
 |
|
|
Hmmm, only one last point:
Code:
header('Content-Type: text/html; charset=utf-8');
as the first line of anything else in PHP. If this not helps,
I have no more ideas, except install everything again
Lo siento mucho.
|
 |
|
|
Well, I see. Same browser, same charset, but different results.
Which code produces bottom screen?
Have you tried a minimal approach like:
Code:
echo "<html><head></head><body>";
$res = mysql_query("select a row from the table");
while ($row = mysql_fetch_object($res)){ echo $row->name . "<br />";}
echo "</body></html>";
with charset and doctype of course?
|
 |
|
|
|
My remote diagnostics capabilities are limited, need more details to give help....
|
 |
|
|
When you do nothing special with PHP (e.g. multibyte)
it send strings to your website like they are found in the database.
Did you tried to tell the browser to use a special charset?
Does the browser use UTF-8?
|
 |
|
|
Ralf wrote:
Siehst du einen Möglichkeit, die Daten weiter zu strukturieren? Sind solche Daten überhaupt verfügbar und können diese aufgenommen werden?
Der Hierarchy Service gibt zu vielen Ländern Admin Daten zurück, für Deutschland z.B. Bundesländer.
http://forum.geonames.org/gforum/posts/list/82.page#245
Funktioniert sehr gut....
|
 |
|
|
marc wrote:
... A first prototype for a hierarchy service is ready. ....
Wow, all tested IDs returned correct data.
Can I help to make the relation country -> contintent?
|
 |
|
|
Anonymous wrote:
... you'd then be able to get the town itself, followed by the state, followed by the country.....
Cool idea, I second that!
|
 |
|
|