I think you might need double parentheses as polygons can contain multiple rings:

POLYGON((x y,x y,x y,x y))

Cheers

Paul

On 2009-10-11, at 9:07 AM, DeDuikertjes wrote:

As far as I can see from this snippet I guess it's the space between POLYGON and (. Besides that make sure that there are no linebreaks in the string.

MArco

joel ml schreef:
help
whats the error en el next code made in java?

:


shapeObj shape=ll;
shape=ape.fromWKT("POLYGON (309038.2109318934 7642746.71351495, 282648.41216525325 7611988.745112174, 348475.28671546053 7606977.030844433, 309038.2109318934 7642746.71351495)");

launch error:

----------------------------------------------------
Exception in thread "AWT-EventQueue-0" java.lang.UnknownError: msGEOSShapeFromWKT(): GEOS library error. Error reading WKT geometry "POLYGON (309038.2109318934 7642746.71351495, 282648.41216525325 7611988.745112174, 348475.28671546053 7606977.030844433, 309038.2109318934 7642746.71351495)".;msGEOSError (): GEOS library error. Unknown exception thrown at edu.umn.gis.mapscript.mapscriptJNI.shapeObj_fromWKT (Native Method)
       at edu.umn.gis.mapscript.shapeObj.fromWKT(shapeObj.java:108)

----------------------------------------------------

I'm using the package ms4w 2.3.1


- MapServer 5.2.1 CGI and MapScript (CSharp, Java, PHP,   Python)

curl-7.15.1
   expat-2.0.1
   fcgi-2.4.0
   fits-3.0.2
   freetype-2.1.10
   fribidi-0.19.1        gd-2.0.35
   gdal-1.6.0 RC2
   geos-2.2.3
   gettext-0.13
   hdf5
   jbigkit-1.6
   jpeg-6b
   libecwj2-3.3
   libgeotiff-1.2.3
   libiconv-1.9.1
   libintl-0.11.5
   libpng-1.2.8
   libxml2-2.6.23.win32
   mapserver-5.2.1
   ming-0.2a
   mrsid-6.0.7.1407
   mysql-5.0.18-win32
   netcdf-3.6.1        PDFlib-Lite-6.0.2
   php-5.2.6
   postgresql-8.3.3
   proj-4.6.1
   Python-2.5.1
   regex-0.12
   sqlite3        SWIG-1.3.33
   tiff-cvs (02/04/08)
   xerces-c-2.7.0
   zlib-1.2.3


     Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


__________________________________________

   Paul Spencer
   Chief Technology Officer
   DM Solutions Group Inc
   http://research.dmsolutions.ca/

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to