Re: [MapServer-users] Database problem when using CLASSITEM

2023-05-01 Thread Jeremy JK
Hi Bob,
Thanks for the guidance
I had been "misdirected" by the mentioning of the dbf file in tutorial
Hope you guys can clear up some more of my misdirections in the future



On Mon, May 1, 2023, 9:59 AM Bob Basques 
wrote:

> *Jeremy,*
>
>
>
> *One thing to check is the column name in Postgres, as in “CLASS” vs
> “class” vs “Class”, etc.   Needs to match.  Check the same thing on
> EXPRESSION values.*
>
>
>
> *bobb*
>
>
>
>
>
> *My machine - - - PW19-S295-C024*
>
>
>
> *From:* MapServer-users  *On
> Behalf Of *Jeremy JK
> *Sent:* Saturday, April 29, 2023 2:12 PM
> *To:* Jason Snyder 
> *Subject:* [MapServer-users] Database problem when using CLASSITEM
>
>
>
> *Think Before You Click: *This email originated *outside *our
> organization.
>
>
>
> Hola
>
> OK so I am going through the MapServer tutorial
> Example 1-3 to be exact
> the one with the classes
> using classes to split layer polygon into land and water
>
> when shp and dbf file is in filesystem it works fine
> But
> When I import shp file into postgres I get the following error
>
> After checking the error logs, my question is how do I get a class column?
> Do I have to insert the dbf file into schema? If so, how?
>
> Thanks
>
> *Error*:
> msDrawMap(): Image handling error. Failed to draw layer named
> 'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing
> query. Check server logs
>
>
>
> *Query: *
> http://localhost:8081/cgi-bin/mapserv?map=/opt/map/mdm60/example1-3.map=states_poly=states_line=map
>
>
> *Mapfile*:
> MAP
>   IMAGETYPE  PNG
>   EXTENT -97.238976 41.619778 -82.122902 49.385620
>   SIZE   400 300
>   SHAPEPATH  "/opt/map/mdm60/ms4w/apps/tutorial/data/"
>   IMAGECOLOR 255 255 255
>
>   LAYER
> NAME "states_poly"
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=postgres password=postgres dbname=mdm6data
> host=mxsig-db port=5432"
> DATA "wkb_geometry from tutoiral.states_ugl_imported using
> srid=3857"
> STATUS   OFF
> TYPE POLYGON
>
> CLASSITEM "CLASS"
>
> CLASS
>   NAME 'States'
>   EXPRESSION 'land'
>   STYLE
> COLOR  232 232 232
>   END
> END
> CLASS
>   NAME 'Water'
>   EXPRESSION 'water'
>   STYLE
> COLOR  198 198 255
>   END
> END
>   END
>
>LAYER
> NAME "states_line"
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=postgres password=postgres dbname=mdm6data
> host=mxsig-db port=5432"
> DATA "wkb_geometry from tutorial.sttes_ugl_imported using
> srid=3875"
> STATUS   OFF
> TYPE LINE
>
> CLASSITEM"CLASS"
>
> CLASS
>   NAME   'State Boundary'
>   EXPRESSION 'land'
>   STYLE
> COLOR32 32 32
>   END
> END
>   END
>
>
> END
>
>
> *Error Log: *[Sat Apr 29 19:08:42 2023].232185 CGI Request 1 on process
> 1677
> [Sat Apr 29 19:08:42 2023].233452 msDrawMap(): rendering using
> outputformat named png (AGG/PNG).
> [Sat Apr 29 19:08:42 2023].233473 msDrawMap(): WMS/WFS set-up and query,
> 0.000s
> [Sat Apr 29 19:08:42 2023].282742 msPostGISLayerWhichShapes(): Error
> (ERROR:  no existe la columna «CLASS»
> LINE 1: select "CLASS"::text,ST_AsBinary(("wkb_geometry"),'NDR') as ...
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] MapServer-users Digest, Vol 183, Issue 13

2023-04-30 Thread Jeremy JK
Hi Jeff,
My understanding, as the tutorial says, is that the class column comes from
the dbf file
That's the tutorial's dataset - shp file and dbf file
So I guess my query will be how to import the dbf file into the database
such that is "corresponds" to the shp file table

How to import  states_ugl.dbf together with states_ugl.shp?

I guess this is more of a problem with handling a specific data set for a
specific purpose (tutorial data for the tutorial)

