Mapscript-Java and Swig-Versions

Benedikt Rothe umn-ms at HYDROTEC.DE
Thu Mar 29 11:52:07 EDT 2007


Found it on my own ...

http://mapserver.gis.umn.edu/download/current/migration_guide_48_410

Chapter Java Mapscript and ENUMERATED VALUES

"FIX
You can instruct swig to revert to the old behaviour by uncommenting line 
6 in mapscript/java/javamodule.i"

Benedikt

UMN MapServer Users List <MAPSERVER-USERS at LISTS.UMN.EDU> schrieb am 
29.03.2007 16:56:43:

> 
> Hello list-members 
> 
> I have a problem with java-mapscript, swig-versions and enums. 
> Download mapserver4.10.0: File 
> mapscript\java\edu\umn\gis\mapscript\layerObj.java 
> has a method 
>   public int getType() { ...} 
> 
> Download mapserver4.10.1: File 
> mapscript\java\edu\umn\gis\mapscript\layerObj.java 
> has a method 
>   public MS_LAYER_TYPE getType() { ...} 
> 
> My own code depends on the enums-as-int-Style (like mapserver4.10.0) 
> 
> I do remember, that some time ago was a discussion on this issue 
> ("Swig version used for nightly builds and releases..."). 
> But I didn't find a "working instruction" for users like me. 
> 
> Question: 
> Is it possible to produce the "mapserver4.10.0"-style with swig-1.3.29? 
> 
> Is there any command-line-option "swig -j -enums_as_int" or 
> somethink like this? 
> 
> Thank you 
> Benedikt Rothe 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070329/548f5a73/attachment.html


More information about the mapserver-users mailing list