Quantcast
Channel: DotSpatial
Viewing all 3973 articles
Browse latest View live

New Post: Putting only one decoration symbol at middle of a line

$
0
0
Thanks Jany for your response.

I have seen the thread that you linked. The issue here is to put one line decoration at the middle (between the start and end) of a line.

New Post: Selecting both point and line features from two feature layer at the same time

$
0
0
Thanks again, I used 1.7 from download page.
Will change and let your know the outcomes.

Regards

New Post: Putting only one decoration symbol at middle of a line

Closed Unassigned: EditMode Cropping Point Symbols [25683]

$
0
0
Hi, I'm having an issue with point symbols getting cropped.

When EditMode is enabled on a selection layer you cannot visually see your selection. However when EditMode is disabled the point symbols appear to be slightly cropped on the top and left sides. See examples attached.

Any suggestions?

I'm currently using 1.7 but I've had this issue for a while (since at least 1.5). I currently avoid the cropping by leaving EditMode enabled but this is not ideal.

Thanks

Rob :)
Comments: This issue was solved with changeset 74996

New Post: Putting only one decoration symbol at middle of a line

$
0
0
I think that thread is about putting the decorations in the middle of a thick line. (i.e., the middle of a line's width)
I am looking to put one decoration between start and end of a line (i.e., the middle of a line's length)
and I don't see any answer to that thread.

Thanks

New Post: Status of BrutileLayer versus WebMap plugin

$
0
0
There are a lot of breaking changes in BruTile 0.10.1
If I had the time I'd update the plugin.

New Post: Putting only one decoration symbol at middle of a line

$
0
0
I asked sprashant80 what he wanted to do and he said he wanted to do both. The thick line and the decoration in the middle of the lines lenght.
Because having a line in the middle of a thick line is already possible the issue is essentially about the decoration in the middle of the lines length.

New Post: Putting only one decoration symbol at middle of a line

$
0
0
Thanks for your response.
So it is not currently possible to do it currently?
Is there any plan to add it?

New Post: Putting only one decoration symbol at middle of a line

$
0
0
No its currently not possible.
As there is an issue it might be added, if there is a developer that is interested in doing it and has the time to do it.

New Post: Putting only one decoration symbol at middle of a line

$
0
0
Thank Jany for your time, much appreciated.

New Post: Desktop MS-C# need to display layers from a webservice

$
0
0
I have a Microsoft Visual Studio C# project where I'm working with a DotSpatial.Controls.Map.

I'd like to display base maps from our ArcGIS server which are available via webservices.

Are there any examples of how I can do this?

Joe

New Post: Desktop MS-C# need to display layers from a webservice

$
0
0
Maybe you can have a look at the code of the WebMap-Plugin. Here you can see an example how the Brutile library is used to display e. g. data from WMS Servers. Or you can try to use the WebMap-Plugin within your application?

Greetings, Martin

New Post: Saving DateTime IFeatureSet

$
0
0
Hello i trying to save datetime to the table ,
when i closing the shp file and saving all.

after reopen the TimeSpan value in DateTime object is reset to 00:00
     IFeature feature = _FeatureSet.AddFeature(geom);

                    // now the resulting features knows what columns it has
                    // add values for the columns
                    feature.DataRow.BeginEdit();
                    feature.DataRow[_fieldsNames[1]] = some int
                    feature.DataRow[_fieldsNames[2]] = m_Name;
                    feature.DataRow[_fieldsNames[3]] = m_Names;
                    feature.DataRow[_fieldsNames[4]] = m_DateTime;
  feature.DataRow.EndEdit();
    public void CloseShapeFile()
        {
            if (_FeatureSet != null)
            {
              
                _FeatureSet.Close();
                _FeatureSet.Dispose();
                _FeatureSet = null;
            }

        }
after i re-open the shape file the value in date time is 00:00.
before i closing the value is ok?
what am i doing wrong ?

New Post: HOW TO put a selection in a dataset?

$
0
0
I know how to put the data of a layer to a datatable, change some things and update the shape by using the next code.... this works BUT (see part after the code)
Dim dtGebouwen As DataTable
Dim GebouwenLayer As FeatureLayer
GebouwenLayer = TryCast(Form1.myVenster.Layers.SelectedLayer, FeatureLayer)
dtGebouwen = GebouwenLayer.DataSet.DataTable

'i put here below code to change things in the datatable
                 ----
'the following instructions are needed to update data of the datatable to the file, and to refresh the view on the screen on the basis of your simbology
 GebouwenLayer.DataSet.Features.SuspendEvents()
GebouwenLayer.DataSet.InitializeVertices()
GebouwenLayer.AssignFastDrawnStates()
GebouwenLayer.DataSet.UpdateExtent()
GebouwenLayer.DataSet.Save()
GebouwenLayer.DataSet.InvalidateVertices()
GebouwenLayer.DataSet.Features.ResumeEvents()
Form1.myVenster.Refresh()
but how to do this when i have a selection of the shape by using...
 Dim GebouwenLayer As FeatureLayer
Dim fsLayer As FeatureSet
GebouwenLayer = TryCast(Me.myVenster.Layers.SelectedLayer, FeatureLayer)
fsLayer = GebouwenLayer.Selection.ToFeatureSet()
__dtGebouwenSelectie = fsLayer.DataTable__
in the last row, i seem not be able to convert a selection to a dataset somehow so its automaticly updated when i chance data in the datatable....

anyone have the smallest suggestion?

New Post: HOW TO put a selection in a dataset?

$
0
0
or perhaps from a different view if i have the datatable of the selection should i make some code to read the rows one by one and overwrite the corresponding rows in the mother-dataset-datatable by checking row for row??

or is there a smarter way to update the mother datatable with the data in the selection datatable....

New Post: HOW TO put a selection in a dataset?

$
0
0
I think if you want to update the mother-dataset you have to update it row by row.

GebouwenLayer.Selection.ToFeatureSet() creates new objects that are no longer connected to your selected layer. That's why the data in your mother-dataset doesn't get updated when you change something in fsLayer.DataTable.

Commented Unassigned: How to show linecap at middle of Line [25384]

$
0
0
In my current project, I would like to show case line direction at the middle of line feature.

Please suggest a way to represent it. This is a really crucial issue for me.

Thanks in advance.
Comments: ** Comment from web user: jany_ **

Are we talking about lines that have only a start and and endpoint or are we talking about lines that have more points in between?

If we are talking about lines with more than one part should the arrow appear only once or in the middle of each part? If it should appear only once then where exactly?

New Post: Putting only one decoration symbol at middle of a line

$
0
0
Are we talking about lines that have only a start and and endpoint or are we talking about lines that have more points in between (like a V for example)?

If we are talking about lines with more than one part should the arrow appear only once or in the middle of each part? If it should appear only once then where exactly?

New Post: Putting only one decoration symbol at middle of a line

$
0
0
Well, this is a very good question.
I think the modified code should work regardless of the number of of vertices on the line. This means it should work on single line (consist of two points) or polyline (i.e., consist of more than two points.)

What I would love to have, is to be able to put only one decoration at middle of the polyline length. This means, if we have a polyline the program should calculate the sum of the length of all of its single lines and then put only one decoration at the middle of the polyline.

let me know if this make sense to you.

New Post: Putting only one decoration symbol at middle of a line

$
0
0
You could also consider an arg to let say get the location of the decoration based on the polyline length percentage. for instance to put the decoration at 50% of the polyline's length from its beginning
Viewing all 3973 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>