Git Product home page Git Product logo

mapmanager's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mapmanager's Issues

Add navigation history

We should implement "Back" and "Forward" menu items to be able to get back to earlier zoom settings easily. The following shortcut keys should also be implemented:

Back -> Alt + Left arrow
Forward -> Alt + Right arrow

The "Zoom To Initial extent" should now be implemented as getting back to the beginning of the history.

In a rotated map the select function does not select point feature

Trying to select a point feature does not work if the ANGLE is not 0 in map file.

The coordinates of the same point with 0 degree rotation are:
256443 5212654
but with a 90 degree rotation they are:
256553 5212559
with a 1454 zoom value (though I used the pawn cursor for getting these coordinates, these differents are too great)

selectednotrotated
Result of the selection without rotation

selectingrotated90degree
The selecting with 90 degree rotation

resultofselectionrotated90degree
Result of the selection with 90 degree rotation

Styles' OFFSET values are saved as ints though they are doubles.

In mapserver.h (row 1006) we can see the styleObj struct has offsetx and offsety. They are double.

mapserver.h

struct styleObj{
...
double offsetx, offsety; /* for shadows, hollow symbols, etc... */
...
}

According to this we can see in mapfile.c (row 2726 and 2736) they are treated as doubles when they are loaded in.

mapfile.c

