-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement missing options #8
Comments
Sending again as I got a mail bounce from git hub. Hi CONFIG loads with no errors but is missing on the MAP page OUTPUTFORMAT, a sub section of MAP loads but is missing. INCLUDE '../symbols.map' with no errors but is missing on the MAP page Re my previous message regarding Undefined Offset:1 Of course had the designers used xml (there is a definition, but I think its out of date) Included is a test file
|
Hello @aimdev , Thanks again for all your feedback ! 👍
But
Are you using the last version of the application and the library ? EDIT : MapFile PHP Library |
Hi
Will recheck the files etc, assume its ok.
Re the include there are two types.
Include Symbols, just a text file with symbol definitions, no point in even checking those.
Include layers. This is to enable the splitting of the map file into one map file, and
then including layer files defining the layers.
Basically the LAYERS are removed from the very large MAP file, and then processed separately, in the Editor
Not sure if thats what you want to program in, or just to go for the one combined MAP file which includes the layers, but obviously
not the INCLUDE layer statements.
I don't think I was very clear in the example, below is a modified one, note there
are two files, the MAP and a LAYER
Thanks
Aimdev
Map File
```
MAP
NAME "PLANET"
DEBUG 0
CONFIG 'ON_MISSING_DATA' 'IGNORE'
CONFIG "MS_ERRORFILE" "../debugFile.log"
CONFIG "MS_ERRORFILE" "../mserror"
CONFIG 'PROJ_LIB' '../'
FONTSET '../fonts.lst'
IMAGETYPE png
MAXSIZE 4000
SIZE 800 800
UNITS meters
EXTENT -20000000 -20000000 20000000 20000000
### Problem IMAGECOLOR "#C6E2F2"
IMAGECOLOR 1 2 3
SHAPEPATH '../pdata/osm-data/'
WEB
METADATA
"ows_enable_request" "*"
"wms_enable_request" "*"
"wms_srs" "EPSG:900913 EPSG:4326 EPSG:3857"
"labelcache_map_edge_buffer" "-10"
"wms_title" "Natural Earth World WMS"
END
IMAGEPATH '/tmp/ms_tmp/'
IMAGEURL '/ms_tmp/'
END
DEBUG 5
PROJECTION
"init=epsg:3857"
END
OUTPUTFORMAT
NAME "png_bw"
DRIVER AGG/PNG8
MIMETYPE "image/png;mode=8bit,grayscale"
IMAGEMODE RGB
EXTENSION "png"
TRANSPARENT ON
FORMATOPTION "PALETTE=grey.txt"
FORMATOPTION "PALETTE_FORCE=on"
END
INCLUDE '../symbols.map'
INCLUDE 'layers/l1.map'
END #MAP
```
layers/l1 file, referred to in MAP file
```
LAYER
GROUP "admin"
STATUS ON
MAXSCALEDENOM 41601025
MINSCALEDENOM 20800512
TYPE LINE
NAME "borders4"
PROJECTION
"init=epsg:3857"
END
DATA "boundaries.shp"
CLASS
STYLE
WIDTH 0.5
#Problem COLOR "#FF2400"
COLOR 123 123 123
END
END
END # LAYER
LAYER
TYPE LINE
NAME "waterways17"
STATUS ON
GROUP "default"
CONNECTIONTYPE POSTGIS
CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432"
DATA "geometry from (select geometry, osm_id, type, name as name from osm_waterways) as foo using unique osm_id using srid=3857"
CLASSITEM "type"
MAXSCALEDENOM 5078
MINSCALEDENOM 2539
LABELITEM "name"
PROJECTION
"init=epsg:3857"
END
PROCESSING "CLOSE_CONNECTION=DEFER"
CLASS
EXPRESSION "river"
STYLE
COLOR 153 179 204
WIDTH 3
END
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT sc
MINDISTANCE 200
SIZE 8
# Problem COLOR "#6B94B0"
OUTLINEWIDTH 2
REPEATDISTANCE 400
MINFEATURESIZE AUTO #### causes Undefined Offset:1
ANGLE FOLLOW
BUFFER 3
END
END
END # LAYER
```
… On 22 Sep 2018, at 14:31, Jonathan Beliën ***@***.***> wrote:
Hello @aimdev <https://github.com/aimdev> ,
Thanks again for all your feedback ! 👍
There is indeed an issue with hexadecimal colors ! I'll fix it !
There is also an issue with MINFEATURESIZE ! I'll take care of it !
But
I don't have any issue with OUTPUTFORMAT : all parameters seem fine !
Same with INCLUDE ! They are included at the end of the MapFile. I (of course) don't check the "included" file since I don't have access to it.
Are you using the last version of the application and the library ?
You can try https://mapfile.herokuapp.com/ <https://mapfile.herokuapp.com/> to be sure !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#8 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AL7fpHHOJrx1ggANeDeWHgPn8GK1wHpGks5udjuVgaJpZM4WWQil>.
|
Okay, I understand your issue ! Unfortunately, at the moment, the application is only made to upload one single full MapFile. I thought about being able to read "included" files but it will require to upload, store, and manage multiple MapFiles at the same time. |
Hi
Thats fine, in the event there is a way round it. (sed the map file to remove the END, cat the map + layer files, append the END)
It was more an issue trying to edit a 10000 line file in a normal editor, using Mapfile Generator
means you can see what the file looks like in terms of the definitions, which is way better.
Also having options and error checking is a real bonus, easier then tailing the Mapserver error file to see where it goes wrong,
or even getting a blank map!!.
Mapserver accepts both formats, my only thought was there may be a memory issue loading a huge file, and my only design idea
would be to separate the map and layer editors in the INCLUDE so they run in separate contexts.
Aimdev
… On 22 Sep 2018, at 15:02, Jonathan Beliën ***@***.***> wrote:
Okay, I understand your issue !
Unfortunately, at the moment, the application is only made to upload one single full MapFile.
I thought about being able to read "included" files but it will require to upload, store, and manage multiple MapFiles at the same time.
I'll keep looking for the best way to implement this but I don't have any idea at the moment ; it's quite tricky !
I create a new issue so I don't forget about it : #9 <#9>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#8 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AL7fpA6muxbllxlt8I65kevSy4x3M8kiks5udkLcgaJpZM4WWQil>.
|
MAP
LAYER
OUTPUTFORMAT
PROJECTION
SYMBOL
STYLE
FEATURE
The text was updated successfully, but these errors were encountered: