<div>Please what's the procedure or commands for extrating road network from a raster map? i think i have been going round the circle with classofocation and rectification of image. i have used this commands but i don't get any results:</div>
<div>i.group</div>
<div>i.composite</div>
<div>i.class</div>
<div>i.cluster</div>
<div>r.digit</div>
<div>i.maxlik</div>
<div>i.gensigset</div>
<div>nothing seems to get me the road network result i want.</div>
<div>Please i need help and i am running GRASS on Linux Ubuntu.</div>
<div>thanks.<br><br></div>
<div class="gmail_quote">On Mon, Mar 22, 2010 at 11:09 AM, <span dir="ltr"><<a href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Send grass-user mailing list submissions to<br> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:grass-user-owner@lists.osgeo.org">grass-user-owner@lists.osgeo.org</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of grass-user digest..."<br><br><br>Today's Topics:<br><br> 1. ERROR: G_malloc: unable to allocate 2147483648 bytes at<br>
main.c:153 (<a href="mailto:ikechinedu@gmail.com">ikechinedu@gmail.com</a>)<br> 2. Re: importing dem files: projection details? (Markus Neteler)<br> 3. Re: ERROR: G_malloc: unable to allocate 2147483648 bytes at<br>
main.c:153 (Hamish)<br> 4. Re: make command (install add on) (schorschli)<br> 5. Helpp needed to call Grass from inside Python Plugin<br> (Bishwarup Banerjee)<br> 6. grass editing (Gary Nobles)<br> 7. Re: ERROR: G_malloc: unable to allocate 2147483648 bytes at<br>
main.c:153 (Glynn Clements)<br> 8. Osgeo4W grass error (Pablo Carreira)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 21 Mar 2010 13:02:00 -0700<br>
From: <a href="mailto:ikechinedu@gmail.com">ikechinedu@gmail.com</a><br>Subject: [GRASS-user] ERROR: G_malloc: unable to allocate 2147483648<br> bytes at main.c:153<br>To: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
Message-ID:<br> <<a href="mailto:4529578.106556.1269201720004.JavaMail.root@jim.nabble.com">4529578.106556.1269201720004.JavaMail.root@jim.nabble.com</a>><br>Content-Type: text/plain; charset=us-ascii<br><br>Hi, i am trying extract road network from a raster map but each time i run the image filter, i get this error message: ERROR: G_malloc: unable to allocate 2147483648 bytes at main.c:153.<br>
<br>i also connnot use the i.class command on my windows machine which is the platform i am working with. please how can i extract a road network from raster map on windows platform?<br>thank you.<br>Nathaniel<br><br><br>
------------------------------<br><br>Message: 2<br>Date: Mon, 22 Mar 2010 00:23:48 +0100<br>From: Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>><br>Subject: Re: [GRASS-user] importing dem files: projection details?<br>
To: Tyler Smith <<a href="mailto:tyler.smith@eku.edu">tyler.smith@eku.edu</a>><br>Cc: GRASS user list <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br>Message-ID:<br> <<a href="mailto:86782b611003211623x6f777673t62a66fff6526f2d@mail.gmail.com">86782b611003211623x6f777673t62a66fff6526f2d@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On Mon, Mar 15, 2010 at 7:38 PM, Tyler Smith <<a href="mailto:tyler.smith@eku.edu">tyler.smith@eku.edu</a>> wrote:<br>> On 03/15/2010 09:38 AM, Markus Neteler wrote:<br>
>> On Mon, Mar 15, 2010 at 1:35 PM, Tyler Smith<<a href="mailto:tyler.smith@eku.edu">tyler.smith@eku.edu</a>> wrote:<br>>>> On 03/15/2010 03:42 AM, Markus Neteler wrote:<br>>>><br>>>> Trying the auto route:<br>
>>><br>>>> grass64 -gui<br>>>> select define new location with georeferenced file<br>>>> select the dem file: k42.dem<br>>>> select the TN transformation, as probably better than the default for<br>
>>> adjacent Kentucky<br>>>> enter GRASS with the newly created location and the PERMANENT mapset<br>>>><br>>>> Results in this error:<br>>>><br>>>> "g.proj or projection error: ERROR: default region is invalid<br>
>>> line 3:<north: 1080:43:46N>"<br>>>><br>>>> So GRASS has automatically set up the location using degrees, and then<br>>>> get<br>>>> confused when the raster co-ordinates are provided in meters. Which<br>
>>> appears<br>>>> to be fairly close to the sort of problem I ran into when setting this up<br>>>> manually. What am I missing?<br>>>><br>>><br>>> Please post the output of gdalinfo on that file. GRASS uses GDAL to detect<br>
>> projections from metadata.<br>>><br>>> Markus<br>>><br>><br>> Thanks for help! Here it is:<br>><br>> gdalinfo k42.dem<br>> Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)<br>> Files: k42.dem<br>
> Size is 1222, 1535<br>> Coordinate System is:<br>> GEOGCS["NAD83",<br>> DATUM["North_American_Datum_1983",<br>> SPHEROID["GRS 1980",6378137,298.257222101,<br>...<br>
> Metadata:<br>> AREA_OR_POINT=Point<br>> Corner Coordinates:<br>><br>> Upper Left ( 1467.054, 1080.729)<br>> Lower Left ( 1467.054, 1067.938)<br>> Upper Right ( 1477.237, 1080.729)<br>
> Lower Right ( 1477.237, 1067.938)<br>> Center ( 1472.146, 1074.334)<br>...<br><br>I get actually a somewhat different result (GDAL trunk):<br><br>gdalinfo m40.dem<br>Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)<br>
Files: m40.dem<br>...<br>Corner Coordinates:<br>Upper Left ( 1447.317, 1055.177) (Invalid angle,Invalid angle)<br>Lower Left ( 1447.317, 1042.411) (Invalid angle,Invalid angle)<br>Upper Right ( 1457.509, 1055.177) (Invalid angle,Invalid angle)<br>
Lower Right ( 1457.509, 1042.411) (Invalid angle,Invalid angle)<br>Center ( 1452.413, 1048.794) (Invalid angle,Invalid angle)<br>Band 1 Block=1223x1532 Type=Float32, ColorInterp=Undefined<br> NoData Value=-32767<br>
Unit Type: ft<br><br>You may want to signal this as GDAL bug in the GDAL butracker:<br><a href="http://trac.osgeo.org/gdal/" target="_blank">http://trac.osgeo.org/gdal/</a><br><br>Unless GDAL doesn't read it correctly, it won't be understood by GRASS.<br>
I tested with<br><a href="ftp://ftp.kymartian.ky.gov/dems_usgs/m39.dem.zip" target="_blank">ftp://ftp.kymartian.ky.gov/dems_usgs/m39.dem.zip</a><br><br>Markus<br><br><br>------------------------------<br><br>Message: 3<br>
Date: Sun, 21 Mar 2010 22:41:12 -0700 (PDT)<br>From: Hamish <<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>><br>Subject: Re: [GRASS-user] ERROR: G_malloc: unable to allocate<br> 2147483648 bytes at main.c:153<br>
To: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>, <a href="mailto:ikechinedu@gmail.com">ikechinedu@gmail.com</a><br>Message-ID: <<a href="mailto:373432.58091.qm@web110015.mail.gq1.yahoo.com">373432.58091.qm@web110015.mail.gq1.yahoo.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br><br>Nathaniel wrote:<br>> Hi, i am trying extract road network<br>> from a raster map but each time i run the image filter, i<br>> get this error message: ERROR: G_malloc: unable to allocate<br>
> 2147483648 bytes at main.c:153.<br><br>aka it is trying to use >2gig RAM and there is not enough memory.<br>Possibly because you are not using a 64bit OS, and possibly because<br>you don't actually have that much memory in your computer.<br>
Maybe try on a smaller dataset?<br><br>> i also connnot use the i.class command on my windows<br>> machine which is the platform i am working with.<br><br>you will have to wait for someone to build GRASS 6.4.0RC6 for Cygwin.<br>
i.class uses UNIX-style Xmonitors which are not available on standard<br>MS Windows. (or try GRASS on a Mac or Linux computer/virtual machine)<br><br><br>Hamish<br><br><br><br><br><br><br>------------------------------<br>
<br>Message: 4<br>Date: Mon, 22 Mar 2010 01:44:01 -0800 (PST)<br>From: schorschli <<a href="mailto:matthiasoswald@hotmail.com">matthiasoswald@hotmail.com</a>><br>Subject: [GRASS-user] Re: make command (install add on)<br>
To: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>Message-ID: <<a href="mailto:1269251041185-4776893.post@n2.nabble.com">1269251041185-4776893.post@n2.nabble.com</a>><br>Content-Type: text/plain; charset=us-ascii<br>
<br><br>Thanks for answering.<br><br><br>>Are you sure about this directory?<br><br>>MODULE_TOPDIR should point to the GRASS installation directory which<br>>contains bin/, lib/ and other GRASS stuff.<br><br><br>
Yes, the directory is the one containing the grass-folders (bin/, lib/ and<br>others).<br><br>I could solve this problem. It was not a wrong MODULE_TOPDIR path, but wrong<br>extensions for the makefiles.<br><br><br><br>Now I can run the make command. But this is resulting in hunderts of errors<br>
and warning. Here is a printscreen of the first couple of lignes in the<br>console...<br><br><a href="http://n2.nabble.com/file/n4776893/errors.png" target="_blank">http://n2.nabble.com/file/n4776893/errors.png</a><br><a href="http://n2.nabble.com/file/n4776893/errors.png" target="_blank">http://n2.nabble.com/file/n4776893/errors.png</a> errors.png<br>
<br><br>So maybe its better to just give it up with the addons...<br><br><br><br>--<br>View this message in context: <a href="http://n2.nabble.com/make-command-install-add-on-tp4764072p4776893.html" target="_blank">http://n2.nabble.com/make-command-install-add-on-tp4764072p4776893.html</a><br>
Sent from the Grass - Users mailing list archive at Nabble.com.<br><br><br>------------------------------<br><br>Message: 5<br>Date: Mon, 22 Mar 2010 17:58:42 +0530<br>From: Bishwarup Banerjee <<a href="mailto:bishwarup.banerjee@gmail.com">bishwarup.banerjee@gmail.com</a>><br>
Subject: [GRASS-user] Helpp needed to call Grass from inside Python<br> Plugin<br>To: GRASS developers list <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>>,<br> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
Message-ID:<br> <<a href="mailto:78e951a61003220528o10e648a6m2fbd3c878a2897a2@mail.gmail.com">78e951a61003220528o10e648a6m2fbd3c878a2897a2@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br>
<br>Hi All,<br><br>I want to call the grass functionalities from inside my python plugins, in<br>QGIS<br>For example: the Grass's raster to polygon script, with out going inside the<br>grass plugin.<br>Can I set the Grass Mapset, and location from inside my python plugin?<br>
Is this possible?<br>my configurations are:<br>QGIS 0.11, GRASS 6.3, python 2.5, Windows<br><br>Thank you in advance<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100322/01e80e47/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20100322/01e80e47/attachment-0001.html</a><br>
<br>------------------------------<br><br>Message: 6<br>Date: Mon, 22 Mar 2010 03:10:42 -0800 (PST)<br>From: Gary Nobles <<a href="mailto:garynobles@yahoo.com">garynobles@yahoo.com</a>><br>Subject: [GRASS-user] grass editing<br>
To: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>Message-ID: <<a href="mailto:1269256242668-4777030.post@n2.nabble.com">1269256242668-4777030.post@n2.nabble.com</a>><br>Content-Type: text/plain; charset=us-ascii<br>
<br><br>Hi, I have been editing a grass point dataset in qgis unfortunately I have<br>just added 400 centroids rather than points! Is there anyway to delete just<br>the centroids?<br><br>Thanks<br><br>Gary<br>--<br>View this message in context: <a href="http://n2.nabble.com/grass-editing-tp4777030p4777030.html" target="_blank">http://n2.nabble.com/grass-editing-tp4777030p4777030.html</a><br>
Sent from the Grass - Users mailing list archive at Nabble.com.<br><br><br>------------------------------<br><br>Message: 7<br>Date: Mon, 22 Mar 2010 13:54:49 +0000<br>From: Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
Subject: Re: [GRASS-user] ERROR: G_malloc: unable to allocate<br> 2147483648 bytes at main.c:153<br>To: Hamish <<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>><br>Cc: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>, <a href="mailto:ikechinedu@gmail.com">ikechinedu@gmail.com</a><br>
Message-ID: <<a href="mailto:19367.30377.130266.683319@cerise.gclements.plus.com">19367.30377.130266.683319@cerise.gclements.plus.com</a>><br>Content-Type: text/plain; charset=us-ascii<br><br><br>Hamish wrote:<br><br>
> > Hi, i am trying extract road network<br>> > from a raster map but each time i run the image filter, i<br>> > get this error message: ERROR: G_malloc: unable to allocate<br>> > 2147483648 bytes at main.c:153.<br>
><br>> aka it is trying to use >2gig RAM and there is not enough memory.<br>> Possibly because you are not using a 64bit OS, and possibly because<br>> you don't actually have that much memory in your computer.<br>
> Maybe try on a smaller dataset?<br><br>2147483648 is exactly 2GiB; I'm wondering if that's the actual size<br>(e.g. 16384 x 16384 x 8bytes/cell) or an uninitialised variable (e.g.<br>initialised to INT_MIN in the code and not updated).<br>
<br>On Linux, it is possible to allocate 2GiB on a 32-bit system, provided<br>that there's a contiguous block (in practice, this means that the<br>stack size isn't "unlimited"). You don't need that much physical RAM,<br>
only swap (although performance may be unacceptable if you're relying<br>upon swap; it depends upon the access pattern).<br><br>"Desktop" versions of Windows normally only allow 2GiB on 32-bit<br>systems. Server versions allow up to 3GiB, and the desktop versions<br>
can be tweaked to allow it (but it isn't straightforward).<br><br>> > i also connnot use the i.class command on my windows<br>> > machine which is the platform i am working with.<br>><br>> you will have to wait for someone to build GRASS 6.4.0RC6 for Cygwin.<br>
> i.class uses UNIX-style Xmonitors which are not available on standard<br>> MS Windows. (or try GRASS on a Mac or Linux computer/virtual machine)<br><br>I'll probably be building RC6 for Cygwin some time today.<br>
<br>--<br>Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br><br><br>------------------------------<br><br>Message: 8<br>Date: Mon, 22 Mar 2010 12:03:01 -0300<br>From: Pablo Carreira <<a href="mailto:pablotcarreira@hotmail.com">pablotcarreira@hotmail.com</a>><br>
Subject: [GRASS-user] Osgeo4W grass error<br>To: <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br>Message-ID: <SNT114-W54FC77CFFE5D19331A6E4BD6270@phx.gbl><br>Content-Type: text/plain; charset="utf-8"<br>
<br><br>Hi, I'am trying to start the latest osgeo4w grass on windows 7 but I get an error when I select the dataset. Is it about the language? How can I start grass in english and not in portuguese?<br><br>Regards,<br>
Pablo.<br><br><br>Here is the error:<br><br><br>C:\>"C:\OSGeo4W\apps\grass\grass-6.4.0svn"\etc\init.bat -wxpython access: Invalid argument<br>ERRO:LOCAÃ├O << C:\teste/<UNKNOWN> >> indisponà vel<br>
Traceback (most recent call last):<br> File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 853,<br> in <module><br> GRASSStartUp = StartUp(0)<br> File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.p<br>
y", line 7935, in __init__<br> self._BootstrapApp()<br> File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.p<br>y", line 7509, in _BootstrapApp<br> return _core_.PyApp__BootstrapApp(*args, **kwargs)<br>
File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 824,<br> in OnInit<br> StartUp = GRASSStartup()<br> File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 165,<br>
in __init__<br> self._set_properties()<br> File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 206,<br> in _set_properties<br> self.OnSetDatabase(None)<br> File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 664,<br>
in OnSetDatabase<br> self.OnSelectLocation(None)<br> File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 616,<br> in OnSelectLocation<br> self.listOfLocations[self.lblocations.GetSelection()]))<br>
File "C:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/wxpython/gis_set.py", line 584,<br> in UpdateMapsets<br> stderr=None)<br> File "C:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gui_modules\gcmd.py",<br>
line 356, in __init__<br> _("Error: ") + self.GetError()))<br> File "C:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gui_modules\gcmd.py",<br>line 449, in GetError<br> return unicode(msg, "utf-8")<br>
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-5: invalid dat<br>a<br><br><br><br><br><br><br><br><br><br><br>_________________________________________________________________<br>Navegue sem medo com o Internet Explorer 8. Clique aqui para instalar gratuitamente.<br>
<a href="http://go.microsoft.com/?linkid=9707132" target="_blank">http://go.microsoft.com/?linkid=9707132</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100322/1946f322/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20100322/1946f322/attachment.html</a><br>
<br>------------------------------<br><br>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br><br>End of grass-user Digest, Vol 47, Issue 52<br>******************************************<br></blockquote></div><br>