<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,<br>
<br>
I have noticed that some tools of Qgis sets the size of the data
in the attribute table to its maximum (64) when processing the
data. This will increase the size of shapefile but just one file
is concerned the dbf file. A way to reduce the size of the
shapefile can be to reduce that size of the data in the dbf file.<br>
<br>
It can be easely done by opening the dbf file with libreoffice. It
gives access to the data size in the first line of each column and
you can adjust the data size.<br>
ie : If an attribute is : Nature,C,25 this correspond to the name
of the attribute, its type and its size in the table.<br>
After the data processing each attribute size can be set to 64 :
Nature,C,64 but it can be changed to the original value with the
software.<br>
<br>
Hope it will help you.<br>
</p>
<div class="moz-cite-prefix">Le 30/06/2021 à 06:26, Nicolas Cadieux
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:60A85932-88D5-483B-A9CF-36B865A547E1@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi,
<div><br>
<div>If you have made a shortest path analysis like a one to all
or an all to all, then multiple paths will be created. Select
and object then look at the attribute table. Sort them to the
top. There is a sorting icon for this. You will see that you
probably have multiple overlapping path selected. Send a
screen shot or the file and I can take a look at it tomorrow
morning. I am in Montreal time.<br>
<br>
<div dir="ltr">Nicolas Cadieux
<div><a href="https://gitlab.com/njacadieux"
moz-do-not-send="true">https://gitlab.com/njacadieux</a></div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">Le 29 juin 2021 à 20:26, krishna
Ayyala <a class="moz-txt-link-rfc2396E" href="mailto:ayyalakrishna@gmail.com"><ayyalakrishna@gmail.com></a> a écrit :<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Nicolas,
<div>Thanks for your reply. Changing the field format
and saving to a different file format did not work for
me. Just now, I noticed that, Whenever I select one
line feature for the "ShortestPath" shapefile, I see
the following message at the bottom left corner of the
window. For example: "2148 feature(s) selected on
layer shortest path. i.e. More than one features
appear at the bottom left corner for each line that I
select. I am trying to figure out how this will appear
as 1 feature instead of 2148 features.The tools such
as simplify and dissolve did not work for me.</div>
<div><br>
</div>
<div>Regards.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jun 29, 2021
at 4:43 PM Nicolas Cadieux <<a
href="mailto:njacadieux.gitlab@gmail.com"
moz-do-not-send="true">njacadieux.gitlab@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="auto">Hi,
<div><br>
<div>To my knowledge no. You could simplify the
geometries but that would probably come with a
resolution penalty (missing nodes). You could
perhaps change the field data type. For
example, an int data type will probably use less
space than a float with a 16 decimal value. A
text field can be reduced to the minimum size
needed. You can also try to save the file under
an other name. Depending on where the file was
created and used, saving the file could
“permanently delete” some previous deleted
components. Can you use another file format?<br>
<br>
<div dir="ltr">Nicolas Cadieux
<div><a href="https://gitlab.com/njacadieux"
target="_blank" moz-do-not-send="true">https://gitlab.com/njacadieux</a></div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">Le 29 juin 2021 à
15:53, krishna Ayyala <<a
href="mailto:ayyalakrishna@gmail.com"
target="_blank" moz-do-not-send="true">ayyalakrishna@gmail.com</a>>
a écrit :<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hello,<br>
<div>I have a "Streets" shape file of a
state with about 12000 lines. For the
same geographic area I have
"Blocks_Centroids" shape file of about
6000 points. I ran the tool as shown
below. It resulted in a shapefile
"ShortestPath" with 6000 lines. The size
of the "Streets" shape file with 12000
lines is 5000 KB. Whereas the size of
the output shape file
"ShortestPath" with only 6000 lines is
270,000 KB. Is there a way to reduce the
file size? The reason is I need to
upload this in a different platform
which cannot accept shapefiles
larger than 10,000 KB.</div>
<div><br>
</div>
<div>
<div><image.png></div>
<br>
</div>
</div>
<span>_______________________________________________</span><br>
<span>Qgis-user mailing list</span><br>
<span><a
href="mailto:Qgis-user@lists.osgeo.org"
target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a></span><br>
<span>List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
<span>Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
</body>
</html>