Help in English?
Publicado: Enero 17, 2015, 17:51
Hi Guys my name is Chris
ive been trying the past few days to convert the scenProc script you guys are using here with your project,
i found this thread because i was having trouble getting buildings to show up in my scenery;
and the work being done in this forum looked like it had very good results with tricky footprints
i am mainly interested in generating buildings at first stage; but im having a hard time translating the information (i do not speak Spanish)
i think i have it very close to a working stage; but im missing information regarding the shape files used and the data they contain
here's what ive modified so far, please note - in IMPORTOGR there are three source files with .mid in the name;
i have no idea which data the represent or what i should be using to supplement the data they hold
im also not 100% i translated the feature names correctly
i was hoping someone here could lend me a hand to get the script working
Thank you in advance
Chris
ive been trying the past few days to convert the scenProc script you guys are using here with your project,
i found this thread because i was having trouble getting buildings to show up in my scenery;
and the work being done in this forum looked like it had very good results with tricky footprints
i am mainly interested in generating buildings at first stage; but im having a hard time translating the information (i do not speak Spanish)
i think i have it very close to a working stage; but im missing information regarding the shape files used and the data they contain
here's what ive modified so far, please note - in IMPORTOGR there are three source files with .mid in the name;
i have no idea which data the represent or what i should be using to supplement the data they hold
im also not 100% i translated the feature names correctly
i was hoping someone here could lend me a hand to get the script working
Thank you in advance
Chris
Código: Seleccionar todo
#======================================================================================================
# IMPORT FILES
#======================================================================================================
#IMPORTOGR|INS_IND.mid|*|*|NOREPROJ
#
IMPORTOGR|D:\OSMDATA\KML\buildings.shp|*|*|NOREPROJ
#
#IMPORTOGR|ENT_POB.mid|*|*|NOREPROJ
#
IMPORTOGR|D:\OSMDATA\KML\landuse.shp|*|*|NOREPROJ
#
#IMPORTOGR|LANDUSE2.mid|*|*|NOREPROJ
# TYPES OF BUILDINGS
#======================================================================================================
#Characterized by building type forms. Exclude those that are to be used for polygon.
#Reordered to Top to Bottom
#Type 5 is added to all buildings. Finally will be only the concave
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=INS_IND.mid|BUILDTYPE|5
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=buildings.shp|BUILDTYPE|5
#Type 4 All buildings convex
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=INS_IND.mid;FCONVEX=1|BUILDTYPE|4
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=buildings.shp;FCONVEX=1|BUILDTYPE|4
#Type 6 Added by lander for polygonal zone type expansion
ADDATTRIBUTEIFINSIDE|FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuseb2.mid;type=EN|BUILDTYPE|6
#Type 3 Complex Buildings
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=INS_IND.mid;FNUMPERPANG>3;FNUMNOTPAR<2;FNUMVERT<20|BUILDTYPE|3
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=buildings.shp;FNUMPERPANG>3;FNUMNOTPAR<2;FNUMVERT<20|BUILDTYPE|3
# Type 2 buildings almost rectangular
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=INS_IND.mid;FAREARAT>0.70|BUILDTYPE|2
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=buildings.shp;FAREARAT>0.70|BUILDTYPE|2
#Type 1 Rectangular buildings
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=INS_IND.mid;FNUMVERT=4;FNUMPERPANG=4|BUILDTYPE|1
ADDATTRIBUTE|BUILDTYPE!6;FTYPE=POLYGON;FROMFILE=buildings.shp;FNUMVERT=4;FNUMPERPANG=4|BUILDTYPE|1
#Types of polygons 3,4 and 5 replaced by rectangular polygons
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=3|0.8;4;4|0.5;2.0;1.0|BUILDTYPE|2
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=4|0.8;4;4|0.5;2.0;1.0|BUILDTYPE|2
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=5|0.8;4;4|0.5;2.0;1.0|BUILDTYPE|2
# BUILDING CATEGORIES
#======================================================================================================
#Categories of buildings by location
# 1 = rural
# 2 = Residential
# 3 = Industrial
# 4 = Developments
# 6 = Traverses for city expansion.
# 7 = Old City.
# 8 = Construction city.
# CAT = 8 URBANIZACIONES CITY
ADDATTRIBUTEIFINSIDE|FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuseb2.mid;type=CD|BUILDCAT|8
# CAT = 7 PART OLD CITY
ADDATTRIBUTEIFINSIDE|FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuseb2.mid;type=PV|BUILDCAT|7
# CAT = 6 POLYGONAL expansion CITY
ADDATTRIBUTEIFINSIDE|FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuseb2.mid;type=EN|BUILDCAT|6
# CAT = 1 RURAL
ADDATTRIBUTEIFINSIDE|BUILDCAT!8;BUILDCAT!7;BUILDCAT!6;FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=ENT_POB.mid|BUILDCAT|1
# CAT = 2 RESIDENTIAL
ADDATTRIBUTEIFINSIDE|BUILDCAT!8;BUILDCAT!7;BUILDCAT!6;BUILDCAT!1;FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuse.shp;type=residential|BUILDCAT|2
# CAT = 1 RURAL, rural They get all that have not been categorized before
ADDATTRIBUTE|BUILDCAT!8;BUILDCAT!7;BUILDCAT!6;BUILDCAT!1;BUILDCAT!2;FTYPE=POLYGON;FROMFILE=buildings.shp|BUILDCAT|1
# CAT = 3 Industrial Buildings
ADDATTRIBUTE|FTYPE=POLYGON;FROMFILE=INS_IND.mid|BUILDCAT|3
# CAT = 4 Construction
ADDATTRIBUTEIFINSIDE|BUILDCAT!8;BUILDCAT!7;BUILDCAT!6;BUILDCAT!2;FTYPE=POLYGON;FROMFILE=buildings.shp|FTYPE=POLYGON;FROMFILE=landuse.shp;type=construction|BUILDCAT|4
# SPLITGRID
#----------------
SPLITGRID|AGN
# BUILDING HEIGHTS
#======================================================================================================
# Percentages: 1-2 floors; 3-5 floors; 6-8 floors; 9-12 floors. Anyway, limited by area
# height original buildings
SETAGNBUILDINGHEIGHT|BUILDCAT=1|1.0;0.0;0.0;0.0
SETAGNBUILDINGHEIGHT|BUILDCAT=2|0.15;0.25;0.25;0.35
SETAGNBUILDINGHEIGHT|BUILDCAT=3|0.75;0.25;0.0;0.0
SETAGNBUILDINGHEIGHT|BUILDCAT=4|1.0;0.0;0.0;0.0
# height city buildings
SETAGNBUILDINGHEIGHT|BUILDCAT=6|0.0;0.0;1.0;0.0
SETAGNBUILDINGHEIGHT|BUILDCAT=7|0.1;0.7;0.1;0.0
SETAGNBUILDINGHEIGHT|BUILDCAT=8|0.0;0.25;1.0;0.25
# BUILDINGS
#======================================================================================================
# CAT1, Rural
CREATEAGNGENBUILD|BUILDCAT=1;BUILDTYPE<3;FWIDTH<15|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=1;BUILDTYPE<3;FWIDTH>15;FWIDTH<30|{f7b99ae4-80ca-4652-b2df-2fee994d70f9}|MAXRATIO=0.75
CREATEAGNGENBUILD|BUILDCAT=1;BUILDTYPE<3;FWIDTH>30;FWIDTH<40|{f952d757-2e7f-4f69-8072-e6081a2b76a1}|MAXRATIO=0.5
# CAT2, Residential
CREATEAGNGENBUILD|BUILDCAT=2;BUILDTYPE<3;FWIDTH<15|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=2;BUILDTYPE<3;FWIDTH>15;FWIDTH<30|{311de8c7-e596-4e28-a94d-da09d0252ce4}|MAXRATIO=1
CREATEAGNGENBUILD|BUILDCAT=2;BUILDTYPE<3;FWIDTH>30;FWIDTH<40|{311de8c7-e596-4e28-a94d-da09d0252ce4}|MAXRATIO=0.5
# CAT3, Industrial
CREATEAGNGENBUILD|BUILDCAT=3;BUILDTYPE<3;FWIDTH<15|{4eb68be7-2f1f-4cd2-920e-becfa2d8c888}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=3;BUILDTYPE<3;FWIDTH>15;FWIDTH<30|{4eb68be7-2f1f-4cd2-920e-becfa2d8c888}|MAXRATIO=1
CREATEAGNGENBUILD|BUILDCAT=3;BUILDTYPE<3;FWIDTH>30;FWIDTH<50|{4eb68be7-2f1f-4cd2-920e-becfa2d8c888}|MAXRATIO=0.5
# CAT 4, Urbanization
CREATEAGNGENBUILD|BUILDCAT=4;BUILDTYPE<4;FWIDTH<15|{7d6e09d6-3954-4ea2-bbb7-43b2b3083482}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=4;BUILDTYPE<4;FWIDTH>15;FWIDTH<30|{f8d16195-b3e7-467d-a741-111f98be6abc}|MAXRATIO=0.75
CREATEAGNGENBUILD|BUILDCAT=4;BUILDTYPE<4;FWIDTH>30;FWIDTH<50|{f952d757-2e7f-4f69-8072-e6081a2b76a1}|MAXRATIO=0.5
# CAT5
# CAT6, City expansion (must improve)
CREATEAGNPOLYBUILD|BUILDCAT=6;FMINSIDE>29|{51a157e2-c986-4bd4-b342-e895426664ec}|0.012
CREATEAGNPOLYBUILD|BUILDCAT=6;FMINSIDE<30|{df4b450e-6d20-4ea5-899f-d66df9e46244}|0.012
# CAT7, Old Town Part
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDCAT=7;FWIDTH>40|0.7;4;4|1.0;2.0;1.0|BUILCAT|7
CREATEAGNGENBUILD|BUILDCAT=7;BUILDTYPE<3;FWIDTH<15|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=3
CREATEAGNGENBUILD|BUILDCAT=7;BUILDTYPE<3;FWIDTH>15;FWIDTH<30|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|BUILDCAT=7;BUILDTYPE<3;FWIDTH>30;FWIDTH<40|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=0.75
CREATEAGNGENBUILD|BUILDCAT=7;BUILDTYPE<3;FWIDTH>40|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=0.5
# CAT8, city Developments
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDCAT=8;FWIDTH>60|0.7;10;10|1.0;2.0;1.0|BUILDCAT|8
CREATEAGNGENBUILD|BUILDCAT=8;BUILDTYPE<4;FWIDTH<15|{f8d16195-b3e7-467d-a741-111f98be6abc}|MAXRATIO=3
CREATEAGNGENBUILD|BUILDCAT=8;BUILDTYPE<4;FWIDTH>15;FWIDTH<30|{f952d757-2e7f-4f69-8072-e6081a2b76a1}|MAXRATIO=2.0
CREATEAGNGENBUILD|BUILDCAT=8;BUILDTYPE<4;FWIDTH>30;FWIDTH<60|{60a1e938-d2ef-4a65-a017-de7d811c17eb}|MAXRATIO=1.5
CREATEAGNPOLYBUILD|BUILDCAT=8;BUILDTYPE=4|{7db43364-3faa-49b6-ba25-98273a656243}|0.01
CREATEAGNPOLYBUILD|BUILDCAT=8;FWITH>59|{7db43364-3faa-49b6-ba25-98273a656243}|0.012
#======================================================================================================
# EXPORT FILE
#======================================================================================================
EXPORTAGN|FSX|D:\OSMDATA\KML\texture
[code]