Got Pacman instead of circle when buffering point QGIS 2.14 standalone C++ application The Next CEO of Stack OverflowCan I “undo” buffering of a point layer in QGIS?Standalone QGIS application - handling QgsVectorLayer load errorsHow to develop C++ standalone QGIS C++ ApplicationQGIS Standalone C++ Application with Qt: “The program has unexpectedly finished”OpenStreetMap heavily pixellated when loaded in QGIS and standalone applicationStandalone QGIS application in C++How to use QGIS plugins functionality in standalone applicationProblems with layer labeling QGIS standalone C++ applicationzoomScale() doesn't work in QGIS 2.14 standalone c++ applicationQGIS 2.14 c++ standalone application crashes using QgsMapToolIdentify

"and that skill is always a class skill for you" - does "always" have any meaning in Pathfinder?

Why didn't Khan get resurrected in the Genesis Explosion?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

If a black hole is created from light, can this black hole then move at speed of light?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Why did we only see the N-1 starfighters in one film?

What's the best way to handle refactoring a big file?

What happens if you roll doubles 3 times then land on "Go to jail?"

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Different harmonic changes implied by a simple descending scale

How to count occurrences of text in a file?

What does "Its cash flow is deeply negative" mean?

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

SOQL: Aggregate, Grouping By and WHERE Clauses not working

FBX seems to be empty when imported into Blender

A "random" question: usage of "random" as adjective in Spanish

How do scammers retract money, while you can’t?

multiple labels for a single equation

Is HostGator storing my password in plaintext?

Extending anchors in TikZ

Non-deterministic sum of floats

How should I support this large drywall patch?



Got Pacman instead of circle when buffering point QGIS 2.14 standalone C++ application



The Next CEO of Stack OverflowCan I “undo” buffering of a point layer in QGIS?Standalone QGIS application - handling QgsVectorLayer load errorsHow to develop C++ standalone QGIS C++ ApplicationQGIS Standalone C++ Application with Qt: “The program has unexpectedly finished”OpenStreetMap heavily pixellated when loaded in QGIS and standalone applicationStandalone QGIS application in C++How to use QGIS plugins functionality in standalone applicationProblems with layer labeling QGIS standalone C++ applicationzoomScale() doesn't work in QGIS 2.14 standalone c++ applicationQGIS 2.14 c++ standalone application crashes using QgsMapToolIdentify










2















QgsVectorLayer *circleLayer = new QgsVectorLayer("Polygon", "Circle", "memory");

QgsFeature circleFeature = QgsFeature();

circleFeature.setGeometry(QgsGeometry::fromPoint(geometryPoint)->buffer(10000,20));

QgsVectorDataProvider *circleDataProvider = circleLayer->dataProvider();
QgsFeatureList circleFeatureList = QgsFeatureList();
circleFeatureList.append(circleFeature);

if(!circleDataProvider->addFeatures(circleFeatureList))
qDebug()<<"Error adding feature!";
return;


circleLayer->updateExtents();

QgsSingleSymbolRendererV2 *circleLayerRenderer = new QgsSingleSymbolRendererV2(QgsSymbolV2::defaultSymbol(circleLayer->geometryType()));
circleLayer->setRendererV2(circleLayerRenderer);

QgsMapLayerRegistry::instance()->addMapLayer(circleLayer, TRUE);
mainLayerSet.push_front(circleLayer);
mpMapCanvas->setLayerSet(mainLayerSet);
mpMapCanvas->refresh();
mpMapCanvas->zoomToFullExtent();


makes Pacman (cuts off last segment of circle) instead of circle in my standalone application. Is this a way to fix this?










share|improve this question
























  • Have you tried to add the vector layer without set a layer renderer ?

    – J. Monticolo
    yesterday











  • yes, same result.

    – Wolf Schulz
    yesterday











  • What are your CRS, units ?

    – J. Monticolo
    yesterday











  • EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

    – Wolf Schulz
    yesterday















2















QgsVectorLayer *circleLayer = new QgsVectorLayer("Polygon", "Circle", "memory");

QgsFeature circleFeature = QgsFeature();

circleFeature.setGeometry(QgsGeometry::fromPoint(geometryPoint)->buffer(10000,20));

QgsVectorDataProvider *circleDataProvider = circleLayer->dataProvider();
QgsFeatureList circleFeatureList = QgsFeatureList();
circleFeatureList.append(circleFeature);