I will practice using files
But would be good to know how to insert the 2 different types of files
"simultaneously" for future reference







On Sun, Apr 30, 2023 at 3:00 PM 
wrote:

> Send MapServer-users mailing list submissions to
> mapserver-users@lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> or, via email, send a message with subject or body 'help' to
> mapserver-users-requ...@lists.osgeo.org
>
> You can reach the person managing the list at
> mapserver-users-ow...@lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MapServer-users digest..."
>
>
> Today's Topics:
>
>1. Database problem when using CLASSITEM (Jeremy JK)
>2. Re: Database problem when using CLASSITEM (Jeff McKenna)
>
>
> ----------
>
> Message: 1
> Date: Sat, 29 Apr 2023 15:12:26 -0400
> From: Jeremy JK 
> To: Jason Snyder 
> Subject: [MapServer-users] Database problem when using CLASSITEM
> Message-ID:
>  fodixgr6rynaskbpv9wxrnaf_-m2-pb...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hola
>
> OK so I am going through the MapServer tutorial
> Example 1-3 to be exact
> the one with the classes
> using classes to split layer polygon into land and water
>
> when shp and dbf file is in filesystem it works fine
> But
> When I import shp file into postgres I get the following error
>
> After checking the error logs, my question is how do I get a class column?
> Do I have to insert the dbf file into schema? If so, how?
> Thanks
>
> *Error*:
> msDrawMap(): Image handling error. Failed to draw layer named
> 'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing
> query. Check server logs
>
>
>
> *Query: *
>
> http://localhost:8081/cgi-bin/mapserv?map=/opt/map/mdm60/example1-3.map=states_poly=states_line=map
>
>
> *Mapfile*:
> MAP
>   IMAGETYPE  PNG
>   EXTENT -97.238976 41.619778 -82.122902 49.385620
>   SIZE   400 300
>   SHAPEPATH  "/opt/map/mdm60/ms4w/apps/tutorial/data/"
>   IMAGECOLOR 255 255 255
>
>   LAYER
> NAME "states_poly"
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=postgres password=postgres dbname=mdm6data
> host=mxsig-db port=5432"
> DATA "wkb_geometry from tutoiral.states_ugl_imported using
> srid=3857"
> STATUS   OFF
> TYPE POLYGON
>
> CLASSITEM "CLASS"
>
> CLASS
>   NAME 'States'
>   EXPRESSION 'land'
>   STYLE
> COLOR  232 232 232
>   END
> END
> CLASS
>   NAME 'Water'
>   EXPRESSION 'water'
>   STYLE
> COLOR  198 198 255
>   END
> END
>   END
>
>  LAYER
> NAME "states_line"
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=postgres password=postgres dbname=mdm6data
> host=mxsig-db port=5432"
> DATA "wkb_geometry from tutorial.sttes_ugl_imported using
> srid=3875"
> STATUS   OFF
> TYPE LINE
>
> CLASSITEM"CLASS"
>
> CLASS
>   NAME   'State Boundary'
>   EXPRESSION 'land'
>   STYLE
> COLOR32 32 32
>   END
> END
>   END
>
>
> END
>
>
> *Error Log:*[Sat Apr 29 19:08:42 2023].232185 CGI Request 1 on process 1677
> [Sat Apr 29 19:08:42 2023].233452 msDrawMap(): rendering using outputformat
> named png (AGG/PNG).
> [Sat Apr 29 19:08:42 2023].233473 msDrawMap(): WMS/WFS set-up and query,
> 0.000s
> [Sat Apr 29 19:08:42 2023].282742 msPostGISLayerWhichShapes(): Error
> (ERROR:  no existe la columna ?CLASS?
> LINE 1: select "CLASS"::text,ST_AsBinary(("wkb_geometry"),'NDR') as ...
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230429/f3df399b/attachment-0001.htm
> >
>
> --

[MapServer-users] Database problem when using CLASSITEM

2023-04-29 Thread Jeremy JK
Hola

OK so I am going through the MapServer tutorial
Example 1-3 to be exact
the one with the classes
using classes to split layer polygon into land and water

when shp and dbf file is in filesystem it works fine
But
When I import shp file into postgres I get the following error

After checking the error logs, my question is how do I get a class column?
Do I have to insert the dbf file into schema? If so, how?
Thanks

*Error*:
msDrawMap(): Image handling error. Failed to draw layer named
'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing
query. Check server logs



*Query: *
http://localhost:8081/cgi-bin/mapserv?map=/opt/map/mdm60/example1-3.map=states_poly=states_line=map


*Mapfile*:
MAP
  IMAGETYPE  PNG
  EXTENT -97.238976 41.619778 -82.122902 49.385620
  SIZE   400 300
  SHAPEPATH  "/opt/map/mdm60/ms4w/apps/tutorial/data/"
  IMAGECOLOR 255 255 255

  LAYER
NAME "states_poly"
CONNECTIONTYPE POSTGIS
CONNECTION "user=postgres password=postgres dbname=mdm6data
host=mxsig-db port=5432"
DATA "wkb_geometry from tutoiral.states_ugl_imported using
srid=3857"
STATUS   OFF
TYPE POLYGON

CLASSITEM "CLASS"

CLASS
  NAME 'States'
  EXPRESSION 'land'
  STYLE
COLOR  232 232 232
  END
END
CLASS
  NAME 'Water'
  EXPRESSION 'water'
  STYLE
COLOR  198 198 255
  END
END
  END

 LAYER
NAME "states_line"
CONNECTIONTYPE POSTGIS
CONNECTION "user=postgres password=postgres dbname=mdm6data
host=mxsig-db port=5432"
DATA "wkb_geometry from tutorial.sttes_ugl_imported using
srid=3875"
STATUS   OFF
TYPE LINE

CLASSITEM"CLASS"

CLASS
  NAME   'State Boundary'
  EXPRESSION 'land'
  STYLE
COLOR32 32 32
  END
END
  END


END


*Error Log:*[Sat Apr 29 19:08:42 2023].232185 CGI Request 1 on process 1677
[Sat Apr 29 19:08:42 2023].233452 msDrawMap(): rendering using outputformat
named png (AGG/PNG).
[Sat Apr 29 19:08:42 2023].233473 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Sat Apr 29 19:08:42 2023].282742 msPostGISLayerWhichShapes(): Error
(ERROR:  no existe la columna «CLASS»
LINE 1: select "CLASS"::text,ST_AsBinary(("wkb_geometry"),'NDR') as ...
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RedHat httpd configuration file

2022-07-21 Thread Jeremy JK
Hello,
Anyone has Mapserver installed on non debian distros?
Like Fedora or RedHat Enterprise Linux?
If so, feel free to share your apache/httpd configuration set up
(Is it different from debian/ubuntu based distributions? I am not too sure)
Thanks
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] CGI or FastCGI