int loadStyle(styleObj *style)
{
...
case(OFFSET):
if((symbol = getSymbol(2, MS_NUMBER,MS_BINDING)) == -1) return(MS_FAILURE);
if(symbol == MS_NUMBER)
style->offsetx = (double) msyynumber;
else {
...
if(symbol == MS_NUMBER)
style->offsety = (double) msyynumber;
else {
...
}

But in mapfile.c (row 2986) the style is saved by a writeDimension (mapfile.c row 525) function which wait ints on its 4th and 5th operands
that is why the OFFSET value of styleObj losts the precision of double when the map file is saved.

mapfile.c

...

static void writeDimension(FILE *stream, int indent, const char *name, int x, int y, char *bind_x, char *bind_y)
{
writeIndent(stream, ++indent);
if(bind_x) msIO_fprintf(stream, "%s [%s] ", name, bind_x);
else msIO_fprintf(stream, "%s %d ", name, x);
if(bind_y) msIO_fprintf(stream, "[%s]\n", bind_y);
else msIO_fprintf(stream, "%d\n", y);
}

...

void writeStyle(FILE *stream, int indent, styleObj *style)
{
...
writeDimension(stream, indent, "OFFSET", style->offsetx, style->offsety, style->bindings[MS_STYLE_BINDING_OFFSET_X].item, style->bindings[MS_STYLE_BINDING_OFFSET_Y].item);
...
}

The solution for this issue could be anther writeDimension function with 2 double operands.

Missing inline symbols because of wrong SYMBOLSET path handling.

If you edit the map file with Notepad++ and save it after setting the SYMBOLSET path relative to the map file.
(That is there is not a symbol file in the folder of the exe)

Open the map file in Map Manager and you will see that the inline symbols are not loaded.
If someone saves the map file (no noticing that the file was wrongly loaded) than he will lose all his inline symbol definitions.

msProcessProjection() Error for "init=epsg:900913.

When I try to open a mapfile with PROJECTION set to "init=epsg:900913" the following error is thrown:

error

I try to add the projection definition in c:\Program Files (x86)\MapManager\ProjLib\epsg file but without success.

#900913
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids= <at> null +no_defs <>

In symbol definition characters (&#128;-&#162;) are not shown and are not changable

Creating symbol definitions by code and saving by mapObj's save function you will find that loading in Map Manager the definitions look like this one:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER ""
FONT "TC2A"
END

So the character is missing but opening the file with Notepad++ you can see an "HTJ" with black background color:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "�"
FONT "TC2A"
END

If you edit the map file and change the character to for example to "6" and see the map and nothing changes you will see the same sign as it was when you loaded in the map file. If you save it still there is not different but if you look the map file in Notepad++ you will see that:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "�6"
FONT "TC2A"
END

Anyway if the SYMBOLSET path pointing to a folder where is not the looked-for file than you will see:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "‰"
FONT "TC2A"
END

Which differs from the "".

Realtive path to font.list file cannot work.

The Map Server can handle the relative path to font.list and to the symbolset from the map.file.

The Map Manager does not allow to save a map file with a relative font.list path (FONTSET). That makes the software unflexible.

Pan function does not work correctly on rotated maps

Set ANGLE 90 for the rotation of the map in the map file!

Choose the Pan function due to move the map by drag-and-drop!

If you try to move the map to the north with a downward directed drag-and-drop operation than the map move to the east with the same distance.

dragstartpositionwith90degreerotation
Before

dragendpositionwith90degreerotation
After

The blue cross show the center of the screen.

Fix color handling in MS7

Alpha values has been introduced in the colorObj constructor, the earlier setting causes fully transparent colors everywhere.

IndividualValuesTheme should allow to specify classitem instead of expression

Enhance map selection

The following enhancements should be added:

  1. Add context menu to select list, implement "Center To Shape", "Go To Layer (Text)", "Go To Class (Text)"
  2. Add center marker (cross)

Confused rendering of selected features with changed class order

Select 3 features (the first 3 in the list on the left):

selectedfeaturesbasestatus
Drag the 3rd in the row over the 1st one and you will see:
selectedfeatures1stpermutation
In this first permutation we can see that the Road became Train, the Highway became Road and the Train became Highway.
Now do the same again (put the third to the first place):
selectedfeatures2ndpermutation
In the second permutation the Road became Highway, the Highway became Train and the Train became Road.
Now if you do the same again you will see everything get back to the first original situation

Add capability to feature sub-class on an attribute

If I have a shapefile with an attribute field 'fclass' I would like to create as many sub-classes as there are unique values.

Ideally I would like the rendering to be set to that of the parent initially.

Query fails when combination of DEM + Vector

Querying DEM pixels works successfully until you add another layer into the mapfile.
Basically if you just have the DEM layer you can do a select and it works, if there is another layer selectable you get the error

Does MapManager manage includes?

To create large mapfiles as simple as possible, I frequently incorporate include as :

INCLUDE "../ec/connec_db_pg.map"

Does MapManager can manage them?
I know, that it's more a question than an issue.

Style properties - Fill Patterns does not work

I'm using mapmanger version:
MapServer version 7.0.1
GDAL 2.1.0, released 2016/04/25
proj Rel. 4.8.0, 6 March 2012
geos 3.4.3-CAPI-1.8.3 r4038
zlib 1.2.3
libcurl/7.37.1 OpenSSL/1.0.1h zlib/1.2.3

I'm not able to make a fill patterns other than defaults (ex. Horizontal-1).
See the images attached to this issue.
Please correct me if I'm wrong

Many thanks
Michele

This is wrong:
mapmanager-issue

This is ok:
mapmanager-ok

Installation on windows 10 home edition

Hi

Using the mapmanger.mis.exe on windows 10 home edition, displays a message stating this software
cannot run on this PC. Will there be a version to run on windows 10 home edition?
If not what is required to compile the software on windows 10 home edition?

Thanks

Aimee

MapManager crashes if shapefile does not have PRJ file

MapServer version 8.0.0
GDAL 3.6.3, released 2023/02/23
proj Rel. 9.1.1, December 1st, 2022
geos 3.10.2-CAPI-1.16.0
zlib 1.2.11
libcurl/7.79.1-DEV OpenSSL/1.1.1l zlib/1.2.11

Steps to replicate:

  1. Create empty map file
  2. Add a shapefile without a PROJ

Simon

Linux port

Hi,

What about the folks out there with no Visual Studio, i.e. can we have a linux port please?

Cheers

Anchorpoint is not saved in symbols with type TRUETYPE

After saving a map file containing TRUETYPE symbol definitions with ANCHORPOINT, the anchorpoint is missing:

Example: Before save
SYMBOL
NAME "2"
TYPE TRUETYPE
CHARACTER "A"
ANCHORPOINT 0 1
FONT "alfa"
END

After save
SYMBOL
NAME "2"
TYPE TRUETYPE
CHARACTER "A"
FONT "alfa"
END

The same phenomenon occurs when I switch to the map and back to the text of the map file.
That is why I cannot use anchorpoint with this kind of Symbols, but for example with VECTOR type symbols everything works well.

[Question] Styling OGR layer

Hi @szekerest how are you ?
Do you have an example map file to style OGR layer ?
Eg. if I open a DXF file in MapManager, how do I target and style the layer ?

  LAYER
    CONNECTION "dxf1.dxf"
    CONNECTIONTYPE OGR
    NAME "line"
    PROCESSING "GETSHAPE_STYLE_ITEMS=all"
    STATUS ON
    TEMPLATE "query.html"
    TILEITEM "location"
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "Class (0)"
      STYLE
        COLOR 0 0 0
        SIZE 8
      END # STYLE
      TEMPLATE "query.html"
    END # CLASS
    CLASS
      NAME "Class (1)"
      STYLE
        COLOR 0 0 0
      END # STYLE
    END # CLASS
  END # LAYER

ogrinfo output:

OGRFeature(entities):224
  Layer (String) = STOCKPILES
  SubClasses (String) = AcDbEntity:AcDbPolyline
  Linetype (String) = VULCAN_LINE_TYPE_1
  EntityHandle (String) = BFC
  Style = PEN(c:#ffbb00,w:0.3g,p:"0.024g 0.072g")
  LINESTRING Z (1 1 411,2 2 411,3 3 411,4 4  411)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.