if(!circleDataProvider->addFeatures(circleFeatureList))
qDebug()<<"Error adding feature!";
return;


circleLayer->updateExtents();

QgsSingleSymbolRendererV2 *circleLayerRenderer = new QgsSingleSymbolRendererV2(QgsSymbolV2::defaultSymbol(circleLayer->geometryType()));
circleLayer->setRendererV2(circleLayerRenderer);

QgsMapLayerRegistry::instance()->addMapLayer(circleLayer, TRUE);
mainLayerSet.push_front(circleLayer);
mpMapCanvas->setLayerSet(mainLayerSet);
mpMapCanvas->refresh();
mpMapCanvas->zoomToFullExtent();


makes Pacman (cuts off last segment of circle) instead of circle in my standalone application. Is this a way to fix this?










share|improve this question
























  • Have you tried to add the vector layer without set a layer renderer ?

    – J. Monticolo
    yesterday











  • yes, same result.

    – Wolf Schulz
    yesterday











  • What are your CRS, units ?

    – J. Monticolo
    yesterday











  • EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

    – Wolf Schulz
    yesterday













2












2








2








QgsVectorLayer *circleLayer = new QgsVectorLayer("Polygon", "Circle", "memory");

QgsFeature circleFeature = QgsFeature();

circleFeature.setGeometry(QgsGeometry::fromPoint(geometryPoint)->buffer(10000,20));

QgsVectorDataProvider *circleDataProvider = circleLayer->dataProvider();
QgsFeatureList circleFeatureList = QgsFeatureList();
circleFeatureList.append(circleFeature);

if(!circleDataProvider->addFeatures(circleFeatureList))
qDebug()<<"Error adding feature!";
return;


circleLayer->updateExtents();

QgsSingleSymbolRendererV2 *circleLayerRenderer = new QgsSingleSymbolRendererV2(QgsSymbolV2::defaultSymbol(circleLayer->geometryType()));
circleLayer->setRendererV2(circleLayerRenderer);

QgsMapLayerRegistry::instance()->addMapLayer(circleLayer, TRUE);
mainLayerSet.push_front(circleLayer);
mpMapCanvas->setLayerSet(mainLayerSet);
mpMapCanvas->refresh();
mpMapCanvas->zoomToFullExtent();


makes Pacman (cuts off last segment of circle) instead of circle in my standalone application. Is this a way to fix this?










share|improve this question
















QgsVectorLayer *circleLayer = new QgsVectorLayer("Polygon", "Circle", "memory");

QgsFeature circleFeature = QgsFeature();

circleFeature.setGeometry(QgsGeometry::fromPoint(geometryPoint)->buffer(10000,20));

QgsVectorDataProvider *circleDataProvider = circleLayer->dataProvider();
QgsFeatureList circleFeatureList = QgsFeatureList();
circleFeatureList.append(circleFeature);

if(!circleDataProvider->addFeatures(circleFeatureList))
qDebug()<<"Error adding feature!";
return;


circleLayer->updateExtents();

QgsSingleSymbolRendererV2 *circleLayerRenderer = new QgsSingleSymbolRendererV2(QgsSymbolV2::defaultSymbol(circleLayer->geometryType()));
circleLayer->setRendererV2(circleLayerRenderer);

QgsMapLayerRegistry::instance()->addMapLayer(circleLayer, TRUE);
mainLayerSet.push_front(circleLayer);
mpMapCanvas->setLayerSet(mainLayerSet);
mpMapCanvas->refresh();
mpMapCanvas->zoomToFullExtent();


makes Pacman (cuts off last segment of circle) instead of circle in my standalone application. Is this a way to fix this?







qgis buffer c++ qt circle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Vince

14.8k32849




14.8k32849










asked yesterday









Wolf SchulzWolf Schulz

635




635












  • Have you tried to add the vector layer without set a layer renderer ?

    – J. Monticolo
    yesterday











  • yes, same result.

    – Wolf Schulz
    yesterday











  • What are your CRS, units ?

    – J. Monticolo
    yesterday











  • EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

    – Wolf Schulz
    yesterday

















  • Have you tried to add the vector layer without set a layer renderer ?

    – J. Monticolo
    yesterday











  • yes, same result.

    – Wolf Schulz
    yesterday











  • What are your CRS, units ?

    – J. Monticolo
    yesterday











  • EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

    – Wolf Schulz
    yesterday
















Have you tried to add the vector layer without set a layer renderer ?