2022-06-13 Thread Jeremy JK
Hello,
Which one is better to use for mapserver set up CGI or FastCGI?
How to set up apache configuration for cgi only? Most interweb tutorials
shows fcgi only.
Thanks for your help. Regards
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Screen is square blank square window

2022-06-08 Thread Jeremy JK
Hello all,
When I call on mapserver I see nothing in the browser window
only a grey square against a black background
Thanks for your help

this is my mapserver petition:

http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mdm61vectorCaribe.map=cbarbados_administrativeboundaries=image%2Fpng=4891.969809375=5=5=0==WMS=1.1.1=GetMap==059=EPSG%3A900913=-12281420.399711,-1098306.4872519,-4405349.0063027,4850328.8011857=805=608

This is the log file
52, -6635790.2658974118530750 1476490.8980501613114029,
-6635788.7212414033710957 1476485.6568205237854272,
-6635788.5621886961162090 1476485.1171328218188137,
-6635786.9534297138452530 1476479.6583917171228677,
-6635783.4353540828451514 1476467.1054714780766517,
-6635779.1915921270847321 1476450.7408135060686618,
-6635777.6594455474987626 1476444.0638863830827177,
-6635776.2385215582326055 1476434.2757148493546993,
-6635775.0103269824758172 1476422.8186795604415238,
-6635773.4231182178482413 1476408.2214688013773412,
-6635772.0777894463390112 1476396.2395822617691010,
-6635770.4671615911647677 1476382.4886730741709471,
-6635768.7171466927975416 1476359.7367921238765121,
-6635766.8391131982207298 1476343.5201003090478480))
[Wed Jun  8 14:18:21 2022].812616 msPostGISLayerNextShape called.
[Wed Jun  8 14:18:21 2022].812648 msPostGISLayerFreeItemInfo called.
[Wed Jun  8 14:18:21 2022].812659 msPostGISLayerClose called: the_geom from
caribe.barbados_administrativeboundaries using unique gid using srid=900913
[Wed Jun  8 14:18:21 2022].812736
msConnPoolRelease(cbarbados_administrativeboundaries,user=postgres
password=StrongAdminP@ssw0rd dbname=postgis_db host=127.0.0.1
port=5432,0x5648bf2b6100)
[Wed Jun  8 14:18:21 2022].812752 msDrawMap(): Layer 20
(cbarbados_administrativeboundaries), 0.783s
[Wed Jun  8 14:18:21 2022].834235 msPostGISLayerIsOpen called.
[Wed Jun  8 14:18:21 2022].843507 msConnPoolClose(user=postgres
password=StrongAdminP@ssw0rd dbname=postgis_db host=127.0.0.1
port=5432,0x5648bf2b6100)
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Cannot read shp file from database

