Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
This issue is fixed by changing the library called "gt-ala-tab" which is used
to
read tab separated files in the GeoServer.
You must first make the correction mentioned in the issue-68 of the "ala-portal"
http://code.google.com/p/ala-portal/issues/detail?id=68&q=gt-ala
After that, you should change one more line:
--------------------------------------------
CellDensityFeatureAttributeReader.java
(-) protected int cursor = 0;
(+) protected int cursor = -1;
--------------------------------------------
The problem was that the Geoserver ignored the first line of the list of items
to be
drawn from the maplayer service.
Original comment by htobon
on 3 May 2010 at 4:34
Here it is the compiled library gt-ala-tab for the Geoserver that fix this
issue.
Original comment by daniel.amariles88
on 3 May 2010 at 4:37
Attachments:
Verified. The fixed plugin has been deployed on ogc.gbif.org and all points are
now showing successfully.
http://data.gbif.org/species/13142116?extent=152%2B-26%2B154%2B-
25&zoom=6&minMapLong=152&minMapLat=-26&maxMapLong=154&maxMapLat=-
25&c[0].s=20&c[0].p=0&c[0].o=13142116
Original comment by josecua...@gmail.com
on 11 May 2010 at 10:11
The library provided was not encoding properly.
The stack trace was as follows:
May 12, 2010 9:45:57 AM org.ala.geotools.plugin.tab.TabUrlDataStore
getFeatureReader
SEVERE: Invalid uri
'http://data.gbif.org/maplayer/filter/c[0].s=0&c[0].p=0&c[0].o=Branta
leucopsis': escaped
absolute path not valid
java.lang.IllegalArgumentException: Invalid uri
'http://data.gbif.org/maplayer/filter/c[0].s=0&c[0].p=0&c[0].o=Branta
leucopsis': escaped absolute path not
valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at org.ala.geotools.plugin.tab.TabUrlDataStore.getFeatureReader(TabUrlDataStore.java:159)
....
So my assumption is that these lines were not included in the TabUrlDataStore
encodedUrl = encodedUrl.replace("[", "%5B");
encodedUrl = encodedUrl.replace("]", "%5D");
encodedUrl = encodedUrl.replace(" ", "+");
I'm providing a library with the slight modification.
Original comment by josecua...@gmail.com
on 12 May 2010 at 8:07
Attachments:
Original issue reported on code.google.com by
timrobertson100
on 23 Mar 2010 at 4:33