Subscribe to this thread
Home - General / All posts - adding points in the segments with equal interval regardless of the vertex
mao90210
58 post(s)
#09-Jan-18 05:56

Hello once again, i need some help right now.

May i know how to put points in the line with equal distance regardless of the vertex

like this one in the attached image? this how they do in Arcmap.

Thank you

Attachments:
1.jpg
2.jpg
3.jpg

adamw


7,444 post(s)
#09-Jan-18 07:26

This requires using a query or a script.

Are you just looking to get the job done or do you want to learn how to write such things? In the former case I will just (write and) post a script, in the latter case I will walk you through the way you create it.

mao90210
58 post(s)
#09-Jan-18 07:58

Thank you Adamw, I am very interested to learn how to write a query or a script like this one even though i dont have any background in programming but i will try my best how to do it.

adamw


7,444 post(s)
#10-Jan-18 08:47

OK, if you don't have any background in programming, it is going to be tough to explain everything in a post. :-)

I am attaching the MAP file with a script. The script takes a drawing named 'Drawing', processes lines and creates a new drawing named 'Points' placing a point onto each line every 100 meters. Example output is in the MAP file (open the map to see it). You can adjust the names of components and the value of 100 by editing the script.

Hope this helps.

Attachments:
script-place-points-8.map

mao90210
58 post(s)
#11-Jan-18 07:32

Wow! it works like magic, this is exactly what i want.

In arcmap you have to do it one at a time in every single polyline.

But in this script i just change the value of intervals then thats it works perfectly fine.

Thank you so much for this adamw.

lionel
249 post(s)
#11-Jan-18 19:25

ss

Attachments:
mfd8_geomType.png

lionel
249 post(s)
#11-Jan-18 18:58

Hi

-very basic question : how can i know the unit of the value 100 refer to drawing projection ?

-Does the logic is to use the location of last duo inflections points and the distance beetween those points to place ( create ) the points that should exist in the last segment inflection points ?

nested function are create to simplify code .

regard's

Attachments:
nested_function.png
place_points-every100_line.png

adamw


7,444 post(s)
#12-Jan-18 08:26

Currently, to recall what units are used in a particular coordinate system, you have to inspect the definition of that coordinate system. This is not terribly user-friendly, so we will also show coordinate system units in the status bar / add them to relevant controls in the Transform pane.

Regarding the script functions - yes, AddPointsForBranch goes from segment to segment and adds points at intermediate locations when there is enough accumulated distance.

lionel
249 post(s)
#14-Jan-18 03:48

A) In mf8 , in a way when i move the mouse on a drawing coordinate must give me information about the value. In the capture screen when i move mouse on drawing the bottom status bar should show me or let me gusee the value to enter to go to one point ( align vertical in the left) to another point ( locate in the right ) .Only the projected scale choice in tool -> option let me see value that help me choose value for move point .

In mfd9 show both projected and not is nice efficient

i understand now how unit work ...thank's

B) It ll be nice when use shift and set parameters that the gui focus still in the shift item if we want to do it again . I see that shift parameters is still in memory that avoid me to re enter last value ( X or Y ) . why not a matrix parameter for transformation ( scale move ... should stay exist )

C) i don't see move ( horizontal or vertical ) item in the Content Transform ( Geom) Template !!!

what is the label of item for move coordinate ? I think shift ?

D) perhaps a measurement tool ll be helpfull , save in memory to be able to copy value in input form / text area !!!

regard's

Attachments:
manifold8_distanceUnit.png
mfd8_move_use_projectedCoordinate.png

adamw


7,444 post(s)
#15-Jan-18 07:40

The transform for moving geoms is named Shift.

We will make the status bar better and add a measurement tool (saving last measured value somewhere is a good idea, thanks).

lionel
249 post(s)
#14-Jan-18 04:18

Hi

1) microsoft mathematics support matrix so also office software ( notes , word µ... ) and can be export in raw text or mathml .

2) Does Z is manage internaly by SQL engine like X Y in Manifold 9 ?

3)Does segment mean the "line" beetween 2 inflections points in manifold term ?

4) measurement tool must use by default snap and way to fixe first selection and 2sd selection !!

Regard's

Attachments:
matrix_move.png

adamw


7,444 post(s)
#15-Jan-18 07:51

Yes, 'segment' means a line between two 'inflection points' in 8-speak (now, we just say 'coordinates').

Regarding Z - we allow storing Z data in geometry values and provide means to access them from queries and scripts. There are several transforms which use Z, too (for now, just several primitive things).

lionel
249 post(s)
#14-Jan-18 04:34

about Z ...this make many Z to manage

- for height of point on earth ( not really attach to layer concept .....)

- for shape inside drawing

- for layer inside map

- for layer inside Layout

regards

Manifold User Community Use Agreement Copyright (C) 2007-2017 Manifold Software Limited. All rights reserved.