2022-03-28 Thread Jeremy JK
Thanks!


On Mon, Mar 28, 2022 at 2:52 PM Seth G  wrote:

> Hi,
>
> The following 3 lines should all be in your LAYER...END block (and
> replacing the current DATA line):
>
>   CONNECTIONTYPE postgis
>   CONNECTION "user=postgres password=StrongAdminP@ssw0rd
> dbname=news_test_shp host=127.0.0.1 port=5432"
>   DATA "geom from sample.admintable using unique gid using srid=9000913"
>
>
> Seth
> --
> web:https://geographika.net
> twitter: @geographika
>
>
> On Mon, Mar 28, 2022, at 8:29 PM, Jeremy JK wrote:
>
> Hello all,
> On my virtualbox linuxmint machine I can view a shp file with MapServer
> when the shp file is on filesystem.
> When I put it into the database, the browser returns an error message
> but ogrinfo program can read the database well.
> See below
>
> And thanks for your assistance
> J
>
> *Error*: msLoadMap(): Unknown identifier. Parsing error near
> (CONNECTIONTYPE):(line 9)
> *Petition*:
> http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map=WMS=Getmap=1.1.1=Countries=EPSG:4326=-137,29,-53,88=PNG=800=600
>
>
> *ogrinfo *PG:"host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd
> dbname=news_test_shp port=5432" sample.admintable -summary
> INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd
> dbname=news_test_shp port=5432'
>   using driver `PostgreSQL' successful.
>
> Layer name: sample.admintable
> Geometry: Multi Polygon
> Feature Count: 258
> Extent: (-180.00, -90.00) - (180.00, 83.634101)
> Layer SRS WKT:
> GEOGCRS["WGS 84",
> DATUM["World Geodetic System 1984",
> ELLIPSOID["WGS 84",6378137,298.257223563,
> LENGTHUNIT["metre",1]]],
> PRIMEM["Greenwich",0,
> ANGLEUNIT["degree",0.0174532925199433]],
> CS[ellipsoidal,2],
> AXIS["geodetic latitude (Lat)",north,
> ORDER[1],
> ANGLEUNIT["degree",0.0174532925199433]],
> AXIS["geodetic longitude (Lon)",east,
> ORDER[2],
> ANGLEUNIT["degree",0.0174532925199433]],
> ID["EPSG",4326]]
> Data axis to CRS axis mapping: 2,1
> ...
>
> +++
> *MAP*
>   NAME "MAPSERVER_QUICKSTART"
>   EXTENT -137 29 -53 88
>   UNITS DD
>   SHAPEPATH "/opt/mapfile"
>   SIZE 800 600
>
>   IMAGETYPE PNG24
>   CONNECTIONTYPE postgis
>   CONNECTION "user=postgres password=StrongAdminP@ssw0rd
> dbname=news_test_shp host=127.0.0.1 port=5432"
>   DATA "geom from sample.admintable using unique gid using srid=9000913"
>
>
>   PROJECTION
> "init=epsg:4326"
>   END
>
>   WEB
> METADATA
>   ows_title "MapServer Quickstart"
>   ows_enable_request "*"
>   ows_srs "EPSG:4326 EPSG:25832 EPSG:25833"
> END
>   END
>
>   LAYER
> NAME "Countries"
> STATUS ON
> TYPE POLYGON
> DATA "ne_10m_admin_0_countries"
> CLASS
>   STYLE
> COLOR 246 241 223
> OUTLINECOLOR 0 0 0
>   END
> END
>   END
>
> END
>
> ++
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Cannot read shp file from database

2022-03-28 Thread Jeremy JK
Hello all,
On my virtualbox linuxmint machine I can view a shp file with MapServer
when the shp file is on filesystem.
When I put it into the database, the browser returns an error message
but ogrinfo program can read the database well.
See below

And thanks for your assistance
J

*Error*: msLoadMap(): Unknown identifier. Parsing error near
(CONNECTIONTYPE):(line 9)
*Petition*:
http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map=WMS=Getmap=1.1.1=Countries=EPSG:4326=-137,29,-53,88=PNG=800=600


*ogrinfo *PG:"host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd
dbname=news_test_shp port=5432" sample.admintable -summary
INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd
dbname=news_test_shp port=5432'
  using driver `PostgreSQL' successful.