– J. Monticolo
yesterday





Have you tried to add the vector layer without set a layer renderer ?

– J. Monticolo
yesterday













yes, same result.

– Wolf Schulz
yesterday





yes, same result.

– Wolf Schulz
yesterday













What are your CRS, units ?

– J. Monticolo
yesterday





What are your CRS, units ?

– J. Monticolo
yesterday













EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

– Wolf Schulz
yesterday





EPSG:3857, meters. Tested on EPSG:4326 with degrees, no difference.

– Wolf Schulz
yesterday










2 Answers
2






active

oldest

votes


















1














I am working on QGIS 3.6, I've translated your code in Python 3 (few changes from PyQgis 2.x, for example fromPoint, QgsPoint and QgsMapLayerRegistry.instance()) and it's working perfectly :



circleLayer = QgsVectorLayer("Polygon?crs=epsg:3857", "Circle", "memory")

circleFeature = QgsFeature()
circleFeature.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20))

circleDataProvider = circleLayer.dataProvider()
if not circleDataProvider.addFeature(circleFeature):
raise Exception("Error adding feature!")
else:
QgsProject.instance().addMapLayer(circleLayer, True)


Can you try this in your QGIS installation with the few code modification ?






share|improve this answer























  • I've tried to do this before and it really works fine in QGIS Desktop application.

    – Wolf Schulz
    yesterday











  • I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

    – J. Monticolo
    yesterday


















0














Found what is the reason of this issue. moveVertex() function makes this cut and didn't work. How can I make circle move to other coordinates?






share|improve this answer























  • Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

    – J. Monticolo
    11 hours ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317016%2fgot-pacman-instead-of-circle-when-buffering-point-qgis-2-14-standalone-c-appli%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














I am working on QGIS 3.6, I've translated your code in Python 3 (few changes from PyQgis 2.x, for example fromPoint, QgsPoint and QgsMapLayerRegistry.instance()) and it's working perfectly :



circleLayer = QgsVectorLayer("Polygon?crs=epsg:3857", "Circle", "memory")

circleFeature = QgsFeature()
circleFeature.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20))

circleDataProvider = circleLayer.dataProvider()
if not circleDataProvider.addFeature(circleFeature):
raise Exception("Error adding feature!")
else:
QgsProject.instance().addMapLayer(circleLayer, True)


Can you try this in your QGIS installation with the few code modification ?






share|improve this answer























  • I've tried to do this before and it really works fine in QGIS Desktop application.

    – Wolf Schulz
    yesterday











  • I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

    – J. Monticolo
    yesterday















1














I am working on QGIS 3.6, I've translated your code in Python 3 (few changes from PyQgis 2.x, for example fromPoint, QgsPoint and QgsMapLayerRegistry.instance()) and it's working perfectly :



circleLayer = QgsVectorLayer("Polygon?crs=epsg:3857", "Circle", "memory")

circleFeature = QgsFeature()
circleFeature.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20))

circleDataProvider = circleLayer.dataProvider()
if not circleDataProvider.addFeature(circleFeature):
raise Exception("Error adding feature!")
else:
QgsProject.instance().addMapLayer(circleLayer, True)


Can you try this in your QGIS installation with the few code modification ?






share|improve this answer























  • I've tried to do this before and it really works fine in QGIS Desktop application.

    – Wolf Schulz
    yesterday











  • I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

    – J. Monticolo
    yesterday













1












1








1







I am working on QGIS 3.6, I've translated your code in Python 3 (few changes from PyQgis 2.x, for example fromPoint, QgsPoint and QgsMapLayerRegistry.instance()) and it's working perfectly :



circleLayer = QgsVectorLayer("Polygon?crs=epsg:3857", "Circle", "memory")

circleFeature = QgsFeature()
circleFeature.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20))

circleDataProvider = circleLayer.dataProvider()
if not circleDataProvider.addFeature(circleFeature):
raise Exception("Error adding feature!")
else:
QgsProject.instance().addMapLayer(circleLayer, True)


Can you try this in your QGIS installation with the few code modification ?






share|improve this answer













I am working on QGIS 3.6, I've translated your code in Python 3 (few changes from PyQgis 2.x, for example fromPoint, QgsPoint and QgsMapLayerRegistry.instance()) and it's working perfectly :



circleLayer = QgsVectorLayer("Polygon?crs=epsg:3857", "Circle", "memory")

circleFeature = QgsFeature()
circleFeature.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20))

