POST
|
James the crash started after i inserted that loop to create/delete a bunch o graphics, the memory usage go skyrocket and the application crashes. You are right about Linux tools, just tested it. Probably some Linux heap allocation behavior (i need to read more about that). Anyway ill keep testing, probably will keep version 100.10 for now.
... View more
04-29-2021
01:01 PM
|
0
|
1
|
1446
|
POST
|
I've tested in version 100.10 with that for (int i = 0; i < 1000; i++)
{ // just create/delete a bunch of graphics
std::make_unique<Graphic>();
} and it doesnt crash like in 100.11 but still can see an little increase in memory (perhaps some issue in the way im using qt) by the way qt version 5.15.2.
... View more
04-29-2021
06:38 AM
|
0
|
3
|
1453
|
POST
|
Hi James thanks for the reply. I'm currently using linux, tried some tools like top, htop, pmap and smem they all gave me the same result the memory goes only up not down. I'll attach the sample project, hope that this give you some more information. And please feel free to make observations and corrections to this sample.
... View more
04-28-2021
10:11 AM
|
0
|
5
|
1465
|
POST
|
Hi, so i create some graphics and append them in overlay. When i hit 10000 graphics i delete them all and clear overlay yet the memory is not realeased. Sample: Simple::Simple(QObject* parent /* = nullptr */):
QObject(parent),
m_map(new Map(Basemap::imageryWithLabelsVector(this), this))
{
overlay = new GraphicsOverlay(this);
const QString styleLocation = "whatever";
m_dictionarySymbolStyle = DictionarySymbolStyle::createFromFile(styleLocation, this);
overlay->setRenderer(new DictionaryRenderer(m_dictionarySymbolStyle, this));
}
void Simple::addGraphic()
{
Geometry geom;
SpatialReference sr(4326);
geom = Point(0, 0, sr);
QVariantMap symbol;
Graphic *graphic = new Graphic(geom, symbol);
overlay->graphics()->append(graphic);
if (overlay->graphics()->size() >= 10000)
{
qDeleteAll(*overlay->graphics());
overlay->graphics()->clear();
}
}
... View more
04-26-2021
06:37 AM
|
0
|
7
|
1511
|
POST
|
Regarding stylx config, ive open the file with SQLite and found all my answers but the access with code inside Qt remain still.
... View more
02-10-2020
04:32 AM
|
0
|
1
|
370
|
POST
|
So the thing is i get this dictionary https://www.arcgis.com/home/item.html?id=c78b149a1d52414682c86a5feeb13d30 and create the dictinary symbol as: QString styleLocation = local from stylx; m_dictionarySymbolStyle = DictionarySymbolStyle::createFromFile(styleLocation, this); and works fine it shows the symbols perfectly but when i call the function to see the fields names: QStringList whatever = DictionarySymbolStyle::symbologyFieldNames(); whatever is empty. its a normal behavior or i am doing something wrong? There is another way to discover those fields names? speaking of which how do i change the stylx configuration in cpp? like "condition" instead of 'PRIMARY' i want to change it
... View more
02-07-2020
09:04 AM
|
0
|
2
|
446
|
POST
|
I've notice that the last question about it was 3 years ago, and the answer was that maybe it would be created. I wasnt able to find a example, is there any? Thanks.
... View more
01-21-2020
03:20 AM
|
2
|
2
|
552
|
POST
|
I've found why this is happening, i dont know if its a bug or if i misused the effect. When i use "SimpleFillSymbolStyle::Solid" for some reason the Solid disturb the map, it only update with mouse actions. I've changed Solid for Cross, Vertical or any other option and it worked fine. Whats bugs me its that i dont know why.
... View more
01-16-2020
02:48 AM
|
0
|
1
|
612
|
POST
|
Hi James thanks for your reply. So the thing is i am trying to create a circle (polygon) around a symbol(this located in another overlay) that has few graphics that move around my map(this part works fine until i insert the polygon). This is how i insert the polygon in the map: SimpleFillSymbol* circleSym = new SimpleFillSymbol(SimpleFillSymbolStyle::Solid, QColor(46,228,255,100), nullptr, m_dictionarySymbol->m_graphicsOverlayCircles); m_dictionarySymbol->m_graphicsOverlayCircles->setRenderer(new SimpleRenderer(circleSym)); Polygon poly1 = GeometryEngine::bufferGeodetic(_point, radius, LinearUnit::meters(), 1, GeodeticCurveType::ShapePreserving); PolygonBuilder polygonBuilder(poly1); Graphic* graphic1 = new Graphic(polygonBuilder.toGeometry()); m_dictionarySymbol->m_graphicsOverlayCircles->graphics()->append(graphic1);
... View more
01-15-2020
04:53 AM
|
0
|
0
|
612
|
POST
|
After i add polygon, my map wont refresh anymore. Anyone know how to fix it?
... View more
01-14-2020
11:40 AM
|
0
|
4
|
706
|
Title | Kudos | Posted |
---|---|---|
2 | 01-21-2020 03:20 AM |
Online Status |
Offline
|
Date Last Visited |
04-30-2021
12:22 AM
|