Layer name: sample.admintable
Geometry: Multi Polygon
Feature Count: 258
Extent: (-180.00, -90.00) - (180.00, 83.634101)
Layer SRS WKT:
GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["geodetic latitude (Lat)",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["geodetic longitude (Lon)",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
...

+++
*MAP*
  NAME "MAPSERVER_QUICKSTART"
  EXTENT -137 29 -53 88
  UNITS DD
  SHAPEPATH "/opt/mapfile"
  SIZE 800 600

  IMAGETYPE PNG24
  CONNECTIONTYPE postgis
  CONNECTION "user=postgres password=StrongAdminP@ssw0rd
dbname=news_test_shp host=127.0.0.1 port=5432"
  DATA "geom from sample.admintable using unique gid using srid=9000913"


  PROJECTION
"init=epsg:4326"
  END

  WEB
METADATA
  ows_title "MapServer Quickstart"
  ows_enable_request "*"
  ows_srs "EPSG:4326 EPSG:25832 EPSG:25833"
END
  END

  LAYER
NAME "Countries"
STATUS ON
TYPE POLYGON
DATA "ne_10m_admin_0_countries"
CLASS
  STYLE
COLOR 246 241 223
OUTLINECOLOR 0 0 0
  END
END
  END

END
++
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
Cannot compile even though I tried installing the dependencies using yum installError log: Determining if the function strrstr exists failed with the following output:Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec1767639631/fast"/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1767639631.dir/build.make CMakeFiles/cmTryCompileExec1767639631.dir/buildgmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1Building C object CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.cLinking C executable cmTryCompileExec1767639631/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1767639631.dir/link.txt --verbose=1/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strrstr    CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1767639631 -rdynamic -lm CMakeFiles/cmTryCompileExec1767639631.dir/CheckFunctionExists.c.o: In function `main':CheckFunctionExists.c:(.text+0x15): undefined reference to `strrstr'collect2: error: ld returned 1 exit statusgmake[1]: *** [cmTryCompileExec1767639631] Error 1gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'gmake: *** [cmTryCompileExec1767639631/fast] Error 2 Determining if the function strlcat exists failed with the following output:Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec1265774941/fast"/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1265774941.dir/build.make CMakeFiles/cmTryCompileExec1265774941.dir/buildgmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1Building C object CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcat -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.cLinking C executable cmTryCompileExec1265774941/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1265774941.dir/link.txt --verbose=1/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcat    CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o  -o cmTryCompileExec1265774941 -rdynamic -lm CMakeFiles/cmTryCompileExec1265774941.dir/CheckFunctionExists.c.o: In function `main':CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcat'collect2: error: ld returned 1 exit statusgmake[1]: *** [cmTryCompileExec1265774941] Error 1gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'gmake: *** [cmTryCompileExec1265774941/fast] Error 2 Determining if the function strlcpy exists failed with the following output:Change Dir: /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec4105141590/fast"/usr/bin/gmake -f CMakeFiles/cmTryCompileExec4105141590.dir/build.make CMakeFiles/cmTryCompileExec4105141590.dir/buildgmake[1]: Entering directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'/usr/bin/cmake -E cmake_progress_report /home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1Building C object CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcpy -I/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp/math.h    -o CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.cLinking C executable cmTryCompileExec4105141590/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4105141590.dir/link.txt --verbose=1/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=strlcpy    CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4105141590 -rdynamic -lm CMakeFiles/cmTryCompileExec4105141590.dir/CheckFunctionExists.c.o: In function `main':CheckFunctionExists.c:(.text+0x15): undefined reference to `strlcpy'collect2: error: ld returned 1 exit statusgmake[1]: *** [cmTryCompileExec4105141590] Error 1gmake[1]: Leaving directory `/home/jkadir/Downloads/mapserver-7.4.1/build/CMakeFiles/CMakeTmp'gmake: *** [cmTryCompileExec4105141590/fast] Error 2 19.08.2019, 15:51, "Lime, Steve D (MNIT)" :

They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a pretty good job of f

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
OK Great 19.08.2019, 15:51, "Lime, Steve D (MNIT)" :

They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a pretty good job of finding things.

 


From: Jeremy JK [mailto:jeremy...@yandex.com]

Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; mapserver-users <mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Compiling mapserver with options


 




This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Steve,


Thanks for the reply
This is what I came up with after viewing the CMakelists file


 



cmake -DCMAKE_INSTALL_PREFIX=/usr \


      -DWITH_GDAL


      -DWITH_PROJ=/usr/local


      -DWITH_POSTGIS=/usr/bin/pg_config


      -DWITH_CLIENT_WMS


      -DWITH_GEOS=/usr/local/bin/geos-config


      -DWITH_FCGI


 


but unsure about jpeg, freetype, png 


How to compile w/ these options?


Or are they default?


 



 


 


19.08.2019, 02:08, "Lime, Steve D (MNIT)" <steve.l...@state.mn.us>:


That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page 
https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve




From: mapserver-users <mapserver-users-boun...@lists.osgeo.org>
 on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options 

 







This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Hello all,


 


OK


My supervisor wants me to compile mapserver version 6.2.1 like so


 


./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png


 


now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server


 


But


I want to use the latest mapserver 7.4.1


but that uses cmake


how compile mapserver 7 with the configuration like 6 above?


Thanks for the guidance


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 





 


 


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 




 Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
Steve,Thanks for the replyThis is what I came up with after viewing the CMakelists file cmake -DCMAKE_INSTALL_PREFIX=/usr \      -DWITH_GDAL      -DWITH_PROJ=/usr/local      -DWITH_POSTGIS=/usr/bin/pg_config      -DWITH_CLIENT_WMS      -DWITH_GEOS=/usr/local/bin/geos-config      -DWITH_FCGI but unsure about jpeg, freetype, png How to compile w/ these options?Or are they default? 19.08.2019, 02:08, "Lime, Steve D (MNIT)" :
That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options
 





This message may be from an external email source.

Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.






Hello all,
 
OK
My supervisor wants me to compile mapserver version 6.2.1 like so
 
./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png
 
now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server
 
But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance
 
Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123
 
 
 



 Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Compiling mapserver with options

2019-08-17 Thread Jeremy JK
Hello all, OKMy supervisor wants me to compile mapserver version 6.2.1 like so ./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server ButI want to use the latest mapserver 7.4.1but that uses cmakehow compile mapserver 7 with the configuration like 6 above?Thanks for the guidance Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] What is WMS/WFS

2019-04-04 Thread Jeremy JK
You don't know what you don't know.What I know:From a tomcat training video Web SITEWeb SERVICEWeb SOCKET Site - formattingService - dataSocket - idk. Something to do with _javascript_, AJAX and chat rooms So a Web mapping/feature service shares maps/features where a wms client like openlayers or leaflet does formatting. Database ->WMS/WFS -> OpenLayers = website Is my above reasoning correct?Is that what a WMS/WFS MapServer is? What am I missing from this big picture model? Sorry for noob questions. But I when I explain things to my supervisor I want to get things right.  Thanks!(In the words of Einstein: If we knew what it was we were doing, it would not be called research)  Jeremy KadirblueSpace CaribbeanThe University of the West Indies(868) 309 9123   ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] ScribeUI alternative

2019-04-01 Thread Jeremy JK
Hello,I am Jeremy from Trinidad and Tobago, West Indies Caribbean Do any of you guys use ScribeUI? I spent the entire weekend trying to install the program on Ubuntu but I couldn't get it to work. Do you guys use any alternatives like MapManager or crowmap?Which one is the best? Thanks!   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users