SWIGMapscript: processLegendTemplate throws error
GeoIT
info at GEO-IT.COM
Mon Dec 13 05:14:55 PST 2004
Dear experts,
I used mapObj.processLegendTemplate successfully with mapserver 4.0. Now I
try to upgrade to version 440 and get the following error using this method:
Java.lang.UnknownError: Can't free NULL table
Any ideas ?
The code is:
public String getProcessedLegendTemplate(mapObj mapObject) {
String[] names = {"img", "legend", "scalebar", "ref"};
String[] values = {"", "", "", ""};
int numItems = 4;
return mapObject.processLegendTemplate(names,
values,numItems);
}
regards
Andreas Paukner-Ruzicka
**********************************************************
Geo-IT GmbH - Geoinformatik, IT-Services
Guggenberg 3, D-82380 Peissenberg
Tel: 08803-498372, Fax: 08803-498373
eMail: info at geo-it.com - Homepage: http://www.geo-it.com
**********************************************************
> -----Ursprüngliche Nachricht-----
> Von: Karel Cernohorsky [mailto:cernohor at CENTRUM.CZ]
> Gesendet: Montag, 13. Dezember 2004 13:31
> An: MAPSERVER-USERS at LISTS.UMN.EDU
> Betreff: [UMN_MAPSERVER-USERS] Image output pixel coordinates
>
>
> Hello folks,
>
> I need an advice,
>
> I am trying to develop small java application
> where I am displaying a map as a background.
>
> I wasn't able to succesfuly compile and rum Java mapscript on
> Windows platform. (I will post some questions to this problem later)
>
> Now I am using php to prepare the map using PHP/MapScript.
> And this page is returned as an png image.
>
> I have a set of GPS positions and I can display them as a
> points in the map using php (which is able to set another
> layer and write points symbols there.)
>
> $image=$map->draw();
> $layer=$map->getLayerByName('add_points');
>
> for ($n = 0; $n <sizeof($map_pointx); $n++) {
> $point[$n] = ms_newPointObj();
> $point[$n]->setXY($map_pointx[$n],$map_pointy[$n]);
> $point[$n]->draw($map,$layer,$image,0,'yuhuu');
> }
>
> Is there any way how can I get the pixel coordinates of each
> point object I have drawn in the "add_points" layer?
>
> My output projection is default
>
> PROJECTION
> "proj=latlong"
> "ellps=WGS84"
> "datum=WGS84"
> END
>
> I thought It could be easy to simply calculate them from
> height and width and from the min and max latitude and
> longitude of the returned map extent., am I right or wrong?
> Can anybody help me or give me any advice?
>
> Looking forward to read your hints,
> Karel Cernohorsky.
>
>
> Karel
>
>
> ---
> Odchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.802 / Virová báze: 545 - datum vydání: 26.11.2004
>
More information about the MapServer-users
mailing list