circleDataProvider = circleLayer.dataProvider()
if not circleDataProvider.addFeature(circleFeature):
raise Exception("Error adding feature!")
else:
QgsProject.instance().addMapLayer(circleLayer, True)


Can you try this in your QGIS installation with the few code modification ?







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









J. MonticoloJ. Monticolo

1,191217




1,191217












  • I've tried to do this before and it really works fine in QGIS Desktop application.

    – Wolf Schulz
    yesterday











  • I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

    – J. Monticolo
    yesterday

















  • I've tried to do this before and it really works fine in QGIS Desktop application.

    – Wolf Schulz
    yesterday











  • I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

    – J. Monticolo
    yesterday
















I've tried to do this before and it really works fine in QGIS Desktop application.

– Wolf Schulz
yesterday





I've tried to do this before and it really works fine in QGIS Desktop application.

– Wolf Schulz
yesterday













I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

– J. Monticolo
yesterday





I have few ideas left : that the first and last pair of coordinates of QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt() are the same, circleLayer.getFeature(1).geometry().asWkt() equals QgsGeometry.fromPointXY(QgsPointXY(1000, 1000)).buffer(10000, 20).asWkt(), and finally, is there working on an updated version of QGIS, like 2.18 if you want to stay in 2.x versions ?

– J. Monticolo
yesterday













0














Found what is the reason of this issue. moveVertex() function makes this cut and didn't work. How can I make circle move to other coordinates?






share|improve this answer























  • Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

    – J. Monticolo
    11 hours ago















0














Found what is the reason of this issue. moveVertex() function makes this cut and didn't work. How can I make circle move to other coordinates?






share|improve this answer























  • Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

    – J. Monticolo
    11 hours ago













0












0








0







Found what is the reason of this issue. moveVertex() function makes this cut and didn't work. How can I make circle move to other coordinates?






share|improve this answer













Found what is the reason of this issue. moveVertex() function makes this cut and didn't work. How can I make circle move to other coordinates?







share|improve this answer












share|improve this answer



share|improve this answer










answered 13 hours ago









Wolf SchulzWolf Schulz

635




635












  • Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

    – J. Monticolo
    11 hours ago

















  • Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

    – J. Monticolo
    11 hours ago
















Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

– J. Monticolo
11 hours ago





Thank you for the follow up but add the complete code in your original post, mostly the buggy part with moveVertex() function. You make a buffer from the geometryPoint object, if you want to move the buffer, a solution is to modify the coordinates of geometryPoint.

– J. Monticolo
11 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317016%2fgot-pacman-instead-of-circle-when-buffering-point-qgis-2-14-standalone-c-appli%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Magento 1.9 observer on only new product added ( no updated product )Admin Create New Order ObserverObserver checkout_cart_product_add_after get product quantity in cartHow can I differentiate between product creation and saving existing products?How to get the original price Product SaveBeforeMagento Observer for Admin Sales order Address updateHow do i get quantity in a product_save_after event observer magento2?Using observer event to get updated customer infoSave product observer - detect availabilityEvent not triggered when new product added in admin : Magento 2magento 1.9 observer on quantity product change

Does an object always see its latest internal state irrespective of thread? The 2019 Stack Overflow Developer Survey Results Are InDoes a finally block always get executed in Java?Java: serial thread confinement questionJava difference between fixed threadpool and scheduled threadpoolJackrabbit and concurrent modificationHow to stop a Runnable scheduled for repeated execution after a certain number of executionsMultiple threads accessing inner classHow can a loop be completed by two thread? say loop from count=1 to count=4 by ist thread and count =5 to 8 by 2nd thread?If I keep a reference to a Runnable, when does the Thread it ran on get released?How to stop a schedule ScheduledExecutorServiceHow to implement a singleThreadedScheduledExcecutor in wildfly

Adding contour labels to SpatialLinesDataFrame or sf object? The Next CEO of Stack OverflowTearing of SpatialLinesDataFrame and problem with gClip functionAutomatically adjusting map labelsExtracting data.frame from simple features object in RR convert sf object back to SpatialPolygonsDataFrameSimplify polygons of sf objectlines of a SpatialLinesDataFrame corresponding to pointsCropping sf object in R?Pattern matching with grepl on SpatialPolygonsDataFrame object in RHow to create and empty SpatialLinesDataFrame in RWarning message in raster::rotate(): “this does not look like an appropriate object for this function”