<HTML><HEAD><TITLE>[Gvsig_english] error loading big shapefile</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText42449>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello. Just to quantify what we mean by "quite big",&nbsp;you can run this to see a summary of your large&nbsp;shapefile (sorry for the ugly syntax). Simply replace the two occurrences of "myfile" and send the output to the list. That will give us an idea:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>ogrinfo -geom=SUMMARY myfile.shp myfile | awk '{ if (NR &lt;= 10) print; if ($1=="POLYGON") { pol++; vert=vert + $3; if ($3 &gt; maxv) maxv=$3; } if ($1=="LINESTRING") { pol++; vert=vert + $3; if ($3 &gt; maxv) maxv=$3; } } END { print "========="; print "POLYGONS OR LINESTRINGS: " pol; print&nbsp; "VERTICES: " vert; print "MAX VERTICES: " maxv;&nbsp; }'</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>(perhaps I forgot something and it'll need some small changes)</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature50583>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Wolfgang Qual<BR><B>Enviado el:</B> mar 02/03/2010 14:47<BR><B>Para:</B> gvsig_internacional@listserv.gva.es<BR><B>Asunto:</B> [Gvsig_english] error loading big shapefile<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Dear list,<BR>when loading a quite big shapefile into gvSIG, I get the following error message. It seems not to crash the application, but still, I am a little bit confused. I specified -Xmx2000M in gvSIG.sh. I would be happy, if someone could explain the error message of gvSIG<BR><BR>Best,<BR>Wolfgang<BR><BR><BR>Requested array size exceeds VM limit java.lang.OutOfMemoryError: Requested array size exceeds VM limit &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.core.GeneralPathX. (GeneralPathX.java:196) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.core.GeneralPathX. (GeneralPathX.java:175) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver.getShape(IndexedShpDriver.java:336) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.getShape(VectorialFileAdapter.java:144) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator$IGeometryBoundProvider.getBounds(SpatialQueryFeatureIterator.java:346) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator$FastSpatialCheck.intersects(SpatialQueryFeatureIterator.java:420) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator.hasNext(SpatialQueryFeatureIterator.java:176) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.layers.FLyrVect._draw(FLyrVect.java:436) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.layers.FLyrVect.draw(FLyrVect.java:631) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:209) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:175) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.MapContext.draw(MapContext.java:1092) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.MapControl$PaintingRequest.paint(MapControl.java:1043) &nbsp;&nbsp;&nbsp;&nbsp;com.iver.cit.gvsig.fmap.MapControl$Drawer2$Worker.run(MapControl.java:1234) &nbsp;&nbsp;&nbsp;&nbsp;java.lang.Thread.run(Unknown Source)<BR>--<BR>Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -<BR>jetzt kostenlos herunterladen! <A href="http://portal.gmx.net/de/go/chbrowser">http://portal.gmx.net/de/go/chbrowser</A><BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR></FONT></P></DIV></BODY></HTML>