Help in English?

En desarrollo..
Responder
Avatar de Usuario
MyPC8MyBrain
Mensajes: 5
Registrado: Enero 17, 2015, 17:27
Ubicación: Los Angeles, CA

Help in English?

Mensaje por MyPC8MyBrain »

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

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]
mart113
Capitán Jefe
Capitán Jefe
Mensajes: 370
Registrado: Junio 22, 2012, 14:27

Re: Help in English?

Mensaje por mart113 »

Hello,
Our code is posted here:
viewtopic.php?f=54&t=2961

If you is useful, feel free to use.

For your doubts regarding the code, think I get more help in this forum:

http://www.fsdeveloper.com/forum/forums/scenproc.131/

Regards,
AHS444D Ramón Martinez LEBL
Staff AirHispania
Avatar de Usuario
MyPC8MyBrain
Mensajes: 5
Registrado: Enero 17, 2015, 17:27
Ubicación: Los Angeles, CA

Re: Help in English?

Mensaje por MyPC8MyBrain »

Thank you Martinez
i am familiar with scenProc forums and Arno himself
i was looking to better understand what are the attributes referenced in these files, and what these files contain
INS_IND.mid
ENT_POB.mid
LANDUSE2.mid
without understanding what these refer to im unable to adopt the script properly
i am using google translator to read and translate the posts here;
its ok, but far from perfect; i still have to guess many words
mart113
Capitán Jefe
Capitán Jefe
Mensajes: 370
Registrado: Junio 22, 2012, 14:27

Re: Help in English?

Mensaje por mart113 »

Hello,
what is your mother tongue?
I think we get lost in translation.
AHS444D Ramón Martinez LEBL
Staff AirHispania
Avatar de Usuario
MyPC8MyBrain
Mensajes: 5
Registrado: Enero 17, 2015, 17:27
Ubicación: Los Angeles, CA

Re: Help in English?

Mensaje por MyPC8MyBrain »

i agree :)
i am a native English speaker, i am from Los Angele's, California
mart113
Capitán Jefe
Capitán Jefe
Mensajes: 370
Registrado: Junio 22, 2012, 14:27

Re: Help in English?

Mensaje por mart113 »

Hello,

These files contain geographical information on the following:

INS_IND.mid : industrial facilities and warehouses

ENT_POB.mid: areas with populations

LANDUSE2.mid: land uses

These data parameterize the type of buildings that will be generated.
The data are obtained from the National Geographic Institute.
http://www.ign.es/ign/main/index.do

Regards.
AHS444D Ramón Martinez LEBL
Staff AirHispania
Avatar de Usuario
luis-fernandez
Moderador
Moderador
Mensajes: 1678
Registrado: Octubre 25, 2005, 09:04
Answers: 2
Ubicación: Valladolid - Spain

Re: Help in English?

Mensaje por luis-fernandez »

Hi MyPC8MyBrain.
I live in South Carolina...

I am also interested in creating autogen for the US.
I tried, some months ago, in a small area of SC and it worked, but only the data from OpenStreeMap.
I tried to dowload the rest of the data from http://nationalmap.gov/viewer.html but I was unable.
That information would be equivalent to the data we get here in Spain from http://www.ign.es/ign/main/index.do

Which source of data are you using?

Thanks.
Regards.
AHS8553 Luis Fernández LEVD
Coordinador de Escenarios
Staff AirHispania
Avatar de Usuario
MyPC8MyBrain
Mensajes: 5
Registrado: Enero 17, 2015, 17:27
Ubicación: Los Angeles, CA

Re: Help in English?

Mensaje por MyPC8MyBrain »

Thank you very much for clarifying Martinez, much appreciated

Hi Luis,
glad to know there are US residence here as well

i mainly use OSM data from geo fabric
its interesting you mentioned your issue your facing; i have been as well; i have many areas with little to no data
but... i am working on a way to extract this information for areas with no data; so far successfully

the main issue i was facing is no attributes which im sure you familiar with manually generated vertices,

here are some of my recent result for a test area with no vector data source
this is generated by scenProc with my resulted shape file

test area with missing data
Imagen

with data generated by scenProc
Imagen Imagen Imagen Imagen
Avatar de Usuario
luis-fernandez
Moderador
Moderador
Mensajes: 1678
Registrado: Octubre 25, 2005, 09:04
Answers: 2
Ubicación: Valladolid - Spain

Re: Help in English?

Mensaje por luis-fernandez »

Nice..!
But... if you don't have any data, how do you manage to put all those buildins..?
I think we have to get the info from http://viewer.nationalmap.gov/viewer/
I am sure all the data is there, but I can't make the viewer working..
Regards.
AHS8553 Luis Fernández LEVD
Coordinador de Escenarios
Staff AirHispania
Avatar de Usuario
MyPC8MyBrain
Mensajes: 5
Registrado: Enero 17, 2015, 17:27
Ubicación: Los Angeles, CA

Re: Help in English?

Mensaje por MyPC8MyBrain »

Hi Luis,
i manipulate raster data to produce vector data; i than feed to scenProc for placement
these results are from today; its not perfect yet; but its the first time i was happy with the new process results
ive been discussing this with Arno; he is considering adding this feature in future scenProc releases as part of image detection

just checked your link; the viewer is working for me, i believe you need recent java installed
Avatar de Usuario
luis-fernandez
Moderador
Moderador
Mensajes: 1678
Registrado: Octubre 25, 2005, 09:04
Answers: 2
Ubicación: Valladolid - Spain

Re: Help in English?

Mensaje por luis-fernandez »

Hi...
Yes, it is working...! for the first time..!
I'ill try to something because all data is there.
The problem now is that I don't have a lot of time..
Thanks.
AHS8553 Luis Fernández LEVD
Coordinador de Escenarios
Staff AirHispania
Responder